/* ==========================================
   Kanatçı Muhiddin - QR Menü Styles
   Premium Pure Black & Gold Theme
   ========================================== */

:root {
    --gold: #D4AF37;
    --gold-light: #F5D76E;
    --gold-dark: #B8860B;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --black: #000000;
    --dark: #0a0a0a;
    --dark-card: #0f0f0f;
    --dark-surface: #141414;
    --dark-border: #1a1a1a;
    --white: #f5f0e8;
    --white-dim: #b0a898;
    --white-muted: #7a7268;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.15);
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.splash-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212,175,55,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212,175,55,0.03) 0%, transparent 50%);
}

/* Floating particles */
.splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.8; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* Logo wrapper */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: splashFadeIn 1s ease-out 0.3s forwards;
}

@keyframes splashFadeIn {
    to { opacity: 1; }
}

.splash-logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated rings */
.splash-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.splash-ring-1 {
    width: 100%;
    height: 100%;
    border-color: var(--gold);
    opacity: 0;
    animation: ringExpand 1.2s ease-out 0.5s forwards, ringSpin 8s linear 1.7s infinite;
}

.splash-ring-2 {
    width: 85%;
    height: 85%;
    border-color: var(--gold-light);
    border-style: dashed;
    opacity: 0;
    animation: ringExpand 1.2s ease-out 0.8s forwards, ringSpinReverse 12s linear 2s infinite;
}

.splash-ring-3 {
    width: 115%;
    height: 115%;
    border-color: var(--gold-dark);
    opacity: 0;
    border-width: 1px;
    animation: ringExpand 1.2s ease-out 0.6s forwards, ringSpin 15s linear 1.8s infinite;
}

@keyframes ringExpand {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

@keyframes ringSpinReverse {
    to { transform: rotate(-360deg); }
}

.splash-logo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #000;
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--gold-glow), inset 0 0 30px rgba(212,175,55,0.05);
    opacity: 0;
    transform: scale(0);
    animation: logoCirclePop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s forwards;
}

@keyframes logoCirclePop {
    to { opacity: 1; transform: scale(1); }
}

.splash-km {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    opacity: 0;
    animation: kmReveal 0.6s ease-out 1.5s forwards;
}

@keyframes kmReveal {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Brand name */
.splash-brand {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.splash-brand-left,
.splash-brand-right {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.splash-brand-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLeft 0.8s ease-out 1.8s forwards;
}

.splash-brand-right {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 0.8s ease-out 1.8s forwards;
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

.splash-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--white-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 2.2s forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: lineExpand 1s ease-out 2.5s forwards;
}

@keyframes lineExpand {
    to { width: 200px; }
}

/* Splash exit animation */
.splash-screen.exit {
    animation: splashExit 0.8s ease-in-out forwards;
}

@keyframes splashExit {
    0% { opacity: 1; }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.1); pointer-events: none; }
}

/* ==========================================
   HEADER - with SVG Logo
   ========================================== */
.header {
    position: relative;
    padding: 24px 20px 16px;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(212,175,55,0.06) 0%, transparent 70%);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo-img-wrap {
    width: 140px;
    height: auto;
    margin-bottom: 6px;
}

.header-logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.2));
}

.header-brand-text p {
    font-size: 11px;
    color: var(--white-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

.header-ornament {
    margin-top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.25;
}

/* ==========================================
   CATEGORY NAVIGATION
   ========================================== */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.8);
    padding: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.category-nav-inner {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--white-muted);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.category-tab i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.category-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.category-tab.active {
    color: var(--gold);
}

.category-tab.active i {
    color: var(--gold);
    text-shadow: 0 0 12px var(--gold-glow);
}

.category-tab.active::after {
    width: 70%;
}

.category-tab:active {
    transform: scale(0.95);
}

/* ==========================================
   MENU CONTENT
   ========================================== */
.menu-content {
    padding: 0 16px 40px;
    max-width: 600px;
    margin: 0 auto;
    background: #000;
}

/* Section */
.menu-section {
    padding-top: 28px;
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
}

.section-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 20px var(--gold-glow);
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 12px;
    color: var(--white-muted);
    margin-top: 6px;
    font-weight: 300;
    letter-spacing: 1px;
}

.section-ornament-left,
.section-ornament-right {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    opacity: 0.3;
}

.section-ornament-left { left: 0; }
.section-ornament-right {
    right: 0;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ==========================================
   MENU CARDS
   ========================================== */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-card {
    display: flex;
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.5s ease-out forwards;
}

.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.1s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.2s; }
.menu-card:nth-child(5) { animation-delay: 0.25s; }
.menu-card:nth-child(6) { animation-delay: 0.3s; }
.menu-card:nth-child(7) { animation-delay: 0.35s; }
.menu-card:nth-child(8) { animation-delay: 0.4s; }
.menu-card:nth-child(9) { animation-delay: 0.45s; }
.menu-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

.menu-card:active {
    transform: scale(0.98);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* Card Image */
.menu-card-image {
    width: 105px;
    min-height: 105px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.menu-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a08 0%, #12100d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card-image-placeholder i {
    font-size: 28px;
    color: var(--gold);
    opacity: 0.15;
}

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

.menu-card-badge {
    position: absolute;
    top: 8px;
    left: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 10px 3px 6px;
    border-radius: 0 12px 12px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card Body */
.menu-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.menu-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.menu-card-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.menu-card-weight {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--gold);
    background: rgba(212,175,55,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.15);
    font-weight: 500;
}

.menu-card-desc {
    font-size: 11px;
    color: var(--white-muted);
    line-height: 1.4;
    margin-top: 4px;
    font-weight: 300;
}

.menu-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.menu-card-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 11px;
    color: var(--gold);
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.menu-footer {
    text-align: center;
    padding: 40px 20px 30px;
    margin-top: 20px;
}

.footer-ornament {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.15;
    margin: 16px auto;
    max-width: 200px;
}

.footer-logo-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 2px;
}

.footer-sub {
    font-size: 12px;
    color: var(--white-muted);
    margin-top: 4px;
    font-weight: 300;
    letter-spacing: 3px;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 16px;
    cursor: pointer;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 12px var(--gold-glow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:active {
    transform: scale(0.9);
}

/* ==========================================
   APP ENTRANCE ANIMATIONS
   ========================================== */
.app.visible {
    display: block !important;
    animation: appEntrance 0.6s ease-out forwards;
}

@keyframes appEntrance {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.menu-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 420px) {
    .menu-card-image {
        width: 120px;
        min-height: 120px;
    }

    .menu-card-name { font-size: 16px; }
    .price-value { font-size: 22px; }
}

@media (min-width: 768px) {
    .menu-content {
        max-width: 700px;
        padding: 0 24px 60px;
    }

    .header-logo-img-wrap { width: 180px; }

    .splash-km { font-size: 56px; }
    .splash-brand-left,
    .splash-brand-right { font-size: 34px; }
    .splash-logo-wrapper { width: 200px; height: 200px; }
    .splash-logo-circle { width: 140px; height: 140px; }
}

/* ==========================================
   SCROLLBAR CUSTOM
   ========================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

/* ==========================================
   SELECTION COLOR
   ========================================== */
::selection {
    background: var(--gold);
    color: #000;
}
