/* Genel Stil Reset ve Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Kapsayıcı ve Mobil Görünüm Optimizasyonu */
html {
    background-color: #09090b; /* Çok koyu gri/siyah masaüstü arkaplanı */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

body {
    background-color: #121214; 
    color: #f8fafc; 
    width: 100%;
    max-width: 450px; /* Telefon genişliği */
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------
  1. Header ve Navigasyon (Glassmorphism)
------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    padding: 18px 24px;
    background: rgba(18, 18, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
}

.logo {
    font-size: 22px;
    color: #f8fafc; 
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #d4af37, #fde08b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-icon {
    font-size: 28px;
    color: #f8fafc; 
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-icon:active {
    transform: scale(0.9);
}

/* Açılır Menü */
.navbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    max-width: 450px;
    background: rgba(24, 24, 27, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.navbar.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar a {
    font-size: 15px;
    color: #e2e8f0; 
    font-weight: 500;
    text-decoration: none;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.navbar a:last-child {
    border-bottom: none;
}

.navbar a:hover,
.navbar a.active {
    color: #d4af37;
    background: rgba(255, 255, 255, 0.02);
}

/* ---------------------------------
  2. Kategori Kartları (.card-container)
------------------------------------ */
.card {
    padding: 90px 20px 40px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.card-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 21 / 9; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.card-box:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); 
}

.card-box img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-box:hover img {
    transform: scale(1.05);
}

.card-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.card-box h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    margin: 0;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.2px;
}

/* ---------------------------------
  3. Dinamik Menü İçeriği (.menu-display)
------------------------------------ */
.menu-display {
    width: 100%;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.back-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f8fafc; 
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.95);
}

.back-button .bx {
    margin-right: 6px;
    font-size: 1.2rem;
}

.menu-title {
    font-size: 1.8rem;
    color: #d4af37; 
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Ürün Öğeleri (Premium Card Look) */
.menu-item {
    display: flex;
    flex-direction: row;
    align-items: center; 
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative; 
    transition: background 0.3s ease;
}

.menu-item:active {
    background: rgba(255, 255, 255, 0.06);
}

.item-image-container {
    width: 72px; 
    height: 72px; 
    min-width: 72px; 
    border-radius: 12px; 
    overflow: hidden;
    flex-shrink: 0; 
    margin-right: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.menu-item-content {
    display: flex;
    flex-direction: column; 
    flex-grow: 1; 
    padding-right: 5px;
}

.menu-item h3 {
    font-size: 1.05rem;
    color: #f8fafc; 
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.menu-item .description {
    font-size: 0.8rem;
    color: #94a3b8; 
    line-height: 1.4;
}

.menu-item .price {
    font-size: 1.1rem;
    color: #d4af37; 
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
    align-self: flex-start;
    margin-top: 2px;
}

/* Fotoğrafsız öğeler için hizalama düzeltmesi */
.menu-item.no-image .menu-item-content {
    margin-right: 0;
}
.menu-item.no-image .price {
    margin-left: auto; /* Sağa yasla */
}

/* ---------------------------------
  4. Hakkımızda Bölümü
------------------------------------ */
.about {
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #d4af37; 
    font-weight: 600;
}

.about p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1; 
}

/* ---------------------------------
  5. Footer (Altbilgi)
------------------------------------ */
.footer {
    padding: 24px;
    background: #0f0f11; 
    text-align: center;
    color: #64748b; 
    font-size: 0.8rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer p {
    margin: 4px 0;
}

.footer .author-link {
    color: #d4af37; 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer .author-link:hover {
    color: #fde08b;
}