/* ============================================
   CUSTOMER MENÜ - ORTAK CSS
   Tüm customer temaları için ortak stiller
   ============================================ */

/* ============================================
   GENEL AYARLAR
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Emoji desteği */
.emoji {
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 1.2em;
}

/* ============================================
   HEADER & RESTORAN BİLGİLERİ
   ============================================ */
.menu-header {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.restaurant-info {
    padding: 30px 20px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.restaurant-info.has-header-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.restaurant-info.has-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.restaurant-info.has-header-bg > * {
    position: relative;
    z-index: 2;
}


.restaurant-info.has-header-bg .restaurant-name,
.restaurant-info.has-header-bg .contact-info {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0;
    display: block;
    flex-shrink: 0;
}

.restaurant-info-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.restaurant-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
}

.contact-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

/* ============================================
   DİL SEÇİCİ
   ============================================ */
.language-bar {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.language-bar::-webkit-scrollbar {
    display: none;
}

.language-bar a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.language-bar a:hover {
    transform: translateY(-2px);
}

.language-bar a.active {
    font-weight: 600;
}

/* ============================================
   SERVİS BUTONLARI (Garson Çağır, Geri Bildirim)
   ============================================ */
.service-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.service-btn,
.feedback-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.service-btn:hover,
.feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.service-btn:active,
.feedback-btn:active {
    transform: scale(0.95);
}

/* ============================================
   MODAL (Ürün Detay, Garson Çağır, Geri Bildirim)
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    color: var(--text-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-align: left;
    color: var(--text-primary);
    line-height: 1.3;
    padding-right: 40px;
}

.modal-product-image {
    width: 100%;
    max-height: 400px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: visible;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 5px;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: transparent;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 25px 30px;
    background: var(--bg-card);
}

.modal-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.modal-price {
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-price .original-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.modal-price .discount-price {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
}

/* Porsiyon fiyatları */
.portion-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin: 20px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
}

.portions-list {
    display: grid;
    gap: 14px;
}

.portion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.portion-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

.portion-name {
    font-weight: 600;
    color: var(--text-primary);
}

.portion-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 17px;
}

/* Form elementleri */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating yıldızları */
.rating-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-group label {
    flex: 1;
    margin: 0;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Butonlar */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ============================================
   TOAST BİLDİRİMLERİ
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: toastSlideUp 0.3s ease-out;
    max-width: 90%;
    text-align: center;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   BOŞ DURUM MESAJLARI
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   YÜKLEME ANİMASYONU
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSİVE TASARIM
   ============================================ */
@media (max-width: 768px) {
    .restaurant-info {
        padding: 20px 15px;
        gap: 15px;
    }

    .restaurant-info.has-header-bg {
        min-height: 150px;
    }

    .restaurant-logo {
        width: 70px;
        height: 70px;
    }

    .restaurant-name {
        font-size: 20px;
        margin: 0 0 6px 0;
    }

    .contact-info {
        font-size: 13px;
        gap: 6px;
    }

    .service-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .service-btn,
    .feedback-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 18px 20px;
        gap: 6px;
    }

    .modal-title {
        font-size: 20px;
        padding-right: 35px;
    }

    .modal-price {
        font-size: 18px;
    }

    .modal-price .discount-price {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .toast {
        bottom: 80px;
        font-size: 13px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .restaurant-info {
        padding: 15px 10px;
        gap: 12px;
    }

    .restaurant-info.has-header-bg {
        min-height: 130px;
    }

    .restaurant-logo {
        width: 60px;
        height: 60px;
    }

    .restaurant-name {
        font-size: 18px;
        margin: 0 0 5px 0;
    }

    .contact-info {
        font-size: 12px;
        gap: 5px;
    }

    .language-bar {
        padding: 8px 10px;
    }

    .language-bar a {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 13px;
    }

    .service-buttons {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }

    .service-btn,
    .feedback-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .modal-header {
        padding: 16px 15px;
        gap: 6px;
    }

    .modal-title {
        font-size: 18px;
        padding-right: 32px;
    }

    .modal-price {
        font-size: 16px;
    }

    .modal-price .discount-price {
        font-size: 18px;
    }

    .modal-price .original-price {
        font-size: 14px;
    }

    .modal-body {
        padding: 18px 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
}

/* ============================================
   SCROLLBAR STİLİ
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

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

/* ============================================
   ÜRÜN DETAY GÖSTERGESİ
   ============================================ */
.product-detail-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.product-detail-indicator i {
    font-size: 12px;
}

/* ============================================
   YARDIMCI SINIFLAR
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
