/* css/style.css */
:root {
    /* Açık Tema (Gündüz) Değişkenleri - Varsayılan */
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --accent-color: #d4af37; /* Premium Gold */
    --border-color: #dfe6e9;
    --header-bg: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    /* Landing Page Özel Değişkenleri */
    --landing-primary: #4f46e5;
    --landing-primary-dark: #0ea5e9;
    --landing-bg: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
}

/* Koyu Tema (Gece) Değişkenleri */
body.dark-theme {
    --bg-color: #121212;
    --card-bg: #1c1c1e;
    --text-main: #f5f5f7;
    --text-muted: #98989d;
    --border-color: rgba(255, 255, 255, 0.08);
    --header-bg: linear-gradient(180deg, #1a1a1c 0%, #121212 100%);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --landing-bg: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

/* ================================
   PREMIUM QR MENÜ TASARIMI (id=? alanı)
================================ */

.premium-header {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

/* Tema Değiştirme Butonu */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.logo-icon {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.premium-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.restaurant-type {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.category-nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.category-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 15px 20px;
    gap: 20px;
    list-style: none;
}

.category-list::-webkit-scrollbar { display: none; }

.category-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.category-link.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

.menu-container {
    padding: 30px 20px 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 50px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title-line {
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}

.product-card:active {
    transform: scale(0.98);
    border-color: var(--accent-color);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.product-name {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.single-price {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.portion-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portion-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.portion-name {
    font-size: 14px;
    color: var(--text-muted);
}

.portion-dots {
    flex-grow: 1;
    border-bottom: 1px dotted var(--text-muted);
    margin: 0 10px;
    opacity: 0.3;
    position: relative;
    top: -4px;
}

.portion-price {
    font-size: 15px;
    font-weight: 500;
}

.powered-by {
    text-align: center;
    padding: 30px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
.powered-by a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* ================================
   ANA SAYFA (LANDING PAGE) TASARIMI
================================ */
.landing-page {
    background: var(--landing-bg);
    min-height: 100vh;
    transition: background 0.3s ease;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-nav .logo {
    font-size: 24px;
    font-weight: 800;
}
.landing-nav .logo span {
    color: var(--landing-primary);
}

.btn-primary {
    background: var(--landing-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--landing-primary-dark); color: white;}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: inline-block;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content .highlight {
    color: var(--landing-primary);
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1e272e;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--landing-primary), #139ee9);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}
.phone-screen i {
    font-size: 60px;
    margin-bottom: 15px;
}

/* Animasyonlar (Landing & Menu Ortak) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}