/* style.css - Premium QR Menu Stylesheet for Rozz Bistro Lounge */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
    --bg-dark: #070708;
    --bg-card: rgba(22, 22, 26, 0.7);
    --bg-header: rgba(10, 10, 12, 0.8);
    --accent-gold: #C5A880;
    --accent-gold-glow: rgba(197, 168, 128, 0.2);
    --accent-gold-gradient: linear-gradient(135deg, #E6D5C3 0%, #C5A880 50%, #9F825B 100%);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(197, 168, 128, 0.2);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 520px;
    /* Mobile size container */
}

/* Reset & Scrollbar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.3);
    border-radius: 4px;
}

html,
body {
    background-color: #030303;
    font-family: var(--font-sans);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Desktop Centering Wrapper */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--bg-dark);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 80px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Header & Branding */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(197, 168, 128, 0.1);
}

.logo span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-top: -3px;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switch:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Search Bar */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 10px 15px 10px 40px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

/* Instagram-style Stories */
.stories-container {
    padding: 15px 0 15px 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
    /* Hide for Firefox */
}

.stories-container::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 72px;
}

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
    transition: transform 0.3s ease;
}

.story-item:hover .story-ring {
    transform: scale(1.05);
}

.story-item.read .story-ring {
    background: var(--text-muted);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    object-fit: cover;
    background-color: #222;
}

.story-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Category Navigation (Horizontal Slide) */
.categories-nav {
    position: sticky;
    top: 115px;
    /* Offset for header height */
    z-index: 90;
    background: rgba(7, 7, 8, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 20px;
    padding-right: 20px;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: rgba(197, 168, 128, 0.5);
}

.category-tab.active {
    background: var(--accent-gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

/* Menu Content Section */
.menu-section {
    padding: 20px;
}

.category-header {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-gold), transparent);
}

/* Product Cards */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: rgba(197, 168, 128, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img-wrapper {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

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

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap;
}

.product-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
    margin-bottom: 6px;
}

.tag-pill {
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-pill.chef {
    background: rgba(197, 168, 128, 0.15);
    color: #E6D5C3;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.tag-pill.spicy {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-pill.alcohol {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-pill.popular {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Bottom Actions Bar */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    z-index: 80;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.action-btn:hover,
.action-btn.active {
    color: var(--accent-gold);
}

/* Fullscreen Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.story-modal-container {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-progress-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 1010;
}

.story-progress-segment {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: #FFF;
    transition: width 0.1s linear;
}

.story-modal-header {
    position: absolute;
    top: 25px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1010;
}

.story-modal-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.story-modal-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
    object-fit: cover;
}

.story-modal-close {
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 5px;
}

.story-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav touch areas inside story viewer */
.story-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 1005;
    cursor: pointer;
}

.story-nav-btn.prev {
    left: 0;
}

.story-nav-btn.next {
    right: 0;
}

/* Product Detail Modal (Bottom Sheet style) */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 900;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.detail-sheet {
    width: 100%;
    max-width: var(--max-width);
    background: #0d0d10;
    border-top: 1px solid var(--border-gold);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.detail-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 910;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.detail-close-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.detail-img-container {
    width: 100%;
    height: 280px;
    position: relative;
}

.detail-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #0d0d10, transparent);
}

.detail-body {
    padding: 20px 25px 35px 25px;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.detail-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.detail-desc-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Call Waiter Custom Prompt UI */
.waiter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.waiter-card {
    background: #0d0d10;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 25px;
    text-align: center;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.waiter-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.waiter-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.table-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: #FFF;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.waiter-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    flex: 1;
    background: var(--accent-gold-gradient);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.btn-secondary:hover {
    color: #FFF;
    border-color: var(--text-secondary);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.4);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #16161a 25%, #22222a 50%, #16161a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Font Awesome fallbacks inside code if needed */
.icon-search::before {
    content: "\f002";
}

.icon-globe::before {
    content: "\f0ac";
}

.icon-instagram::before {
    content: "\f16d";
}

.icon-phone::before {
    content: "\f095";
}

.icon-bell::before {
    content: "\f0f3";
}

.icon-info::before {
    content: "\f129";
}

.icon-wifi::before {
    content: "\f1eb";
}

.icon-close::before {
    content: "\f00d";
}