:root {
    /* COLOR PALETTE - Light Theme */
    /* Primary: Vibrant Saffron/Mango Orange */
    --primary-50: #FFF7ED;
    --primary-100: #FFEDD5;
    --primary-200: #FED7AA;
    --primary-300: #FDBA74;
    --primary-400: #FB923C;
    --primary-500: #EA580C; /* Main Accent */
    --primary-600: #C2410C;
    --primary-700: #9A3412;
    --primary-800: #7C2D12;
    --primary-900: #431407;

    /* Secondary: Clean Blues/Grays for structural elements */
    --secondary-50: #F0F9FF;
    --secondary-100: #E0F2FE;
    --secondary-200: #BAE6FD;
    --secondary-500: #0EA5E9;
    --secondary-800: #075985;

    /* Neutrals / Light Mode Backgrounds */
    --neutral-50: #F8FAFC;  /* Body Bg */
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0; /* Borders */
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A; /* Darkest Text */

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-400);
    --text-on-primary: #FFFFFF;

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Effects */
    --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);
    --card-bg: #FFFFFF;
    --card-border: var(--neutral-200);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--neutral-50);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- GLOBAL NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
}

.logo {
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
    display: flex;
    align-items: center;
    gap: 0px;
    color: inherit;
    text-decoration: none;
}
.logo-star polygon {
    padding-left: 0px;
    padding-right: 0px;
    margin-left: -270px;
    margin-right: -270px;
}
.logo-pak { color: #046A38; padding-left: 8px; padding-right: 0px; }
.logo-india { color: #EA580C; margin-left: 1px; }
.logo-star { flex-shrink: 0; }

.nav-links {
    display: flex;
    background: var(--neutral-100);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--neutral-200);
}

.nav-link {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link.active, .nav-link:hover {
    background: var(--card-bg);
    color: #EA580C;
    box-shadow: var(--shadow-sm);
}

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.icon-btn:hover { color: var(--primary-500); }

/* Mobile menu button (hidden on desktop) */
.navbar-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-primary);
}
.navbar-menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}
.navbar-menu-btn:hover { background: var(--neutral-200); }
.navbar-open .navbar-menu-btn { background: var(--neutral-200); }

/* --- DESIGN SYSTEM COMPONENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 44px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    gap: 8px;
}
.btn-primary { background: var(--primary-500); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--neutral-100); color: var(--text-primary); border-color: var(--neutral-200); }
.btn-secondary:hover { background: var(--neutral-200); }
.btn-outline { background: #FFFFFF; border: 1px solid var(--neutral-300); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--neutral-400); background: var(--neutral-50); }

.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.card-interactive { transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: #D1FAE5; color: #065F46; }

.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
    border: 2px solid #FFFFFF;
}

.icon { width: 20px; height: 20px; stroke-width: 2; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* --- HERO SECTION LAYOUT --- */
.hero-section {
    position: relative;
    height: 85vh;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: 120px 60px 40px 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-100) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    height: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

