/* style.css - Doria Hotel Bodrum QR Menü Tasarım Sistemi */
:root {
    --primary-color: #0169a8;
    --primary-light: #0288d1;
    --primary-dark: #014c7a;
    --accent-color: #d4af37;
    --bg-light: #f8f9fa;
    --bg-warm: #fdfcf9;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-subtle: #eeeeee;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: var(--primary-color);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.logo-img { height: 48px; width: auto; filter: brightness(0) invert(1); }

.lang-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Weather Bar */
.weather-bar {
    background: rgba(255,255,255,0.1); color: white; padding: 5px 20px;
    font-size: 11px; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.weather-item { display: flex; align-items: center; gap: 5px; }

/* Grid Layout */
.app-container { max-width: 600px; margin: 0 auto; padding: 25px 15px; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.category-card {
    background: white; border-radius: var(--radius-md); padding: 24px 12px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition); border: none;
    min-height: 180px; justify-content: center;
}

.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-logo-wrapper {
    width: 80px; height: 80px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 50%; overflow: hidden;
    padding: 2px; border: 1px solid var(--border-subtle);
}

.card-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }

/* Logo Sizing Fixes for Specific Brands */
.category-card[data-id="maiandraspa"] .card-logo-wrapper img,
.category-card[data-id="saffet-dede"] .card-logo-wrapper img {
    width: 90%; height: 90%;
    transform: none; /* Resetting previous scales */
}

.card-title { font-weight: 600; font-size: 13px; color: var(--primary-dark); }
.card-desc { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* Article Layout (Premium Guide) */
.article-container { padding: 0 0 40px 0; }
.article-header { padding: 40px 20px; text-align: center; background: white; margin-bottom: 20px; }
.article-main-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--primary-color); margin-bottom: 10px; }
.article-intro { font-size: 14px; color: var(--text-muted); max-width: 80%; margin: 0 auto; }

.article-section { margin-bottom: 40px; }
.article-section-title {
    font-family: 'Playfair Display', serif; font-size: 22px; color: var(--primary-dark);
    padding: 15px 20px; border-bottom: 2px solid var(--accent-color);
    display: inline-block; margin-bottom: 20px; margin-left: 20px;
}

.article-item { background: white; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.article-img { width: 100%; height: 250px; object-fit: cover; }
.article-body { padding: 25px; }
.article-item-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.article-item-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; }
.article-item-meta { font-weight: 600; color: var(--primary-color); font-size: 14px; background: var(--bg-light); padding: 5px 15px; border-radius: 20px; display: inline-block; }

/* Standard Menu Details */
.detail-view { background: var(--bg-light); min-height: 100vh; }
.detail-header-info { text-align: center; padding: 40px 20px; background: white; margin-bottom: 15px; }
.detail-logo { height: 60px; margin-bottom: 15px; }
.detail-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--primary-color); }
.detail-description { font-size: 14px; color: var(--text-muted); }

.menu-category-title {
    padding: 15px 20px; font-size: 13px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--primary-color); font-weight: 700;
}

.menu-item {
    display: flex; padding: 20px; background: white; margin-bottom: 2px; gap: 15px;
}

.menu-item-info { flex: 1; }
.menu-item-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.menu-item-name { font-weight: 600; font-size: 16px; }
.menu-item-price { font-weight: 700; color: var(--primary-color); }
.menu-item-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }

.menu-item-img-wrapper { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; }
.menu-item-img { width: 100%; height: 100%; object-fit: cover; }

.add-btn {
    background: var(--primary-color); color: white; border: none;
    padding: 8px 20px; border-radius: 25px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* Modals */
.cart-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}

.cart-content {
    background: white; width: 100%; max-width: 480px; border-radius: var(--radius-md);
    padding: 30px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}

.hidden { display: none; }
.back-btn {
    display: flex; align-items: center; gap: 8px; background: white; border: none;
    padding: 15px 20px; cursor: pointer; color: var(--primary-color); font-weight: 700;
    box-shadow: var(--shadow-sm); margin-bottom: 2px;
}

/* Cart Float */
.cart-float {
    position: fixed; bottom: 30px; right: 30px; background: var(--primary-color);
    width: 65px; height: 65px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white;
    font-size: 26px; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 1000;
}

.cart-count {
    position: absolute; top: -5px; right: -5px; background: #ff3b30;
    color: white; font-size: 12px; width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; background: #25d366;
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white;
    font-size: 30px; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 1000;
    text-decoration: none; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Feedback Section */
.feedback-section {
    margin-top: 40px; padding: 30px 20px; background: white;
    border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-sm);
}
.feedback-title { font-weight: 600; color: var(--primary-color); margin-bottom: 15px; }
.stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.star { font-size: 24px; cursor: pointer; color: #ddd; transition: 0.2s; }
.star.active { color: #ffcc00; }
.feedback-input { 
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; 
    font-family: inherit; font-size: 13px; margin-bottom: 15px;
}

/* Spa ve Saffet Dede Çiftliği menülerinde ekleme butonlarını kesin olarak gizleme */
.menu-sections[data-category="maiandraspa"] .add-btn,
.menu-sections[data-category="saffet-dede"] .add-btn {
    display: none !important;
}

/* RTL (Arapça) Sağdan Sola Arayüz Desteği */
body[dir="rtl"] {
    text-align: right;
    font-family: 'Poppins', sans-serif;
}
body[dir="rtl"] .lang-toggle {
    left: auto;
    right: 20px;
}
body[dir="rtl"] .back-btn {
    flex-direction: row-reverse;
}
body[dir="rtl"] .back-btn svg {
    transform: rotate(180deg);
}
body[dir="rtl"] .menu-item-header {
    flex-direction: row-reverse;
}
body[dir="rtl"] .article-section-title {
    margin-left: 0;
    margin-right: 20px;
    border-bottom: none;
    border-right: 4px solid var(--accent-color);
    padding-right: 15px;
    padding-left: 0;
}
body[dir="rtl"] .cart-float {
    right: auto;
    left: 30px;
}
body[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}
body[dir="rtl"] .cart-header {
    flex-direction: row-reverse;
}
body[dir="rtl"] .cart-item-qty {
    flex-direction: row-reverse;
}
body[dir="rtl"] .field-group label {
    text-align: right;
}
body[dir="rtl"] .field-group input {
    text-align: right;
}
body[dir="rtl"] .cart-total {
    text-align: left !important;
}


