/* --- STYLE 5: RUBY VELVET & ROSE GOLD (SPLIT SHOWCASE EDITION) --- */

:root {
    --bg-main: #1C110C; /* Deep Espresso Brown */
    --bg-secondary: #120A07; /* Dark Coffee */
    --bg-card: rgba(28, 17, 12, 0.7);
    --gold: #D4AF37; /* Classic Gold */
    --gold-light: #F9E596;
    --gold-dark: #8B6914;
    --border-color: rgba(212, 175, 55, 0.2);
    --border-hover: rgba(212, 175, 55, 0.5);
    
    --text-white: #fdfcfd;
    --text-gold: #f4dbe2;
    --text-muted: #a6948a; /* Warm grayish brown */
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 12px rgba(10, 5, 2, 0.4);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-ar);
    min-height: 100vh;
    overflow: hidden;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

/* ====================================================
   THEATER REVEAL ENTRANCE
===================================================== */
.velvet-entrance {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Enabled so user can click Enter */
    transition: opacity 1s ease;
    background: #0b0105; /* Dark background matching video margins */
}

.velvet-entrance.revealed {
    pointer-events: none; /* Disabled once opened */
}

.entrance-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover; /* Fill entire screen since video is correctly sized now */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 5, 0.6); /* Espresso dark tint over video */
    z-index: 2;
}

.curtain-half {
    display: none;
}

.curtain-top {
    transform-origin: top;
}

.curtain-bottom {
    transform-origin: bottom;
}

.entrance-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    animation: cinematicReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 5.5s forwards;
}

@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.entrance-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(191, 162, 171, 0.08);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 25px rgba(191, 162, 171, 0.2);
}

.entrance-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.entrance-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.entrance-subtitle {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 700;
}

.velvet-entrance.revealed .curtain-top {
    transform: translateY(-100%);
}

.velvet-entrance.revealed .curtain-bottom {
    transform: translateY(100%);
}

.velvet-entrance.revealed .entrance-content {
    opacity: 0;
    transform: translate(-50%, -80%);
}

.velvet-entrance.hidden {
    display: none;
}

.enter-btn {
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 25px;
    border: 1px solid var(--gold);
    background: rgba(48, 3, 15, 0.7);
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(48, 3, 15, 0.4);
}

.enter-btn:hover {
    transform: scale(1.05);
    background: var(--gold);
    color: var(--bg-main);
    box-shadow: 0 6px 20px rgba(191, 162, 171, 0.4);
}

/* ====================================================
   SPLIT SCREEN CONTAINERS
===================================================== */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* A. Sticky/Fixed Visual Showcase (Left) */
.visual-frame {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.velvet-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #D4AF37; /* Gold glow */
    filter: blur(120px);
    opacity: 0.12;
    top: 30%;
    left: 20%;
    z-index: 1;
    pointer-events: none;
    animation: breathing 4s infinite alternate ease-in-out;
}

@keyframes breathing {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(1.15); opacity: 0.15; }
}

.frame-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 1, 5, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(191, 162, 171, 0.1);
}

.hub-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.hub-back:hover {
    color: var(--text-white);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-group i {
    font-size: 1.25rem;
    color: var(--gold);
}

.brand-group span {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.15rem;
}

.lang-text-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-en);
    transition: var(--transition);
}

.lang-text-btn:hover {
    color: var(--gold);
}

.lang-sep {
    color: rgba(212, 175, 55, 0.5); /* Semi-transparent gold */
    font-weight: 300;
    margin: 0 2px;
}

html[lang="en"] .lang-en { color: var(--gold); }
html[lang="ar"] .lang-ar { color: var(--gold); }

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gold);
    color: #0a0508;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.image-showcase {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

.showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.showcase-img.active {
    opacity: 1;
    z-index: 3;
    animation: levitate 6s ease-in-out infinite;
}

@keyframes levitate {
    0% { transform: translateY(0px) scale(1.02); }
    50% { transform: translateY(-12px) scale(1.02); }
    100% { transform: translateY(0px) scale(1.02); }
}

/* --- Parallax & Particles --- */
#gold-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-secondary) 100%), 
                url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="2" cy="2" r="1" fill="rgba(212,175,55,0.05)"/%3E%3C/svg%3E');
    z-index: -1;
    pointer-events: none;
    transform: translateY(0);
    will-change: transform;
}

/* --- Luxury Signatures / Badges --- */
.luxury-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-secondary);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
}
.luxury-badge i {
    font-size: 0.6rem;
}

.showcase-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(191, 162, 171, 0.12), var(--bg-secondary));
    color: var(--gold);
    font-size: 3.5rem;
    z-index: 1;
}

.showcase-fallback span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 2px;
}

.arch-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
    pointer-events: none;
    z-index: 4;
}

/* B. Scrollable Text List (Right) */
.text-scroll-area {
    width: 50%;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-main);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

html[lang="en"] .text-scroll-area {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.menu-intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro-crown {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
    animation: crownGlow 3s infinite alternate ease-in-out;
}

@keyframes crownGlow {
    from { text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); transform: scale(1); }
    to { text-shadow: 0 0 15px rgba(212, 175, 55, 0.6); transform: scale(1.05); }
}

.menu-intro h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.menu-intro p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Elegant Line Navigation --- */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to next line if they don't fit */
    justify-content: center; /* Center them perfectly */
    gap: 12px 20px; /* Vertical gap 12px, Horizontal gap 20px */
    padding: 15px 10px;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, rgba(28, 17, 12, 0.95) 85%, transparent);
}

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

.category-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 0.8rem; /* Small and tidy */
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 5px; /* Space for the underline */
    position: relative;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.category-tab.active {
    color: var(--gold);
    opacity: 1;
}

/* Thin golden elegant underline for active tab */
.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* --- Staggered Fade Up Animations --- */
.fade-up-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    display: flex;
    flex-direction: column;
    margin: 30px 0 20px;
    scroll-margin-top: 20px;
}

.category-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.category-header .line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

html[lang="en"] .category-header .line {
    background: linear-gradient(270deg, var(--border-color), transparent);
}

/* Menu Item Row */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.005);
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.item-info {
    flex-grow: 1;
    padding-left: 20px;
}

html[lang="en"] .item-info {
    padding-left: 0;
    padding-right: 20px;
}

.item-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    transition: var(--transition);
}

.menu-item:hover h3, .menu-item.active h3 {
    color: var(--text-gold);
}

.item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.item-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.item-action .price {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--text-white);
}

.add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-dark);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:hover .add-btn, .menu-item.active .add-btn {
    background: var(--gold);
    color: var(--bg-main);
    box-shadow: 0 4px 10px rgba(191, 162, 171, 0.35);
}

.add-btn i {
    font-size: 0.88rem;
}

/* Velvet Footer */
.velvet-footer {
    text-align: center;
    padding: 30px 10px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: #8c5b69;
}

/* ====================================================
   MOBILE RESPONSIVENESS OVERRIDES
===================================================== */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .app-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    /* Sticky Top visuals */
    .visual-frame {
        width: 100%;
        height: 38vh;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }
    
    .frame-header {
        padding: 12px 20px;
    }
    
    .arch-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    /* Scroll text area */
    .text-scroll-area {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 24px 16px;
        border-right: none;
        border-left: none;
    }
    
    .menu-intro {
        margin-bottom: 24px;
    }
}

/* LTR layout overrides */
html[lang="en"] .frame-header,
html[lang="en"] .brand-group,
html[lang="en"] .item-action,
html[lang="en"] .menu-item {
    flex-direction: row;
}
