/*
Theme Name: Tarauli.com - Job Board
Theme URI: https://rebelkc.blog
Author: ReneLKC
Author URI: https://rebelkc.blog
Description: A premium WordPress theme for LuckyStudio4U — Job Board edition. Post and manage jobs directly from the WordPress Posts area.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luckystudio4u
Tags: job-board, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===== RESET & BASE ===== */
*{margin:0;padding:0;box-sizing:border-box}

:root {
  --bg-primary: #f4f7fb;
  --bg-card: rgba(255,255,255,0.97);
  --bg-card-inner: #f8fafd;
  --text-primary: #0f2b3d;
  --text-secondary: #3a5268;
  --text-muted: #6b8399;
  --accent: #0f2b3d;
  --accent-light: #1b4f72;
  --accent-glow: rgba(27,79,114,0.15);
  --border: #e4eaf2;
  --border-light: #eef2f8;
  --success: #10b981;
  --success-glow: rgba(16,185,129,0.15);
  --shadow-card: 0 25px 50px -12px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.03);
  --shadow-hover: 0 30px 60px -12px rgba(0,0,0,0.12), 0 8px 12px -4px rgba(0,0,0,0.04);
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 1rem;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.site-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.site-logo-text {
  font-family: 'Geist', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.site-logo-dot { color: var(--success); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a.active { color: var(--accent-light); font-weight: 600; }

.btn-post-job {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-post-job:hover {
  background: #059669;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--success-glow);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.8rem; }
  .btn-post-job { width: 100%; justify-content: center; }
}

/* ===== AMBIENT BACKGROUND ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}
.ambient-blob:nth-child(1) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,79,114,0.18), transparent 70%);
  top: -10%; left: -8%;
  animation-delay: 0s;
}
.ambient-blob:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(97,165,194,0.14), transparent 70%);
  bottom: -5%; right: -5%;
  animation-delay: -7s;
  animation-duration: 25s;
}
.ambient-blob:nth-child(3) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.08), transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -14s;
  animation-duration: 22s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem;
}

/* ===== JOB SEARCH FORM ===== */
.job-search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.search-input-group {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}

.search-input-group:focus-within {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover), 0 0 0 4px var(--accent-glow);
}

.search-input-group .search-field {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
}

.search-input-group .search-field:focus {
  outline: none;
}

.search-input-group .search-submit {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.search-input-group .search-submit:hover {
  background: var(--accent-light);
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-filters select {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.search-filters select:focus {
  outline: none;
  border-color: var(--accent-light);
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}
.glass-card:hover { box-shadow: var(--shadow-hover); }
.content-padding { padding: 2.2rem 2.2rem 2rem; }

/* ===== HOME HERO ===== */
.home-hero {
  text-align: center;
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 10;
}
.home-hero h1 {
  font-family: 'Geist', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0F2B3D 0%, #1B4F72 40%, #2c7da0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.home-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ===== JOB LIST ===== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.job-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}
.job-item .item-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.job-item .item-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-item .item-logo .fallback {
  font-size: 1.5rem;
  color: var(--text-muted);
}
.job-item .item-body {
  flex: 1;
  min-width: 0;
}
.job-item .item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.job-item .item-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.job-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.job-item .item-meta span {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--bg-card-inner);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.job-item .item-meta span.featured-tag {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}
.job-item .item-meta span.remote {
  background: var(--success-glow);
  color: var(--success);
  border-color: rgba(16,185,129,0.2);
}
.job-item .item-meta span.hybrid {
  background: rgba(27,79,114,0.08);
  color: var(--accent-light);
  border-color: rgba(27,79,114,0.12);
}
.job-item .item-meta span.onsite {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
.job-item .item-side {
  flex-shrink: 0;
  text-align: right;
  min-width: 120px;
}
.job-item .item-salary {
  font-weight: 700;
  color: var(--accent-light);
  font-size: 0.95rem;
}
.job-item .item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.job-item .item-apply {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.job-item .item-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.pagination-wrapper .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-wrapper .nav-links a,
.pagination-wrapper .nav-links span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
  background: var(--bg-card);
}
.pagination-wrapper .nav-links a:hover {
  background: var(--bg-card-inner);
  border-color: var(--accent-light);
}
.pagination-wrapper .nav-links .current {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ===== NO JOBS ===== */
.no-jobs {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
}
.no-jobs .icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.no-jobs h2 {
  color: var(--text-primary);
  margin-bottom: 8px;
}
.no-jobs p {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 0.75rem;
  padding: 2rem 1rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .content-padding { padding: 1.5rem 1rem; }
  .home-hero h1 { font-size: 2rem; }
  .job-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
  }
  .job-item .item-side {
    text-align: center;
    min-width: unset;
  }
  .job-item .item-meta { justify-content: center; }
  .search-filters select { min-width: 100%; }
  .search-input-group { flex-direction: column; }
  .search-input-group .search-submit {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
}
@media (max-width: 480px) {
  .site-logo-text { font-size: 0.95rem; }
  .home-hero h1 { font-size: 1.6rem; }
}