/* ═══════════════════════════════════════════════════════════════
   Egg Rate India - Main Stylesheet
   
   THEME SYSTEM: Sirf :root ke variables change karo — poori
   website ka color automatically badal jaayega. Koi bhi
   hardcoded hex value CSS property mein use nahi ki gayi hai.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (THE ONLY PLACE TO CHANGE COLORS) ───────── */
:root {
    /* === BACKGROUND LAYERS (teeno ek dusre ke upar) === */
    --bg-base:      #0f1b2d;   /* body / sabse gehra background */
    --bg-mid:       #1a2d45;   /* sections, nav mobile, hero gradient */
    --bg-card:      #1e3352;   /* cards, table, info-box */
    --bg-footer:    #080f1a;   /* footer (bg-base se thoda gehra) */

    /* === PRIMARY / ACCENT COLOR === */
--primary:      #3b82f6;   /* blue */
--primary-lt:   #93c5fd;
--primary-dim:  #1d4ed8;
--primary-alpha-low:  rgba(59, 130, 246, 0.04);
--primary-alpha-mid:  rgba(59, 130, 246, 0.08);
--primary-alpha-bg:   rgba(59, 130, 246, 0.12);
--primary-alpha-date: rgba(59, 130, 246, 0.15);
--primary-alpha-hero: rgba(59, 130, 246, 0.12);
--primary-alpha-border: rgba(59, 130, 246, 0.30);
--primary-alpha-hover:  rgba(59, 130, 246, 0.30);
--primary-alpha-badge:  rgba(59, 130, 246, 0.15);
--primary-alpha-badge-border: rgba(59, 130, 246, 0.30);

    /* === TEXT COLORS === */
    --white:        #ffffff;
    --text-main:    #e2e8f0;   /* body text */
    --text-mute:    #94a3b8;   /* secondary / muted text */
    --text-faint:   #334155;   /* footer copyright */
    --text-dark:    #1e293b;   /* dark bg par use (agar kabhi chahiye) */

    /* === STATUS COLORS (green / red — ye change mat karo usually) === */
    --green:        #10b981;
    --green-alpha:  rgba(16, 185, 129, 0.15);
    --green-border: rgba(16, 185, 129, 0.30);
    --red:          #ef4444;
    --red-alpha:    rgba(239, 68, 68, 0.10);
    --red-border:   rgba(239, 68, 68, 0.20);

    /* === BORDERS & SHADOWS === */
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.35);
    --shadow-card:  0 8px 24px rgba(0, 0, 0, 0.20);

    /* === SHAPE === */
    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    20px;

    /* === TYPOGRAPHY === */
    --font-head:    'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* === MOTION === */
    --transition:   0.2s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
    background: color-mix(in srgb, var(--bg-base) 95%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 0 8px var(--primary-alpha-date));
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.logo-name {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-tagline {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav { display: flex; gap: 6px; }

.nav-link {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover  { color: var(--white); background: var(--border); opacity: 1; }
.nav-link.active { color: var(--primary); background: var(--primary-alpha-bg); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-mid) 60%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-alpha-hero) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-text h1 span { color: var(--primary); display: inline-block; }

.hero-text p {
    color: var(--text-mute);
    font-size: 15px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hero-date {
    background: var(--primary-alpha-date);
    border: 1px solid var(--primary-alpha-border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    text-align: center;
}
.hero-date .date-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; }
.hero-date .date-value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); margin-top: 4px; }

.hero-source {
    font-size: 11px;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 5px;
}

.source-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ─── Section Layout ────────────────────────────────────────── */
.section { padding: 48px 0; }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.section-sub { font-size: 13px; color: var(--text-mute); }

/* ─── Featured Cards (Delhi / Mumbai) ───────────────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.featured-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.featured-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--primary-alpha-mid) 0%, transparent 70%);
    pointer-events: none;
}

.featured-card .city-icon    { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.featured-card .city-name    { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.featured-card .city-state   { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }

.featured-prices { display: flex; gap: 24px; align-items: flex-end; }
.featured-main-price { flex: 1; }

.featured-main-price .price-label {
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.featured-main-price .price-value {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.featured-main-price .price-unit { font-size: 14px; color: var(--text-mute); margin-top: 2px; }

.featured-sub-prices { display: flex; flex-direction: column; gap: 8px; }
.sub-price-item { text-align: right; }
.sub-price-item .sp-label { font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.sub-price-item .sp-value { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); }

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 12px;
}
.trend-up   { background: var(--green-alpha);  color: var(--green); }
.trend-down { background: var(--red-alpha);    color: var(--red);   }
.trend-same { background: var(--border);       color: var(--text-mute); }

/* ─── City Cards Grid ───────────────────────────────────────── */
.city-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.city-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
    cursor: default;
}

