/* Client Styling (Landing page & Mobile Menu) */

:root {
    --bg-dark: #090d16;
    --bg-dark-card: #121824;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ff5a3c;
    --accent-hover: #e04a2d;
    --accent-glow: rgba(255, 90, 60, 0.2);
    --border-dark: #222d42;
    --tenant-primary: #ff5a3c; /* Will be overwritten inline */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff5a3c, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-landing {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-landing-outline {
    background-color: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
}

.btn-landing-outline:hover {
    background-color: var(--border-dark);
}

.btn-landing-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-landing-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 60, 0.4);
}

.hero-section {
    text-align: center;
    padding: 5rem 1rem 8rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 90, 60, 0.08) 0%, rgba(9, 13, 22, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tagline {
    background: rgba(255, 90, 60, 0.1);
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 90, 60, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, #ff5a3c, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Features grid */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--accent);
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 90, 60, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Steps section */
.steps-container {
    background-color: rgba(18, 24, 36, 0.5);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 6rem 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

/* ==========================================================================
   CUSTOMER QR MOBILE MENU STYLES
   ========================================================================== */

.menu-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: #0d121f;
    min-height: 100vh;
    padding-bottom: 5rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
}

.menu-header {
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(13, 18, 31, 0.95), rgba(13, 18, 31, 0.8));
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-dark);
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.restaurant-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
}

.restaurant-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light);
}

.restaurant-quick-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.wifi-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

/* Category Slider */
.category-tabs-container {
    background-color: #0d121f;
    position: sticky;
    top: 105px; /* Adjust according to header height */
    z-index: 99;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    background-color: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab.active {
    background-color: var(--tenant-primary);
    color: white;
    border-color: var(--tenant-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Product list */
.menu-sections {
    padding: 1.5rem;
}

.menu-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 170px;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--tenant-primary);
    padding-left: 0.75rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #0d121f;
    flex-shrink: 0;
}

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

.product-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tenant-primary);
    white-space: nowrap;
}

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

.allergen-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-veg {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-gf {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.badge-hot {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.badge-rec {
    background-color: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

/* Expired View Page */
.expired-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-dark);
}

.expired-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.expired-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.expired-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.expired-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Modals Client Side */
.c-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.c-modal-content {
    background-color: var(--bg-dark-card);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid var(--border-dark);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.c-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.c-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.c-modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.c-modal-body {
    margin-bottom: 1.5rem;
}

.wifi-info-box {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-dark);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wifi-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wifi-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.wifi-val {
    font-weight: 700;
    font-size: 0.95rem;
}

.copy-btn {
    font-size: 0.75rem;
    background-color: var(--tenant-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.working-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.working-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-dark);
}

.working-hours-row:last-child {
    border-bottom: none;
}

.modal-product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.modal-variations-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.modal-variation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.modal-variation-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-variation-price {
    font-weight: 800;
    color: var(--tenant-primary);
}

/* Helper styles */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
}
