:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1c;
    --orange-main: #ff6b00;
    --orange-hover: #ff8533;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.resto-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--orange-main);
}

.resto-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.resto-nav a {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.resto-nav a:hover {
    color: var(--orange-main);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn-orange {
    display: inline-block;
    background: var(--orange-main);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-orange:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--orange-main);
    color: var(--orange-main);
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    height: 92vh;
    min-height: 580px;
    background: url('https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=2065&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(18, 18, 18, 0.98));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.15);
    color: var(--orange-main);
    border: 1px solid rgba(255, 107, 0, 0.4);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--orange-main);
}

.hero-content p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--orange-main);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--orange-main);
    color: #fff;
    border-color: var(--orange-main);
}

/* Menu Section */
.menu-section {
    padding: 90px 0;
    background: var(--bg-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.menu-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.4);
}

.featured-item {
    border-color: var(--orange-main);
}

.featured-item::before {
    content: 'Şefin Tavsiyesi';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--orange-main);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

/* Stokta Yok / Tükendi Durumu */
.menu-card.out-of-stock {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(28, 28, 28, 0.65);
}

.menu-card.out-of-stock:hover {
    transform: none;
    border-color: rgba(239, 68, 68, 0.45);
}

.menu-card.out-of-stock::after {
    content: 'Tükendi';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

.menu-card.out-of-stock .menu-img,
.menu-card.out-of-stock h3,
.menu-card.out-of-stock p {
    opacity: 0.5;
    filter: grayscale(60%);
}

.menu-card.out-of-stock .menu-footer .price {
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-sold-out {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
}

.menu-img {
    font-size: 54px;
    text-align: center;
    margin-bottom: 15px;
}

.menu-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.menu-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 20px;
    min-height: 42px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.menu-footer .price {
    color: var(--orange-main);
    font-weight: 700;
    font-size: 18px;
}

.add-to-cart {
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange-main);
    border: 1px solid var(--orange-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.add-to-cart:hover {
    background: var(--orange-main);
    color: #fff;
}

/* Order & Cart Section */
.order-section {
    padding: 90px 0;
    background: #0a0a0a;
}

.order-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.order-text {
    flex: 1;
    min-width: 300px;
}

.order-text h2 {
    font-size: 30px;
}

.cart-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 0, 0.25);
    margin-top: 25px;
}

.cart-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #121212;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    border-color: var(--orange-main);
    color: var(--orange-main);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--orange-main);
}

.contact-info {
    margin-top: 25px;
    background: var(--bg-card);
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid var(--orange-main);
}

.contact-info p {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.order-form-wrapper {
    flex: 1;
    min-width: 320px;
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-form-wrapper h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--orange-main);
}

/* Modals (OTP & Order Tracking) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 107, 0, 0.3);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

.otp-input {
    width: 100%;
    padding: 14px;
    margin: 18px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    background: #121212;
    border: 1px solid var(--orange-main);
    color: #fff;
    border-radius: 8px;
}

.demo-otp-hint {
    background: rgba(16, 185, 129, 0.12);
    border: 1px dashed #10b981;
    color: #34d399;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.track-result {
    text-align: left;
    margin-top: 20px;
    background: #121212;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Floating AI Assistant */
.ai-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--orange-main);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.ai-fab:hover {
    transform: scale(1.08);
}

.ai-chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
    z-index: 1600;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-window.open {
    display: flex;
}

.ai-chat-header {
    background: #141414;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h4 {
    font-size: 15px;
    color: var(--orange-main);
}

.ai-chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #121212;
    scroll-behavior: smooth;
}

.ai-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    max-width: 85%;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-msg.bot {
    background: var(--bg-card);
    color: #e2e8f0;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-msg.user {
    background: var(--orange-main);
    color: #fff;
    align-self: flex-end;
}

/* 3 Nokta (Yazıyor...) Animasyonu */
.ai-msg.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    width: auto;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background-color: var(--orange-main);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-chat-footer {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-footer input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #121212;
    color: #fff;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.ai-chat-footer input:focus {
    border-color: var(--orange-main);
}

.ai-chat-footer .btn-orange,
.ai-chat-footer button {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13.5px;
    border-radius: 8px;
}

/* Footer */
.resto-footer {
    text-align: center;
    padding: 30px 20px;
    background: #000;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive (Tablet & Mobile) */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 110px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 8px;
    }

    .logo {
        order: 1;
    }

    .logo a {
        font-size: 20px;
    }

    .header-actions {
        order: 2;
        gap: 6px;
        margin-left: auto;
    }

    .header-actions .btn-orange,
    .header-actions .btn-outline {
        padding: 7px 11px;
        font-size: 12px;
        border-radius: 6px;
    }

    .resto-nav {
        order: 3;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .resto-nav::-webkit-scrollbar {
        display: none;
    }

    .resto-nav ul {
        gap: 18px;
        justify-content: space-between;
        min-width: max-content;
        padding: 0 2px;
    }

    .resto-nav a {
        font-size: 13px;
        display: block;
        padding: 2px 0;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 135px;
        padding-bottom: 55px;
        height: auto;
        min-height: auto;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 16px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 26px;
        padding: 0 4px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn-orange,
    .hero-buttons .btn-outline {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 13.5px;
    }

    /* Sections & Cards */
    .menu-section,
    .order-section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .category-tabs {
        gap: 8px;
        margin-bottom: 28px;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .menu-card {
        padding: 22px 18px;
    }

    /* Order & Form */
    .order-container {
        flex-direction: column;
        gap: 28px;
    }

    .order-text,
    .order-form-wrapper {
        width: 100%;
        min-width: 0;
    }

    .order-text h2 {
        font-size: 25px;
    }

    .cart-box {
        padding: 18px;
    }

    .order-form-wrapper {
        padding: 22px 18px;
    }

    /* Modal */
    .modal-content {
        padding: 24px 18px;
    }

    /* Floating AI Button & Chat Window */
    .ai-fab {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
        font-size: 22px;
    }

    .ai-chat-window {
        bottom: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        transition: top 0.2s ease, bottom 0.2s ease;
    }

    .ai-chat-body {
        height: 240px;
    }

    /* Mobilde metin kutusuna tıklanıp klavye açıldığında pencereyi yukarı taşı */
    .ai-chat-window:focus-within {
        top: 12px;
        bottom: auto;
        z-index: 2500;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    }

    .ai-chat-window:focus-within .ai-chat-body {
        height: 155px;
    }

    .ai-chat-footer {
        padding: 10px;
        gap: 6px;
    }

    .ai-chat-footer input {
        font-size: 16px; /* Mobilde otomatik yakınlaştırmayı (zoom) engeller */
        padding: 9px 10px;
    }

    .ai-chat-footer .btn-orange,
    .ai-chat-footer button {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Robot butonunun footer yazılarını kapatmaması için alt boşluk */
    .resto-footer {
        padding: 25px 16px 95px;
    }
}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .logo a {
        font-size: 18px;
    }

    .header-actions .btn-orange,
    .header-actions .btn-outline {
        padding: 6px 8px;
        font-size: 11px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-orange,
    .hero-buttons .btn-outline {
        width: 100%;
    }
}