/* ============================================
   SHINE IST. — QR MENU STYLES
   Premium Light Theme
   ============================================ */

:root,
[data-theme="light"] {
    --bg: #f7f5f0;
    --bg-alt: #f0ede6;
    --surface: #ffffff;
    --card: #ffffff;
    --card-hover: #faf8f4;
    --border: #e2ddd3;
    --gold: #b8942e;
    --gold-light: #d4b44e;
    --gold-dark: #9a7b24;
    --text: #1a1a1a;
    --text-secondary: #444444;
    --text-muted: #777777;
    --white: #ffffff;
    --black: #000000;
    --hero-overlay-top: rgba(10,10,10,0.55);
    --hero-overlay-mid: rgba(10,10,10,0.5);
    --hero-overlay-low: rgba(10,10,10,0.62);
    --hero-overlay-bot: rgba(10,10,10,0.86);
    --nav-bg: rgba(247,245,240,0.9);
    --modal-backdrop: rgba(0,0,0,0.45);
    --badge-text: #ffffff;
    --whatsapp-bg: #e8f5e9;
}

/* ---------- Design Tokens ---------- */
:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
    --shadow-gold: 0 4px 20px rgba(201,168,76,0.15);

    --nav-height: 60px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary: var(--gold);
    --secondary: var(--surface);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    animation: logoFadeIn 1s ease forwards;
}

.loading-dot {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    animation: logoFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.loading-bar {
    width: 160px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: loadingProgress 1.5s ease forwards;
}

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

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--hero-overlay-top) 0%,
        var(--hero-overlay-mid) 40%,
        var(--hero-overlay-low) 70%,
        var(--hero-overlay-bot) 100%
    );
    transition: background 0.4s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(52px, 10vw, 92px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

.hero-slogan {
    font-family: var(--font-body);
    font-size: clamp(12px, 2.5vw, 15px);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.72);
}

.hero-divider {
    width: 60px;
    height: 1.5px;
    background: rgba(255,255,255,0.88);
    margin: 0 auto 36px;
    border-radius: 2px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    background: rgba(255,255,255,0.16);
    border: 1.5px solid rgba(255,255,255,0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 34px rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-explore:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.btn-explore svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ---------- Hero Controls (Theme + Lang) ---------- */
.hero-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 14px;
    background: rgba(20,20,20,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--white);
    transition: all var(--transition);
    min-height: 38px;
}

.control-btn:hover {
    border-color: var(--gold);
    background: rgba(20,20,20,0.7);
}

.control-btn i {
    font-size: 14px;
    color: var(--gold-light);
}

.lang-active {
    color: var(--gold-light);
    font-weight: 600;
}

.lang-inactive {
    color: rgba(255,255,255,0.45);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}

/* ---------- Fade-up Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ---------- Category Navigation ---------- */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    scroll-margin-top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), background 0.4s ease;
}

.category-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.category-nav-inner {
    display: flex;
    gap: 10px;
    padding: 18px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    scroll-snap-align: center;
    transition: all var(--transition);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.category-btn:hover {
    color: var(--text);
    border-color: var(--gold);
    background: var(--card-hover);
}

.category-btn.active {
    background: var(--gold);
    color: var(--badge-text);
    border-color: var(--gold);
    font-weight: 600;
}

.category-btn .cat-icon {
    font-size: 15px;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.category-btn.active .cat-icon {
    color: var(--badge-text);
}

/* ---------- Menu Container ---------- */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

/* ---------- Menu Section ---------- */
.menu-section {
    margin-bottom: 48px;
}

.menu-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.menu-section-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* ---------- Menu Grid ---------- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ---------- Menu Card ---------- */
.menu-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.menu-card:hover {
    background: var(--card-hover);
    border-color: rgba(201,168,76,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.menu-card-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.08);
}

.menu-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.menu-card-name {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.menu-card-desc {
    font-size: 12.5px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
}

.product-meta i {
    color: var(--gold);
    font-size: 10px;
}

.product-meta-modal {
    margin-bottom: 16px;
}

.product-meta-modal span {
    font-size: 12px;
    color: var(--text-secondary);
}

.menu-card-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
}

.menu-card.no-image .product-meta {
    margin-bottom: 0;
}

.menu-card-price::after {
    content: ' ₺';
    font-size: 14px;
    font-weight: 400;
}

/* Featured Badge */
.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--badge-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 100px;
}

/* No-image card layout */
.menu-card.no-image {
    flex-direction: row;
}

.menu-card.no-image .menu-card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.menu-card.no-image .menu-card-info {
    flex: 1;
    min-width: 0;
}

.menu-card.no-image .menu-card-price {
    flex-shrink: 0;
}

/* ---------- Product Detail Modal ---------- */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--modal-backdrop);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.product-modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gold);
    color: var(--badge-text);
}

.modal-image {
    position: relative;
    width: 100%;
    height: clamp(180px, 34dvh, 260px);
    background: var(--card);
    overflow: hidden;
}

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

.modal-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    top: auto;
    right: auto;
}

.modal-body {
    padding: 24px 20px 32px;
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.modal-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-divider {
    width: 40px;
    height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 16px;
}

.modal-details {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
}

.modal-price::after {
    content: ' ₺';
    font-size: 18px;
    font-weight: 400;
}

/* Body lock when modal is open */
body.modal-open {
    overflow: hidden;
}

@media (min-width: 600px) {
    .modal-content {
        transform: translateY(40px) scale(0.95);
        max-height: 85vh;
    }

    .product-modal.open .modal-content {
        transform: translateY(0) scale(1);
    }

    .modal-image {
        height: 300px;
    }

    .modal-body {
        padding: 28px 28px 36px;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 16px 24px;
    transition: background 0.4s ease;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.footer-logo em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

.footer-address {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-value {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-social {
    display: none;
    justify-content: center;
    gap: 10px;
    margin: -12px 0 28px;
    flex-wrap: wrap;
}

.footer-social.has-links {
    display: flex;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--card);
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-btn-phone:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-btn-web:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-btn-review {
    border-color: rgba(184,148,46,0.45);
    color: var(--gold-dark);
    background: #fff8e5;
}

.footer-btn-review:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--badge-text);
}

.review-stars {
    color: #f5b301;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.footer-btn-review:hover .review-stars {
    color: var(--badge-text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--badge-text);
    border-color: var(--gold);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */

/* Tablet */
@media (min-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-nav-inner {
        padding: 14px 28px;
    }

    .menu-container {
        padding: 40px 24px 80px;
    }

    .footer-actions {
        gap: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        max-height: 800px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .menu-card {
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    .menu-card-image {
        width: 100%;
        height: 180px;
        border-radius: 0;
    }

    .menu-card-body {
        padding: 16px;
    }

    .menu-card.no-image .menu-card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-section-title {
        font-size: 30px;
    }

    .menu-container {
        padding: 48px 32px 100px;
    }

    .footer {
        padding: 60px 32px 30px;
    }

    .footer-info {
        gap: 80px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-title {
        font-size: 42px;
    }

    .btn-explore {
        padding: 12px 24px;
        font-size: 11px;
    }

    .category-btn {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-btn {
        justify-content: center;
    }

    .hero-controls {
        top: 16px;
        right: 16px;
        gap: 6px;
    }

    .control-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}