h1 .brand-pak { color: #046A38; }
h1 .brand-india { color: var(--primary-500); margin-left: -0.12em; padding-left: 8px; }

.widget-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

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

.team { font-size: 18px; font-weight: 700; }
.score { font-size: 24px; font-weight: 300; }
.overs { font-size: 12px; color: var(--text-secondary); }

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

.search-pill {
    background: var(--card-bg);
    padding: 8px 8px 8px 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.search-pill input {
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    flex: 1;
    font-family: var(--font-main);
}

.hero-art {
    flex: 1;
    width: 100%;
    min-height: 280px;
    margin-top: 40px;
    background-image: url('https://images.unsplash.com/photo-1589227365533-cee630bd59bd?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    border: 4px solid #FFF;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-art-link {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}
.hero-art-link:hover .hero-art-overlay { opacity: 0.95; }
.hero-art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.big-stat {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-subtext { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.recipe-of-day {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.recipe-img {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background-size: cover;
}

.recipe-of-day-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.recipe-of-day-link:hover {
    opacity: 0.9;
}

/* --- BODY SECTION LAYOUT --- */
.body-content {
    background: var(--neutral-50);
    padding: 20px 60px 80px 60px;
    position: relative;
    z-index: 20;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--neutral-200);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}
.filter-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card-link .article-card {
    height: 100%;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.article-img {
    width: 100%;
    height: 200px;
    background-color: var(--neutral-200);
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    flex: 1;
}

.card-footer {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--neutral-100);
    padding-top: 16px;
}

/* --- MATCH STATUS BAR --- */
.match-status {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-600);
    text-align: center;
    background: var(--primary-50);
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* --- TRENDING CARD --- */
.card-trending {
    background: var(--primary-500);
    color: white;
    border: none;
}
.card-trending .widget-title {
    color: var(--primary-100);
}
.card-trending .trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.card-trending .trending-item {
    margin-bottom: 8px;
}
.card-trending .trending-item:last-of-type {
    margin-bottom: 0;
}
.card-trending .trending-item a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: white;
    text-decoration: none;
}
.card-trending .trending-item a:hover {
    text-decoration: underline;
    opacity: 0.95;
}
.card-trending .trending-link {
    font-size: 12px;
    color: var(--primary-100);
    margin-top: 12px;
    display: inline-block;
    text-decoration: none;
}
.card-trending .trending-link:hover {
    text-decoration: underline;
}

/* --- AD BANNER --- */
.ad-banner-468x60 {
    margin-bottom: 20px;
    min-height: 60px;
}
.ad-banner-468x60 .adsbygoogle { display: block; }

/* --- BODY HEADER --- */
.body-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.pagination-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.arrow-btn {
    border: 1px solid var(--neutral-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

/* --- ARTICLE CARD LINK WRAPPER --- */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* --- RECIPE DETAIL PAGE --- */
.recipe-detail {
    padding: 100px 0 80px 0;
}

.recipe-hero-img {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--neutral-200);
}

.recipe-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 60px;
}

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

.recipe-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-500);
    color: var(--text-on-primary);
}

.recipe-badge-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--neutral-300);
}

.recipe-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.recipe-section {
    margin-bottom: 40px;
}

.recipe-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--neutral-200);
}

.recipe-ingredients {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.recipe-ingredient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.ingredient-measure {
    font-weight: 600;
    color: var(--primary-600);
    min-width: 80px;
}

.ingredient-name {
    color: var(--text-primary);
}

.recipe-instructions p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- CATEGORY PAGE LAYOUT --- */
.category-page {
    padding: 120px 60px 80px 60px;
}

.category-header {
    margin-bottom: 40px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.category-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.search-empty,
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.empty-state {
    grid-column: 1 / -1;
}

/* --- ARTICLE PAGE LAYOUT --- */
.article-page {
    padding: 120px 60px 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.article-layout {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 40px 48px 48px;
    box-shadow: var(--shadow-sm);
}

.article-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-600);
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-50);
}

.article-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.article-hero {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.article-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.article-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 32px;
    max-width: 65ch;
}

.article-cta-wrap {
    margin-bottom: 0;
}

.article-cta-wrap .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-missing {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.article-missing a {
    color: var(--primary-500);
    text-decoration: none;
}

.article-missing a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 20px; }
    .hero-section { height: auto; padding-top: 100px; }
    .hero-art { display: none; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-ingredients { grid-template-columns: 1fr; }
    .recipe-hero-img { height: 320px; }
}
@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 20px; }
    .navbar-menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 24px;
        margin: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--neutral-200);
        border-radius: 0;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s;
    }
    .navbar-open .nav-links {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        padding: 14px 16px;
        border-radius: var(--radius-md);
    }
    .body-content, .hero-section, .category-page, .article-page { padding-left: 20px; padding-right: 20px; }
    h1 { font-size: 42px; }
    .category-title { font-size: 28px; }
    .recipe-body { padding: 24px 20px; }
    .recipe-title { font-size: 28px; }
    .recipe-hero-img { height: 240px; }
    .article-layout { padding: 24px 20px; }
    .article-headline { font-size: 24px; }
    .article-hero { height: 220px; }
    .article-lead { font-size: 16px; }
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
