/**
 * Mestet Restoran - Mobil-First Ana Stil Dosyası
 * Tamamen mobil görünüm için optimize edilmiş
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   GENEL AYARLAR - MOBİL FIRST
   ============================================ */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    background: #f9fafb;
}

/* Tüm ekranlar için mobil görünüm zorla */
@media (min-width: 640px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   HEADER VE ARKA PLAN
   ============================================ */
.header-background {
    background-image: url('https://platform.austin.eater.com/wp-content/uploads/sites/22/chorus/uploads/chorus_asset/file/25823410/Aris_FoodSpread_ByBethanyEllenOchs.jpg?quality=90&strip=all&crop=16.650390625%2C0%2C66.69921875%2C100&w=2400');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(1px);
}

/* ============================================
   HEADER LOGO STİLLERİ
   ============================================ */
.header-logo-img {
    width: 220px;
    height: 220px;
    max-width: 55vw;
    max-height: 55vw;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}

.header-logo-letter {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================
   HEADER ICON BUTTONS
   ============================================ */
.header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    overflow: hidden;
    color: #ffffff;
}

.header-icon-btn i {
    font-size: 0.9rem;
}

.header-icon-btn svg.header-icon-scooter {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.header-icon-btn svg.header-icon-scooter .stroke {
    stroke: currentColor;
}

.header-icon-btn svg.header-icon-scooter .wheel {
    fill: currentColor;
    stroke: currentColor;
}

.menu-header-content {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.menu-header-logo {
    margin-top: -1.4rem;
    margin-bottom: -1.2rem;
}

.menu-header-icons {
    margin-top: -2.2rem;
}

.header-icon-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   KATEGORİ TABLARI - MOBİL FRIENDLY
   ============================================ */
.category-tab {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.category-tab.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* Scrollbar Gizleme */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Kategori Tabları Scroll */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    will-change: scroll-position;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

#categoryTabs {
    min-width: max-content;
}

/* ============================================
   MENÜ ÖĞELERİ VE ANİMASYONLAR
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }

.menu-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ekleme Butonu */
.add-to-cart-btn {
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
}

.add-to-cart-btn:active {
    transform: scale(0.9);
}

/* ============================================
   FİYAT ROZETİ - MOBİL OPTİMİZE
   ============================================ */
.price-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    font-size: 16px;
}

/* Grid Layout için aspect ratio */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* ============================================
   MENÜ KATEGORİ GEÇİŞLERİ
   ============================================ */
.menu-category {
    animation: fadeInUp 0.3s ease-out;
}

/* ============================================
   SPLASH EKRAN STİLLERİ - YENİDEN YAPILDI
   ============================================ */
.splash-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://platform.austin.eater.com/wp-content/uploads/sites/22/chorus/uploads/chorus_asset/file/25823410/Aris_FoodSpread_ByBethanyEllenOchs.jpg?quality=90&strip=all&crop=16.650390625%2C0%2C66.69921875%2C100&w=2400');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.splash-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.splash-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    backdrop-filter: blur(1px);
}

@media (min-width: 481px) {
    .splash-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
}

.splash-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    animation: splashFadeIn 1s ease-out;
}

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

.splash-logo {
    margin-bottom: 2rem;
    position: relative;
}

.splash-logo-wrapper {
    position: relative;
    display: inline-block;
}

.splash-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: splashGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes splashGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.logo-letter {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: splashLogoFloat 3s ease-in-out infinite;
}

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

.logo-circle .logo-letter {
    font-size: 2.5rem;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.splash-logo-img {
    width: 280px;
    height: 280px;
    max-width: 85vw;
    max-height: 85vw;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    animation: splashLogoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.splash-welcome {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.splash-welcome-line {
    display: inline-block;
    animation: splashTextSlideIn 0.8s ease-out 0.2s both;
}

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

.splash-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.splash-text-line {
    display: inline-block;
    animation: splashTextSlideIn 0.8s ease-out 0.4s both;
}

.splash-text-line:nth-child(2) {
    animation-delay: 0.6s;
}

.splash-hand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.splash-hand-icon {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    animation: splashHandBounce 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.splash-hand-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: splashHandPulse 2s ease-out infinite;
}

@keyframes splashHandBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes splashHandPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.splash-container:active .splash-hand-icon {
    transform: translateY(0) scale(0.9);
}

.splash-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: splashFadeIn 1s ease-out 0.8s both;
}

.splash-footer-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    }

.splash-footer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ============================================
   ÖZELLEŞTİRİLMİŞ SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:active {
    background: #b91c1c;
}

/* ============================================
   MOBİL ÖZEL İYİLEŞTİRMELER
   ============================================ */
/* Dokunma alanları için minimum boyutlar */
button, a, .menu-item {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
}

/* Metin seçimini engelle (mobil için) */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   GÖRSEL OPTİMİZASYONLARI
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-item img {
    object-fit: cover;
    transition: transform 0.2s ease;
}

.menu-item:active img {
    transform: scale(1.02);
}

/* ============================================
   CONTAINER VE SPACING - MOBİL FIRST
   ============================================ */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   FOOTER - MOBİL OPTİMİZE
   ============================================ */
footer {
    padding: 12px 0;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE İYİLEŞTİRMELER
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .category-tab {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .menu-item {
        min-height: 110px;
    }
}

/* Büyük ekranlarda bile mobil görünüm */
@media (min-width: 1024px) {
    body {
        max-width: 480px;
    }
}

/* ============================================
   PRODUCT MODAL - TAM EKRAN MODERN MODAL
   ============================================ */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

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

.product-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.product-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    z-index: 2;
}

/* Close Button */
.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-modal-close:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.8);
}

/* Carousel Container */
.product-modal-carousel {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    z-index: 3;
}

.product-modal-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 4;
}

.product-modal-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    z-index: 5;
    background: #ffffff;
}

/* Product Image Container */
.product-modal-image-container {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    background: #f3f4f6;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-modal-popular-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.product-modal-popular-badge i {
    font-size: 0.75rem;
}

/* Product Content */
.product-modal-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    z-index: 6;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.product-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.product-modal-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

/* Product Footer */
.product-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.product-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.product-modal-actions,
.product-modal-add-btn {
    display: none;
}

.product-modal-choice-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    width: 100%;
}

.product-modal-choice {
    position: relative;
    display: block !important;
    border-radius: 20px;
    overflow: hidden;
    height: 130px;
    width: 100%;
    text-decoration: none;
}

.product-modal-choice-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.product-modal-choice-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.product-modal-choice-content {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
}

.choice-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.25rem;
}

.choice-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.choice-cta {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

/* Navigation Arrows */
.product-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.3);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-modal-nav:hover,
.product-modal-nav:active {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.05);
}

.product-modal-nav-prev {
    left: 1rem;
}

.product-modal-nav-next {
    right: 1rem;
}

.product-modal-nav.hidden {
    display: none;
}

/* Product Indicator */
.product-modal-indicator {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10000;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}


/* Scrollbar Styling for Modal */
.product-modal-slide::-webkit-scrollbar {
    width: 4px;
}

.product-modal-slide::-webkit-scrollbar-track {
    background: transparent;
}

.product-modal-slide::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.product-modal-slide::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    width: 100%;
}