/* ================================================
   BesinVT - Besin Veritabanı
   Minimalist & Sağlık Odaklı Tasarım
   ================================================ */

/* ==================== DISCLAIMER MODAL ==================== */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.disclaimer-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.disclaimer-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.disclaimer-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.disclaimer-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.disclaimer-content {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.disclaimer-content p {
    margin-bottom: 1rem;
}

.disclaimer-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.disclaimer-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.disclaimer-content li:last-child {
    border-bottom: none;
}

.disclaimer-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #856404;
}

.disclaimer-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    user-select: none;
}

.disclaimer-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4a7c59;
    cursor: pointer;
}

.disclaimer-btn {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6b4a 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.disclaimer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.disclaimer-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 480px) {
    .disclaimer-modal {
        padding: 1.5rem;
    }
    
    .disclaimer-title {
        font-size: 1.4rem;
    }
    
    .disclaimer-content {
        font-size: 0.9rem;
    }
    
    .disclaimer-icon {
        font-size: 2.5rem;
    }
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fafbfa 0%, #e8f0eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8f0eb;
    border-top: 4px solid #4a7c59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #4a7c59;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* CSS Variables */
:root {
    /* Primary Colors - Sage Green Palette */
    --color-primary: #4a7c59;
    --color-primary-light: #6b9b7a;
    --color-primary-dark: #3d6349;
    --color-primary-subtle: #e8f0eb;
    
    /* Neutral Colors */
    --color-bg: #fafbfa;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f7f6;
    --color-border: #e2e8e4;
    --color-border-light: #eef2ef;
    
    /* Text Colors */
    --color-text: #1a2e22;
    --color-text-secondary: #5a6b5f;
    --color-text-muted: #8a9a8e;
    
    /* Category Colors */
    --color-vegetables: #4a7c59;
    --color-fruits: #c9544d;
    --color-red-meat: #8b4049;
    --color-white-meat: #d4845a;
    --color-fish: #5a8fd4;
    --color-nuts: #8b6914;
    --color-legumes: #8b5a2b;
    --color-grains: #c4a35a;
    --color-dairy: #6b8fa3;
    --color-mushrooms: #7a6b5a;
    --color-spices: #9a6b4a;
    --color-superfoods: #9b59b6;
    --color-beverages: #27ae60;
    --color-oils: #f39c12;
    --color-sweeteners: #e67e22;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 46, 34, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 46, 34, 0.06);
    --shadow-lg: 0 8px 24px rgba(26, 46, 34, 0.08);
    --shadow-xl: 0 16px 48px rgba(26, 46, 34, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ================================================
   Header
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo-accent {
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

/* ================================================
   Main Content & Tabs
   ================================================ */
.main-content {
    flex: 1;
    padding-top: 72px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   HOME TAB - Hero Search
   ================================================ */
.home-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) 0;
}

.home-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 124, 89, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 84, 77, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(90, 143, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.home-content {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.home-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.home-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.home-title .highlight {
    color: var(--color-primary);
}

.home-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

/* Home Search */
.home-search-wrapper {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.home-search {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.home-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--color-primary-subtle);
}

.home-search .search-icon {
    margin-left: var(--space-md);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.home-search input {
    flex: 1;
    padding: var(--space-md);
    font-size: 1.125rem;
    color: var(--color-text);
    background: transparent;
}

.home-search input::placeholder {
    color: var(--color-text-muted);
}

.search-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--color-primary-dark);
}

/* Search Options & Sort */
.search-options {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.sort-select {
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6b5f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.sort-select:hover, .sort-select:focus {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Quick Results Dropdown */
.quick-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 50;
}

.quick-results.active {
    display: block;
}

.quick-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border-light);
}

.quick-result-item:last-child {
    border-bottom: none;
}

.quick-result-item:hover {
    background: var(--color-primary-subtle);
}

.quick-result-emoji {
    font-size: 1.5rem;
}

.quick-result-info {
    flex: 1;
    text-align: left;
}

.quick-result-name {
    font-weight: 600;
    color: var(--color-text);
}

.quick-result-category {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.quick-result-calories {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
}

.quick-results-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-text-muted);
}

/* Home Stats */
.home-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Quick Categories */
.quick-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.quick-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-right: var(--space-sm);
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.quick-tag {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

/* ================================================
   Page Headers
   ================================================ */
.page-header {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* ================================================
   Categories Tab
   ================================================ */
#tab-categories {
    padding-bottom: var(--space-4xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.category-count {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.category-samples {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.category-sample {
    font-size: 1.25rem;
}

/* ================================================
   Explore Tab
   ================================================ */
#tab-explore {
    padding-bottom: var(--space-4xl);
}

.explore-controls {
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
}

.explore-header-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.explore-search {
    position: relative;
    flex: 1;
}

.explore-sort {
    width: 220px;
    flex-shrink: 0;
}

.explore-sort .sort-select {
    width: 100%;
    height: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
}

.explore-search .search-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.explore-search input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-left: calc(var(--space-lg) * 2 + 20px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.explore-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.food-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: all var(--transition-base);
}

.food-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-subtle);
}

.food-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.food-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.food-info {
    flex: 1;
}

.food-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.food-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--category-bg);
    color: var(--category-color);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.food-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.quick-info-item {
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    text-align: center;
}

.quick-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.quick-info-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Compare Button on Card */
.btn-add-compare {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    opacity: 1 !important; /* Force visibility */
    transition: all 0.2s ease;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.food-card:hover .btn-add-compare {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.btn-add-compare.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-add-compare:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add-compare.active {
    opacity: 1;
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ================================================
   About Tab
   ================================================ */
#tab-about {
    padding-bottom: var(--space-4xl);
}

.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: var(--space-3xl);
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.about-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.about-content-grid {
    margin-bottom: var(--space-4xl);
}

.about-text-section {
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ================================================
   Contact Section
   ================================================ */
.contact-section {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-2xl);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.contact-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--color-text);
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a6b5f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-info {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.contact-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.contact-email-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Form Success/Error States */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
}

.form-success-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.form-success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-success-text {
    color: var(--color-text-secondary);
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-error-icon {
    font-size: 1.25rem;
}

.form-error-text {
    color: #dc2626;
    font-size: 0.9rem;
}

.form-error-text a {
    color: #dc2626;
    text-decoration: underline;
}

.contact-submit .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-highlight {
        padding: var(--space-2xl);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        flex-direction: column;
        text-align: center;
    }

    .blog-cta-btn {
        width: 100%;
    }
}

/* Category Overview */
.category-overview {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--color-border-light);
}

.overview-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.overview-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.overview-item:hover {
    background: var(--color-primary-subtle);
}

.overview-item .item-icon {
    font-size: 1.5rem;
}

.overview-item .item-info {
    flex: 1;
}

.overview-item .item-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.overview-item .item-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ================================================
   Modal
   ================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 34, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
}

.modal-content.modal-xl {
    max-width: 900px;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.modal-body {
    padding: var(--space-2xl);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-emoji {
    font-size: 4rem;
    line-height: 1;
}

.modal-title-group {
    flex: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.modal-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--category-bg);
    color: var(--category-color);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* Portion Control */
.portion-control {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.portion-label {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.portion-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-md);
}

.portion-input {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
}

.portion-unit {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Macro Chart */
.macro-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.macro-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary) 0% 33%,
        #d4845a 33% 66%,
        #eab308 66% 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macro-donut::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-surface);
    border-radius: 50%;
}

.macro-donut-text {
    position: absolute;
    z-index: 1;
    text-align: center;
}

.donut-cal {
    display: block;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1;
}

.donut-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.macro-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.modal-section {
    margin-bottom: var(--space-xl);
}

.modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Nutrient Lists */
.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.nutrient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.nutrient-name {
    font-size: 0.875rem;
    color: var(--color-text);
}

.nutrient-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Antioxidants Section */
.antioxidants-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fef3e8 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.antioxidants-section .modal-section-title {
    color: #c0392b;
}

.antioxidants-section .modal-section-title svg {
    stroke: #e74c3c;
}

.antioxidant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.antioxidant-item {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 3px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.antioxidant-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.antioxidant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.antioxidant-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.antioxidant-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    background: #ffeaea;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.antioxidant-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .antioxidant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Benefits */
.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.benefit-tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: var(--space-xl) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Comparison Bar */
.comparison-bar {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 90;
    width: 90%;
    max-width: 600px;
    transition: transform var(--transition-base);
}

.comparison-bar.active {
    transform: translateX(-50%) translateY(0);
}

.comparison-content {
    background: var(--color-text);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
}

.comparison-text {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.comparison-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding: var(--space-sm);
}

.btn-text:hover {
    color: white;
}

.btn-compare {
    background: white;
    color: var(--color-text);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--transition-fast);
}

.btn-compare:hover {
    background: var(--color-primary-subtle);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    position: sticky;
    left: 0;
}

.comparison-header-img {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.comparison-header-name {
    font-weight: 600;
    color: var(--color-text);
}

.highlight-row {
    background: var(--color-primary-subtle);
}

.btn-quick-compare {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-quick-compare:hover {
    background: var(--color-primary-subtle);
    transform: scale(1.1);
}

.btn-quick-compare.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 768px) {
    .nav {
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: var(--space-sm);
        font-size: 0.875rem;
        flex: 1 1 45%;
        text-align: center;
    }
    
    .home-search {
        flex-direction: column;
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .home-search .search-icon {
        display: none;
    }
    
    .home-search input {
        text-align: center;
        padding: var(--space-sm);
    }
    
    .search-btn {
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .home-stats {
        gap: var(--space-md);
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }

    .explore-header-row {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .explore-sort {
        width: 100%;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .macro-chart-container {
        flex-direction: column;
    }
    
    .nutrient-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .main-content {
        padding-top: 110px;
    }
    
    .quick-categories {
        flex-direction: column;
    }
    
    .quick-label {
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }
    
    /* Modal mobil uyumluluk */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: var(--space-md);
    }
    
    .modal-emoji {
        font-size: 3rem;
    }
    
    .modal-name {
        font-size: 1.25rem;
    }
    
    .portion-controls {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .portion-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
    
    .macro-ring {
        width: 50px;
        height: 50px;
    }
    
    .macro-value {
        font-size: 0.875rem;
    }
    
    /* Antioksidan mobil */
    .antioxidant-grid {
        grid-template-columns: 1fr;
    }
    
    .antioxidant-item {
        padding: var(--space-sm);
    }
    
    .antioxidant-name {
        font-size: 0.8rem;
    }
    
    .antioxidant-value {
        font-size: 0.75rem;
    }
    
    .antioxidant-desc {
        font-size: 0.7rem;
    }
    
    /* Home stats mobil */
    .home-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .home-title {
        font-size: 2rem;
    }
    
    /* Guide tabs mobil */
    .guide-tabs {
        gap: 0.5rem;
    }
    
    .guide-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Guide Tab Styles */
.guide-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-tab-btn.active,
.guide-tab-btn:hover {
    background: var(--color-primary);
    color: white;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-icon {
    font-size: 2rem;
    background: var(--color-bg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.guide-title {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 600;
}

.guide-desc {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.guide-section {
    margin-top: 1rem;
}

.guide-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.guide-tag.benefit {
    background: #e0f2fe;
    color: #0369a1;
}

.guide-tag.source {
    background: #dcfce7;
    color: #15803d;
}

/* ================================================
   Blog Section - Redesigned
   ================================================ */
#tab-blog {
    padding-bottom: 0;
    background: var(--color-bg);
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a2e22 0%, #2d4a3a 50%, #3d6349 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 124, 89, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(107, 155, 122, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(4px);
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.blog-hero-accent {
    color: #8bc49a;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin: 0 auto;
}

/* Blog Main Layout */
.blog-main {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
    align-items: start;
}

.blog-content-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.blog-featured {
    margin-bottom: 0;
}

.blog-articles {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: 0;
}

/* Blog Article Cards */
.blog-highlight {
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.blog-highlight:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.blog-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #8bc49a);
}

.blog-highlight::after {
    display: none;
}

.blog-highlight > * {
    position: relative;
    z-index: 1;
}

.highlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85rem;
    opacity: 1;
    color: var(--color-text-muted);
}

.highlight-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.highlight-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.highlight-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: none;
}

.highlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-sm);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.blog-highlight .blog-tag {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

/* Blog Content Sections */
.blog-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.blog-highlight.collapsed .blog-content {
    display: none;
}

.blog-section {
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.blog-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.blog-section p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Blog Card Link */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    background: transparent;
    padding: 0.5rem 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.blog-card-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(4px);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.sidebar-tag {
    padding: 0.4rem 0.85rem;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-tag:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}


/* Home Blog Snapshots */
.home-blog-section {
    background: var(--color-surface);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border-light);
}

.home-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.home-blog-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.home-blog-icon {
    font-size: 1.5rem;
}

.home-blog-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.home-blog-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.home-blog-link:hover {
    color: var(--color-primary-dark);
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.home-blog-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.home-blog-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.home-blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

.home-blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: var(--space-2xl) 0;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .home-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-highlight {
        padding: var(--space-lg);
    }
    
    .sidebar-card {
        min-width: 100%;
    }
}

/* Science Section */
.science-section {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.guide-science-header {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.guide-science-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    font-style: italic;
}

/* ================================================
   Google AdSense Styles
   ================================================ */

.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    text-align: center;
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Home page ad - subtle integration */
.ad-home {
    margin-top: var(--space-xl);
    background: transparent;
    border: none;
    padding: var(--space-sm);
}

/* Footer ad - more prominent */
.ad-footer {
    margin-top: var(--space-2xl);
    background: var(--color-surface);
    padding: var(--space-lg);
}

/* Sidebar ad (for future use) */
.ad-sidebar {
    position: sticky;
    top: 100px;
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* In-content ad */
.ad-inline {
    margin: var(--space-xl) 0;
    padding: var(--space-md);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
}

/* Mobile responsive ads */
@media (max-width: 768px) {
    .ad-container {
        padding: var(--space-sm);
    }
    
    .ad-footer {
        padding: var(--space-md);
    }
    
    .ad-sidebar {
        position: relative;
        top: 0;
    }
}

/* Hide ads on very small screens (optional) */
@media (max-width: 320px) {
    .ad-container {
        display: none;
    }
}

/* Footer Links */
.footer-links {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links span {
    color: var(--color-text-muted);
}

/* ================================================
   Cookie Banner
   ================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-accept:hover {
    background: var(--color-primary-dark);
}

.cookie-decline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.cookie-decline:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: var(--space-md);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        align-items: center;
        min-width: auto;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* ================================================
   Enhanced Footer with Social Links
   ================================================ */

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.social-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

/* Instagram hover */
.social-link[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Twitter/X hover */
.social-link[title="Twitter/X"]:hover {
    background: #000000;
}

/* Facebook hover */
.social-link[title="Facebook"]:hover {
    background: #1877f2;
}

/* YouTube hover */
.social-link[title="YouTube"]:hover {
    background: #ff0000;
}

/* TikTok hover */
.social-link[title="TikTok"]:hover {
    background: #000000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-main {
        align-items: center;
    }
    
    .footer-social {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}