/*
Theme Name: JobSphere
Theme URI: https://yoursite.com
Description: A modern, dark job board theme built for WP Job Manager. Fully dynamic — new jobs appear automatically.
Version: 1.0
Author: JobSphere
Author URI: https://yoursite.com
Text Domain: jobsphere
*/

:root {
  --ink: #0a0f1e;
  --ink2: #1a2038;
  --teal: #00c9a7;
  --teal2: #00e5bf;
  --amber: #ffb830;
  --slate: #8892a4;
  --card: #111827;
  --card2: #1c2537;
  --border: rgba(255,255,255,0.07);
  --white: #f0f4ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(10,15,30,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}
.site-logo span { color: var(--teal); }

.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a { color: var(--slate); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--white); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ── BUTTONS ── */
.btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  display: inline-block;
}
.btn-ghost { background: transparent; color: var(--slate); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-primary { background: var(--teal); color: var(--ink); font-weight: 700; }
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,201,167,0.3); }
.btn-dark { background: var(--ink); color: var(--white); padding: 14px 28px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.btn-dark:hover { background: var(--ink2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn-outline-dark { background: transparent; color: var(--ink); border: 2px solid rgba(10,15,30,0.25); padding: 14px 28px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(10,15,30,0.08); }

/* ── SECTION COMMON ── */
section { position: relative; z-index: 1; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::after { content: ''; position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,201,167,0.12) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -60%); pointer-events: none; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.25); color: var(--teal); padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500; margin-bottom: 28px; animation: fadeUp 0.6s ease both; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 1.5s infinite; }

.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px; max-width: 820px; animation: fadeUp 0.6s 0.1s ease both; }
.hero h1 .accent { color: var(--teal); position: relative; display: inline-block; }
.hero h1 .accent::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: var(--teal); border-radius: 2px; opacity: 0.4; }
.hero p { color: var(--slate); font-size: 1.1rem; max-width: 520px; margin-bottom: 44px; font-weight: 300; animation: fadeUp 0.6s 0.2s ease both; }

/* ── SEARCH BOX ── */
.search-box { display: flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 8px 20px; gap: 12px; width: 100%; max-width: 640px; margin-bottom: 20px; animation: fadeUp 0.6s 0.3s ease both; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:focus-within { border-color: rgba(0,201,167,0.4); box-shadow: 0 0 0 4px rgba(0,201,167,0.07); }
.search-box .icon { color: var(--slate); flex-shrink: 0; }
.search-box input[type="text"] { flex: 1; background: none; border: none; outline: none; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; }
.search-box input::placeholder { color: var(--slate); }
.search-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.search-box select { background: none; border: none; outline: none; color: var(--slate); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; cursor: pointer; padding: 4px 8px; }
.search-box select option { background: var(--card); }
.search-btn { background: var(--teal); color: var(--ink); border: none; border-radius: 10px; padding: 12px 24px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.search-btn:hover { background: var(--teal2); box-shadow: 0 6px 20px rgba(0,201,167,0.3); }

.search-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; animation: fadeUp 0.6s 0.4s ease both; }
.search-tags span { font-size: 0.78rem; color: var(--slate); }
.tag-pill { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--slate); padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.tag-pill:hover { color: var(--white); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }

/* ── STATS ── */
.stats-bar { display: flex; margin-top: 72px; animation: fadeUp 0.6s 0.5s ease both; }
.stat { padding: 0 40px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-num span { color: var(--teal); }
.stat-label { font-size: 0.78rem; color: var(--slate); margin-top: 2px; }

/* ── CATEGORIES ── */
.categories { padding: 100px 60px; background: var(--ink2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.categories-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; cursor: pointer; transition: all 0.25s; text-decoration: none; display: block; position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,201,167,0.05), transparent); opacity: 0; transition: opacity 0.25s; }
.cat-card:hover { border-color: rgba(0,201,167,0.3); transform: translateY(-3px); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.cat-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--white); }
.cat-count { font-size: 0.8rem; color: var(--slate); }

/* ── JOBS SECTION ── */
.jobs-section { padding: 100px 60px; }
.jobs-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.filter-tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.filter-tab { padding: 8px 18px; border-radius: 7px; font-size: 0.82rem; font-weight: 500; color: var(--slate); cursor: pointer; transition: all 0.2s; border: none; background: none; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block; }
.filter-tab.active, .filter-tab:hover { background: var(--teal); color: var(--ink); font-weight: 700; }

