html {
    scroll-behavior: smooth;
}

:root {
    --primary: #2d5a27;
    --accent: #ff6b6b;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition);
}

header:hover {
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1e3d1a);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: radial-gradient(circle at top right, #e8f5e9, transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e8f5e9;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--primary);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.search-box {
    display: flex;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--dark);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #1e3d1a;
}

.hero-image .image-wrapper {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Ad Spaces */
.ad-wrapper {
    margin: 4rem auto;
}

.ad-placeholder {
    background: #eee;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 2px dashed #ccc;
    border-radius: 10px;
    font-weight: 600;
}

/* Filters */
.filters-section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn, .article-filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover, .article-filter-btn.active, .article-filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Recipe Grid */
.recipes-section {
    padding-bottom: 6rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.recipe-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.recipe-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.cook-time {
    font-size: 0.85rem;
    color: #777;
    background: #f1f1f1;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}

.nutrients {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.nutrient {
    display: flex;
    flex-direction: column;
}

.nutrient span:first-child {
    font-weight: 700;
    color: var(--primary);
}

.nutrient span:last-child {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.missing {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Tools Section */
.affiliate-section {
    padding: 6rem 0;
    background: #fdfdfd;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    margin-bottom: 1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 2rem;
}

/* Info Message */
.info-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #888;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer .logo {
    margin-bottom: 1.5rem;
}

footer .logo span {
    color: #81c784;
}

footer p {
    color: #aaa;
}

footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

footer ul a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #aaa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    transition: var(--transition);
}

.social-icon:hover {
    background: white;
    color: var(--dark);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
}

.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 400px;
    animation: shimmer 1s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* ============================
   Mobile Hamburger Menu
   ============================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================
   Mobile Responsiveness
   ============================ */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    /* ---- Hamburger Visible ---- */
    .hamburger {
        display: flex;
    }

    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 1rem 0;
        order: 3;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .cta {
        order: 2;
    }

    .cta .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* ---- Hero ---- */
    .hero {
        padding: 4rem 0 2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
        gap: 0.5rem;
    }

    .search-box input {
        padding: 0.8rem 1rem;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .search-box button {
        padding: 0.8rem;
        border-radius: 10px;
        width: 100%;
    }

    .hero-image img {
        border-radius: 20px;
        margin-top: 2rem;
    }

    /* ---- Sections ---- */
    .container {
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .filters-section {
        padding: 2rem 0;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn, .article-filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* ---- Recipe Cards ---- */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recipe-header h3 {
        font-size: 1.2rem;
    }

    .nutrients {
        gap: 0.5rem;
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* ---- Articles ---- */
    .articles-section {
        padding: 50px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-img {
        height: 180px;
    }

    /* ---- Tools ---- */
    .affiliate-section {
        padding: 3rem 0;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-icon {
        font-size: 2.2rem;
    }

    /* ---- About ---- */
    .about-section {
        padding: 50px 0;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .point-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    /* ---- Results Page ---- */
    .results-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .results-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    #no-results {
        padding: 50px 0;
    }

    #no-results .icon {
        font-size: 3rem;
    }

    /* ---- Footer ---- */
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    /* ---- Newsletter ---- */
    .newsletter-box {
        padding: 1.5rem !important;
    }

    .newsletter-box h2 {
        font-size: 1.5rem !important;
    }

    .newsletter-box form {
        flex-direction: column !important;
    }

    .newsletter-box input,
    .newsletter-box button {
        width: 100% !important;
        border-radius: 10px !important;
    }

    /* ---- Swap Engine ---- */
    .swap-section {
        padding: 2rem 0;
    }

    /* ---- FAQ ---- */
    .faq-section {
        padding: 2rem 0;
    }

    /* ---- Chatbot Widget ---- */
    #chat-widget {
        bottom: 15px !important;
        right: 15px !important;
    }

    #chat-window {
        width: 290px !important;
        height: 420px !important;
        bottom: 70px !important;
        right: -5px !important;
        border-radius: 15px !important;
    }

    #chat-toggle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
}

/* ---- Extra Small Phones ---- */
@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    #chat-window {
        width: 260px !important;
        height: 380px !important;
    }
}
/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1.5rem;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #eee;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-header {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: #666;
}

.results-meta span {
    color: var(--primary);
    font-weight: 600;
}

#no-results {
    text-align: center;
    padding: 100px 0;
}

#no-results .icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* Mobile Responsiveness for Results */
@media (max-width: 768px) {
    .results-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

.about-content h2 {
    font-size: 2.5rem;
    margin: 20px 0;
    line-height: 1.2;
}

.about-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.philosophy-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.point {
    display: flex;
    gap: 20px;
}

.point-icon {
    font-size: 2rem;
    background: #f0f0f0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.point-text h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.point-text p {
    font-size: 1rem;
    margin-bottom: 0;
}

.premium-shadow {
    transition: transform 0.3s ease;
}

.premium-shadow:hover {
    transform: translateY(-10px);
}

/* Article Content Elements Style */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}
.article-body td {
    padding: 1rem;
    border: 1px solid #eee;
}
.article-body tr:nth-child(even) {
    background: #f9f9f9;
}
.article-body ul, .article-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.article-body a:hover {
    color: #43a047;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- Articles Section --- */
.articles-section {
    padding: 60px 0 100px;
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.article-img {
    position: relative;
    height: 220px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

/* ============================
   Premium Animations
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover .article-img img,
.recipe-card:hover img {
    transform: scale(1.05) !important;
}

.article-card:hover .article-overlay {
    opacity: 1 !important;
}


.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-text:hover {
    letter-spacing: 2px;
}

/* Print Optimization */
@media print {
    header, footer, nav, #related-recipes-section, .related-articles-section, button, .newsletter-section {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
    .recipe-main-img {
        max-height: 400px;
        margin-bottom: 30px;
    }
    .nutritional-summary {
        box-shadow: none !important;
        border: 1px solid #eee;
    }
}

/* --- Results Layout Grid (Sidebar & Content) --- */
.results-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
}

.results-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Ad Unit Sidebar */
.ad-widget {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border: 1px dashed #ccc;
    position: relative;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.ad-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: #999;
    letter-spacing: 1px;
}

.ad-placeholder-sidebar p {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.ad-placeholder-sidebar small {
    color: #666;
}

/* Affiliate Items */
.affiliate-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.affiliate-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.affiliate-item span {
    font-size: 1.5rem;
    background: #f8f9fa;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.affiliate-item h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.affiliate-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Sidebar Articles */
.sidebar-article-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-article-item:hover {
    transform: translateX(5px);
}

.sidebar-article-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.sidebar-article-info h5 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sidebar-article-info span {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

/* Responsive Sidebar */
@media (max-width: 1100px) {
    .results-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .results-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .results-sidebar {
        grid-template-columns: 1fr;
    }
}

/* --- Advanced Article Components --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: #1a1a1a;
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-card p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-box {
    background: #f0f7ff;
    border-left: 5px solid #2196f3;
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2.5rem 0;
}

.faq-box h4 {
    font-size: 1.1rem;
    color: #1565c0;
    margin-bottom: 10px;
}

.faq-box p {
    margin: 0;
    font-style: italic;
}

.tips-container {
    background: #1a1a1a;
    padding: 3rem;
    border-radius: 24px;
    margin: 3rem 0;
    color: white;
}

.tips-container h3 {
    color: white;
    margin-bottom: 2rem;
}

.tip-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tip-number {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-content strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.article-notes {
    background: #222;
    color: #eee;
    padding: 3rem;
    border-radius: 24px;
    margin-top: 4rem;
}

.article-notes h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag-pill {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- User Custom Blog Styles (@fast_food_blog_article.html) --- */
:root {
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666;
    --color-text-info: #0066cc;
    --color-text-success: #2d5a27;
    --color-background-primary: #ffffff;
    --color-background-secondary: #f8f9fa;
    --color-background-info: #eef6ff;
    --color-background-success: #f0fdf4;
    --color-border-secondary: #ddd;
    --color-border-tertiary: #eee;
    --color-border-info: #0066cc;
    --color-border-success: #2d5a27;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --font-sans: 'Outfit', sans-serif;
}

.blog-wrap {
    font-family: 'Source Serif 4', 'Outfit', Georgia, serif;
    color: var(--color-text-primary);
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0;
    line-height: 1.8;
    font-size: 18px;
}

.blog-wrap .category-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-info);
    background: var(--color-background-info);
    border-radius: 4px;
    padding: 6px 12px;
    margin-bottom: 1.5rem;
}

.blog-wrap h1.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.blog-wrap .meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-tertiary);
    flex-wrap: wrap;
}

.blog-wrap .stat-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    margin: 3rem 0;
    width: 100%;
}

.blog-wrap .stat-card {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid var(--color-border-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.blog-wrap .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-info);
    display: block;
    margin-bottom: 5px;
}

.blog-wrap .stat-label {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.blog-wrap h2.section-head {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: var(--color-text-primary);
}

.blog-wrap .faq-block {
    background: var(--color-background-info);
    border-left: 4px solid var(--color-border-info);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
}

.blog-wrap .faq-q {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-info);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-wrap .highlight-box {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-tertiary);
    padding: 2rem;
    margin: 2.5rem 0;
}

.blog-wrap .tip-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.blog-wrap .tip-badge {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    background: var(--color-background-success);
    color: var(--color-text-success);
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
    margin-top: 4px;
}

.blog-wrap .divider {
    border: none;
    border-top: 1px solid var(--color-border-tertiary);
    margin: 3.5rem 0;
}

.blog-wrap .notes-section {
    background: #1a1a1a;
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-top: 3.5rem;
}

.blog-wrap .notes-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.blog-wrap .notes-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 1px;
}

.blog-wrap .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-wrap .tag-pill {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
}

.blog-wrap .longtail-pill {
    background: var(--color-background-info);
    color: var(--color-text-info);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
}

.blog-wrap .strategies-section { margin-top: 4rem; }

.blog-wrap .strategy-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-tertiary);
}

.blog-wrap .strategy-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-info);
    line-height: 1;
}

.blog-wrap .strategy-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.blog-wrap .conclusion-box {
    background: var(--color-background-success);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--color-text-success);
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .blog-wrap .stat-strip { grid-template-columns: 1fr; }
    .blog-wrap h1.blog-title { font-size: 2rem; }
}