.city-card:hover {
    border-color: var(--primary-alpha-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.city-card .card-city {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-card .card-tray-price {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.city-card .card-tray-label { font-size: 11px; color: var(--text-mute); margin-bottom: 12px; }

.city-card .card-mini-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.mini-price { text-align: center; }
.mini-price .mp-label { font-size: 9px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-price .mp-value { font-size: 13px; font-weight: 600; color: var(--text-main); margin-top: 2px; }

/* ─── Rate Table ────────────────────────────────────────────── */
.rate-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.rate-table thead {
    background: linear-gradient(90deg, var(--bg-mid), var(--bg-card));
    border-bottom: 2px solid var(--primary-dim);
}

.rate-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-mute);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.rate-table thead th:first-child { color: var(--white); }
.rate-table thead th.price-col   { text-align: right; }

.rate-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.rate-table tbody tr:last-child { border-bottom: none; }
.rate-table tbody tr:hover      { background: var(--primary-alpha-low); }

.rate-table tbody td { padding: 13px 16px; white-space: nowrap; }

.rate-table .td-city    { font-weight: 600; color: var(--white); font-size: 14px; }
.rate-table .td-section { font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.rate-table .td-price   { text-align: right; font-family: var(--font-head); font-weight: 600; }

.price-current { color: var(--green); }
.price-old     { color: var(--red);   }
.price-na      { color: var(--text-mute); }

.price-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.price-pill.today {
    background: var(--green-alpha);
    color: var(--green);
    border: 1px solid var(--green-border);
}
.price-pill.yesterday {
    background: var(--red-alpha);
    color: var(--red);
    border: 1px solid var(--red-border);
}

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-necc { background: var(--primary-alpha-badge); color: var(--primary); border: 1px solid var(--primary-alpha-badge-border); }
.badge-prev { background: var(--border); color: var(--text-mute); border: 1px solid var(--border-hover); }

/* ─── Article / SEO ─────────────────────────────────────────── */
.article-section {
    background: var(--bg-mid);
    border-top: 1px solid var(--border);
    padding: 56px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.article-content h2 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.article-content p {
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content strong       { color: var(--text-main); font-weight: 600; }

.article-sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.info-box h4 {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.info-box ul li {
    font-size: 13.5px;
    color: var(--text-mute);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.info-box ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 11px;
    top: 2px;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo  { margin-bottom: 16px; }
.footer-desc  { font-size: 13.5px; color: var(--text-mute); line-height: 1.7; }

.footer-links h4 {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { font-size: 13.5px; color: var(--text-mute); transition: color var(--transition); text-decoration: none; }
.footer-links ul li a:hover { color: var(--primary); opacity: 1; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-disclaimer          { font-size: 12px; color: var(--text-mute); line-height: 1.6; }
.footer-disclaimer strong   { color: var(--primary); }
.footer-disclaimer a        { color: var(--primary); text-decoration: underline; }
.footer-copy                { font-size: 12px; color: var(--text-faint); }

/* ─── Utility ───────────────────────────────────────────────── */
.no-data { text-align: center; padding: 48px 20px; color: var(--text-mute); }
.no-data h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr; }
    .article-grid  { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .hero-inner    { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-meta     { align-items: flex-start; }
}

@media (max-width: 600px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-mid);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 10px 14px; }

    .site-header  { position: relative; }
    .header-inner { position: relative; }

    .featured-prices  { flex-direction: column; align-items: flex-start; }
    .featured-main-price .price-value { font-size: 36px; }
    .featured-sub-prices { flex-direction: row; }
    .sub-price-item { text-align: left; }

    .footer-grid      { grid-template-columns: 1fr; }
    .city-cards-grid  { grid-template-columns: repeat(2, 1fr); }
}