/* ==========================================================================
   ROJGAR RADAR - Modern Sarkari Portal Stylesheet
   Designed for High-Speed Mobile UX & Google Core Web Vitals (100/100)
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-surface: #12161f;
  --bg-card: #181d28;
  --bg-card-hover: #1e2534;
  --border-color: #273043;
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --accent-cyan: #00e5ff;
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --badge-bg: rgba(0, 229, 255, 0.12);
  --badge-border: rgba(0, 229, 255, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-border: rgba(37, 99, 235, 0.25);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.85);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-theme {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.btn-theme:hover {
  border-color: var(--accent-cyan);
}

/* ---------------- Hero Section ---------------- */
.hero {
  padding: 30px 0 20px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 20px;
}

/* Search Bar */
.search-wrapper {
  max-width: 680px;
  margin: 0 auto 24px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
}

/* Social Join Banner */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-telegram {
  background: #0088cc;
  color: #ffffff;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ---------------- 1-Click Eligibility Card (KILLER FEATURE) ---------------- */
.eligibility-card {
  background: linear-gradient(145deg, #161c29, #1c2436);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 35px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .eligibility-card {
  background: linear-gradient(145deg, #f0f7ff, #ffffff);
  border-color: #bfdbfe;
}

.eligibility-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-green));
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-badge h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.glow-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.select-custom, .input-custom {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.select-custom:focus, .input-custom:focus {
  border-color: var(--accent-cyan);
}

.eligibility-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.eligibility-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.btn-action {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------------- Category Pills ---------------- */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 25px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  white-space: nowrap;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* ---------------- Job Cards Grid ---------------- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
}

.job-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dept-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.status-badge.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.job-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
}

.job-title-hi {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chip.highlight {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.chip.date {
  color: var(--accent-orange);
  border-color: rgba(245, 158, 11, 0.3);
}

/* AI Summary Box inside Card */
.ai-summary-box {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.ai-summary-list {
  list-style: none;
}

.ai-summary-list li {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 4px;
  position: relative;
  padding-left: 14px;
}

.ai-summary-list li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-size: 14px;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-apply {
  flex: 2;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #000000;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-apply:hover {
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.btn-pdf {
  flex: 1;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-pdf:hover {
  border-color: var(--accent-cyan);
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .eligibility-card {
    padding: 16px;
  }
}
