@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette - Light Mode Default */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --border: #e2e8f0;
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;

  /* Layout */
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.1);
    --secondary: #f8fafc;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.9);
    --border: #334155;
    --success-bg: rgba(16, 185, 129, 0.1);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-body));
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-3);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

/* Search Box */
.search-box {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-input {
  flex: 1;
  border: none;
  padding: var(--space-3);
  font-size: 1.1rem;
  background: transparent;
  color: var(--text-main);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--border);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Job Cards */
.job-card {
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.job-card:hover::before {
  transform: scaleY(1);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.job-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.job-company {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge.success {
  background-color: var(--success-bg);
  color: var(--success);
}

/* Sector Blocks */
.sector-card {
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: inline-block;
}

/* Layouts */
.page-layout {
  padding: var(--space-6) 0;
}

.main-content {
  flex: 3;
}

.sidebar {
  flex: 1;
  position: sticky;
  top: 100px;
}

/* Filters */
.filter-group {
  margin-bottom: var(--space-4);
}
.filter-title {
  font-size: 1rem;
  margin-bottom: var(--space-2);
  display: block;
}

/* Content SEO */
.seo-content {
  background: var(--bg-card);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: var(--space-6);
}

.seo-content h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.seo-content p {
  margin-bottom: var(--space-3);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}

.faq-q {
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: var(--text-muted);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-heading {
  color: white;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile menu for now */
  }
  .search-box {
    flex-direction: column;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .search-input {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
  }
  .page-layout.flex {
    flex-direction: column;
  }
  .sidebar {
    position: static;
  }
}