/* ── DYNAMIC JOB CARDS (WP Job Manager) ── */
.jobs-grid { display: grid; gap: 12px; }
.job-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: all 0.25s; text-decoration: none; position: relative; overflow: hidden; }
.job-card:hover { border-color: rgba(0,201,167,0.3); background: var(--card2); transform: translateX(4px); }
.job-card.featured { border-color: rgba(0,201,167,0.2); background: linear-gradient(to right, rgba(0,201,167,0.05), transparent); }
.featured-badge { position: absolute; top: 16px; right: 16px; background: rgba(255,184,48,0.12); border: 1px solid rgba(255,184,48,0.25); color: var(--amber); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }

.company-logo { width: 54px; height: 54px; border-radius: 14px; background: var(--card2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; font-weight: 700; font-family: 'Syne', sans-serif; overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.job-info { flex: 1; }
.job-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.job-company { font-size: 0.85rem; color: var(--slate); margin-bottom: 10px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tag { padding: 3px 10px; border-radius: 6px; font-size: 0.73rem; font-weight: 500; }
.tag-type { background: rgba(0,201,167,0.1); color: var(--teal); border: 1px solid rgba(0,201,167,0.2); }
.tag-loc { background: rgba(255,255,255,0.05); color: var(--slate); border: 1px solid var(--border); }

.job-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.job-salary { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--white); }
.job-time { font-size: 0.75rem; color: var(--slate); }
.apply-btn { background: transparent; border: 1px solid rgba(0,201,167,0.3); color: var(--teal); padding: 8px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block; }
.apply-btn:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }

/* WP Job Manager overrides */
.job_listings { list-style: none !important; padding: 0 !important; }
.job_listing { list-style: none !important; }
.job-no-results { color: var(--slate); text-align: center; padding: 60px; font-size: 1rem; }

/* ── HOW IT WORKS ── */
.how-it-works { padding: 100px 60px; background: var(--ink2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.step-card { background: var(--card); padding: 40px 36px; transition: background 0.25s; }
.step-card:first-child { border-radius: 20px 0 0 20px; }
.step-card:last-child { border-radius: 0 20px 20px 0; }
.step-card:hover { background: var(--card2); }
.step-num { font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800; color: rgba(0,201,167,0.08); line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em; }
.step-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px; }
.step-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.step-desc { color: var(--slate); font-size: 0.88rem; line-height: 1.7; }

/* ── CTA ── */
.cta-banner { margin: 100px 60px; background: linear-gradient(135deg, var(--teal) 0%, #00a88d 100%); border-radius: 24px; padding: 72px 80px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; }
.cta-banner::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%); right: -100px; top: -100px; pointer-events: none; }
.cta-content { position: relative; }
.cta-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10,15,30,0.6); margin-bottom: 12px; }
.cta-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.cta-sub { color: rgba(10,15,30,0.65); font-size: 0.95rem; max-width: 420px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; }

/* ── FOOTER ── */
.site-footer { padding: 60px 60px 40px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand .site-logo { font-size: 1.3rem; display: inline-block; margin-bottom: 16px; }
.footer-brand p { color: var(--slate); font-size: 0.85rem; line-height: 1.7; max-width: 260px; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 9px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.social-link:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.footer-col h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 20px; color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--slate); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--slate); font-size: 0.78rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--card2); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .site-nav { padding: 16px 24px; }
  .nav-menu { display: none; }
  .categories, .jobs-section, .how-it-works { padding: 60px 24px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 2px; }
  .step-card:first-child { border-radius: 20px 20px 0 0; }
  .step-card:last-child { border-radius: 0 0 20px 20px; }
  .cta-banner { margin: 60px 24px; padding: 48px 40px; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer { padding: 48px 24px 32px; }
  .stat { padding: 0 20px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .job-card { flex-wrap: wrap; }
  .job-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cta-actions { flex-direction: column; width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; justify-content: center; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 32px; width: 50%; }
  .jobs-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .categories-header { flex-direction: column; gap: 16px; align-items: flex-start; }
}
