:root {
    --primary: #86a82a;
    --primary-hover: #98be30;
    --secondary: #6b6b6b;
    --bg-dark: rgba(15, 17, 26, 0.85);
    --bg-card: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: #cbd5e0;
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #0c0e14;
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Media Container */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
    transition: opacity 1s ease-in-out;
}

/* Main Layout Wrapper */
.app-container {
    max-width: 480px; /* Locked to vertical mobile view width on desktop for perfect consistency */
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(12, 14, 20, 0.65);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px; /* space for floating cart / footer buttons */
}

/* Header & Language Select */
.app-header {
    padding: 30px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.brand span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(134, 168, 42, 0.3);
}

/* Categories List Home Page */
.home-categories {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divided by 2 columns */
    gap: 16px;
    flex-grow: 1;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(12, 14, 20, 0.9) 0%, rgba(12, 14, 20, 0.1) 100%);
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(134, 168, 42, 0.25);
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.category-card span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    z-index: 2;
}

/* Menu Page Styling */
.menu-nav-container {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.menu-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.menu-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.menu-tab {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 30px;
    margin: 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(134, 168, 42, 0.3);
}

/* Search and Filter Section */
.search-container {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(134, 168, 42, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 0.95rem;
}

.allergen-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}

.allergen-filters::-webkit-scrollbar {
    display: none;
}

.allergen-filter-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.allergen-filter-btn.active {
    background: rgba(255, 107, 107, 0.15);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Products List Area */
.products-container {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.product-card {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    padding: 12px;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(134, 168, 42, 0.15);
}

.product-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Modal details stylesheet */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141821;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-media {
    width: 100%;
    height: 240px;
    position: relative;
    background: #000;
}

.modal-media img, .modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-allergens-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Floating Actions: Garson Çağır & Sepet */
.floating-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    display: flex;
    gap: 12px;
    z-index: 40;
}

.btn-float {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-waiter {
    background: #6b6b6b;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-waiter:hover {
    background: #555555;
    transform: translateY(-2px);
}

.btn-cart {
    background: var(--primary);
    color: white;
}

.btn-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(134, 168, 42, 0.4);
}

/* Cart overlay drawer style */
.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 480px;
    background: #141821;
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 60;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translate(-50%, 0);
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.table-input-group {
    margin-bottom: 15px;
}

/* Campaigns and Surveys lists styles on index */
.marketing-section {
    padding: 10px 20px;
    margin-top: 10px;
}

.marketing-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.campaign-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.campaign-slider::-webkit-scrollbar {
    display: none;
}

.campaign-card {
    background: linear-gradient(135deg, rgba(134,168,42,0.15) 0%, rgba(107,107,107,0.1) 100%);
    border: 1px solid rgba(134,168,42,0.25);
    padding: 15px;
    border-radius: 14px;
    min-width: 260px;
    flex-shrink: 0;
}

.survey-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
}

.survey-question {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.survey-buttons {
    display: flex;
    gap: 10px;
}

.btn-survey-vote {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-survey-vote:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Footer / Contact Details */
.footer-contact {
    margin-top: 30px;
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Custom inputs style */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-input:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--secondary);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}
