﻿/* LIGHT THEME (Cream / Whiteish) */
html[data-theme="light"] {
    --bg-dark: #fdfaf6 !important;
    --card-bg: #ffffff !important;
    --text-primary: #1a1a1a !important;
    --text-secondary: #4a4a4a !important;
    --border-color: rgba(0, 0, 0, 0.1) !important;
    --border-glow: rgba(0, 204, 163, 0.2) !important;
    --hover-bg: #f5f0e6 !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .menu-item {
    background: var(--card-bg) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="light"] .menu-item-title,
html[data-theme="light"] .menu-item-price,
html[data-theme="light"] .menu-item-desc {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .menu-cat-title {
    color: #1a1a1a !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

html[data-theme="light"] .theme-icon-light {
    display: none !important;
}
html[data-theme="light"] .theme-icon-dark {
    display: inline-block !important;
    color: #1a1a1a !important;
}

/* Base styles for the icons */
.theme-icon-dark { display: none; }
.theme-icon-light { display: inline-block; color: #fff; }

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
    background: var(--hover-bg);
}
/* Yazi renkleri düzeltme */
html[data-theme="light"] .menu-item h4,
html[data-theme="light"] .menu-item-title h4,
html[data-theme="light"] .menu-item-price,
html[data-theme="light"] .menu-item-desc {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .allergens {
    color: var(--text-secondary) !important;
}

/* Light Theme Modal */
html[data-theme="light"] .story-modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}
html[data-theme="light"] .story-modal-title,
html[data-theme="light"] .story-modal-price,
html[data-theme="light"] .story-modal-desc {
    color: var(--text-primary) !important;
}


/* Category Buttons Light Theme Fixes */
html[data-theme="light"] .cat-btn {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    z-index: 1;
}
html[data-theme="light"] .cat-btn::after {
    background: rgba(255, 255, 255, 0.95) !important;
}
html[data-theme="light"] .cat-btn.active {
    background-color: var(--text-primary) !important;
    color: #ffffff !important;
    border-color: var(--text-primary) !important;
}
html[data-theme="light"] .cat-btn.active::after {
    background: #1a1a1a !important;
}
html[data-theme="light"] .cat-btn:hover {
    color: #ffffff !important;
}
html[data-theme="light"] .cat-btn:hover::after {
    background: rgba(0, 153, 122, 0.85) !important;
}

/* Premium Hero Section Light Theme Adjustments */
html[data-theme="light"] .menu-hero::after {
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(253, 250, 246, 0.8) 50%, transparent 100%) !important;
}
html[data-theme="light"] .menu-hero .hero-video-container {
    background: var(--bg-dark) !important;
}
html[data-theme="light"] .menu-hero .hero-video-container video {
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%) !important;
    opacity: 0.9;
}
html[data-theme="light"] .hero-text-block h1,
html[data-theme="light"] .menu-hero-content h1 {
    color: #0B1B32 !important;
    background: linear-gradient(90deg, #0B1B32 0%, #1a3a5c 50%, #0B1B32 100%) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0px 4px 15px rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .hero-text-block p,
html[data-theme="light"] .menu-hero-content p {
    color: #4A5568 !important;
    font-weight: 400 !important;
    text-shadow: 0px 2px 10px rgba(255, 255, 255, 0.8) !important;
}
/* FIX: Logo size limit and Video premium look for light theme */
.splash-logo {
    max-width: 180px !important;
    height: auto !important;
}

html[data-theme="light"] .menu-hero .hero-video-container video {
    opacity: 0.35 !important;
    mix-blend-mode: luminosity !important;
    filter: contrast(1.3) brightness(1.2) sepia(0.2) hue-rotate(-15deg) !important;
}
