@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    --bg-primary: #0A0A0C;
    --bg-surface: #141418;
    --bg-card: #1C1C22;
    --bg-glass: rgba(20, 20, 24, 0.85);
    
    --accent-gold: #D4AF37;
    --accent-gold-hover: #E0C068;
    --accent-gold-rgb: 212, 175, 55;
    
    --text-primary: #FFFFFF;
    --text-secondary: #9E9EA7;
    --text-muted: #66666E;
    
    --border-color: #2D2D35;
    --border-glow: rgba(212, 175, 55, 0.15);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- RESET & ACCESSIBILITY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #030303;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

/* --- CENTERING MOBILE CONTAINER (DESKTOP WRAPPER) --- */
.mobile-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px; /* Spacer for sticky call CTA */
}

/* Scrollbar styles for modern touch interfaces */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* --- PREMİUM GÖRKEMLİ LOGO KARŞILAMA ALANI (HERO BÖLÜMÜ) --- */
.app-hero {
    background: linear-gradient(180deg, #16161A 0%, var(--bg-primary) 100%);
    padding: 35px 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    z-index: 2;
    position: relative;
    background-color: var(--bg-surface);
}

.hero-logo-glow {
    position: absolute;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 1;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-status-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-status-wrapper .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #4BD863;
    background: rgba(75, 216, 99, 0.08);
    border: 1px solid rgba(75, 216, 99, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-status-wrapper .status-dot {
    width: 6px;
    height: 6px;
    background-color: #4BD863;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-breathing 1.5s infinite;
}

@keyframes pulse-breathing {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* --- YAPIŞKAN (STICKY) ARAMA VE KATEGORİ PLANI --- */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.search-container {
    padding: 14px 20px 8px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 11px 16px 11px 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: var(--bg-surface);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-input:focus + .search-icon {
    color: var(--accent-gold);
}

/* --- YATAY KAYDIRILABİLİR KATEGORİ PLANI --- */
.category-tabs-container {
    background-color: transparent;
    padding: 6px 20px 12px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
    padding-bottom: 2px;
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-bounce);
}

.category-tab i {
    font-size: 0.95rem;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--accent-gold), #B8902A);
    color: #000;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

/* --- MENU ITEMS --- */
.menu-sections {
    padding: 24px 20px;
}

.menu-category-section {
    margin-bottom: 35px;
    scroll-margin-top: 135px; /* Offset for consolidated sticky header when scrolling */
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), transparent);
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Card - Premium Layout */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent-gold);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover, .product-card:active {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    box-shadow: var(--border-glow) 0 0 10px;
}

.product-card:hover::before, .product-card:active::before {
    opacity: 1;
}

/* Thumbnail */
.product-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Fallback Icon for image-less items */
.product-image-fallback {
    font-size: 1.8rem;
    color: var(--text-muted);
}

/* Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Bubble */
.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-price {
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-align: right;
    transition: var(--transition-smooth);
}

.product-card:hover .product-price {
    background-color: var(--accent-gold);
    color: #000;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* --- FOOTER SECTION --- */
.app-footer {
    padding: 45px 20px 35px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-primary);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--accent-gold) 50%, var(--border-color) 80%, transparent);
    width: 65%;
    margin: 8px auto 6px;
}

.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.credit-badge {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    font-size: 0.65rem;
    border-radius: 12px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-credit p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.shimmer-link {
    color: var(--accent-gold) !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-bounce);
    display: inline-block;
    position: relative;
}

.shimmer-link:hover {
    color: var(--accent-gold-hover) !important;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

/* --- STICKY BOTTOM CALL BUTTON --- */
.call-cta-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    z-index: 99;
}

.call-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold), #B8902A);
    color: #000;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-bounce);
}

.call-cta-button i {
    font-size: 1.1rem;
    animation: shake 2.5s infinite;
}

.call-cta-button:hover, .call-cta-button:active {
    transform: scale(1.03);
    background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold));
}

@keyframes shake {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* --- DETAILS MODAL --- */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-surface);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-top: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.details-modal.open .modal-content-wrapper {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background-color: var(--accent-gold);
    color: #000;
}

/* Modal details content */
.modal-image-wrapper {
    width: 100%;
    height: 250px;
    background-color: #000;
    position: relative;
}

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

.modal-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-primary));
    color: var(--text-muted);
    font-size: 4rem;
}

.modal-details-body {
    padding: 24px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.modal-item-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-item-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.modal-item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}

.modal-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.modal-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-order-now {
    margin-top: 10px;
}
