/*
 * Ô Lounge Meknès — Theme Stylesheet
 * Premium Shisha Lounge Landing Page
 * Version: 1.0.0
 */

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #0B0B0B;
    color: #FFFFFF;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(200, 162, 76, 0.3);
    color: #FFFFFF;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0B0B0B; }
::-webkit-scrollbar-thumb { background: rgba(200, 162, 76, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 162, 76, 0.5); }

/* Hide WordPress admin bar on frontend */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }


/* ═══════════════════════════════════════════
   BACKGROUND LAYERS
   ═══════════════════════════════════════════ */

.ol-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0;
    animation: olFadeIn 2s ease-out 0.2s forwards;
}

.ol-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 130%, rgba(18, 56, 47, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, #111111 0%, #0B0B0B 100%);
}

.ol-bg-ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(200, 162, 76, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(200, 162, 76, 0.03) 0%, transparent 45%);
}

.ol-bg-warm-bottom {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 105%, rgba(200, 162, 76, 0.07) 0%, transparent 45%);
}

/* Chicha warm glow spots — simulate warm light from chicha bowls */
.ol-bg-chicha-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: olChichaPulse 6s ease-in-out infinite;
}

.ol-bg-chicha-glow--left {
    width: 300px;
    height: 300px;
    left: 5%;
    bottom: 15%;
    background: radial-gradient(circle, rgba(200, 130, 50, 0.06) 0%, transparent 70%);
    animation-delay: 0s;
}

.ol-bg-chicha-glow--right {
    width: 250px;
    height: 250px;
    right: 8%;
    bottom: 20%;
    background: radial-gradient(circle, rgba(200, 162, 76, 0.05) 0%, transparent 70%);
    animation-delay: -2s;
}

.ol-bg-chicha-glow--center {
    width: 400px;
    height: 200px;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(180, 100, 40, 0.05) 0%, transparent 70%);
    animation-delay: -4s;
}


/* ═══════════════════════════════════════════
   SMOKE CANVAS
   ═══════════════════════════════════════════ */

#olSmokeCanvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}


/* ═══════════════════════════════════════════
   VIGNETTE
   ═══════════════════════════════════════════ */

.ol-vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(0, 0, 0, 0.55) 100%
    );
}


/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */

.ol-main {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}


/* ═══════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════ */

.ol-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.ol-logo-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 162, 76, 0.14) 0%, transparent 70%);
    filter: blur(40px);
    animation: olGoldGlow 3s ease-in-out infinite;
}

.ol-logo-float {
    position: relative;
    animation: olFloat 4s ease-in-out infinite;
    animation: olGoldGlow 3s ease-in-out infinite, olFloat 4s ease-in-out infinite;
}

.ol-logo-img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(200, 162, 76, 0.3));
}

/* Custom logo from WordPress customizer */
.ol-logo-float .custom-logo-link {
    display: block;
    line-height: 0;
}

.ol-logo-float .custom-logo-link img {
    width: 176px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(200, 162, 76, 0.3));
}


/* ═══════════════════════════════════════════
   LANGUAGE BUTTONS (Glassmorphism)
   ═══════════════════════════════════════════ */

.ol-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding: 0 0.5rem;
}

.ol-glass-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
    padding: 0.9rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 162, 76, 0.3);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glass border gradient overlay */
.ol-glass-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(200, 162, 76, 0.4),
        transparent 50%,
        rgba(200, 162, 76, 0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Shimmer sweep on hover */
.ol-glass-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 162, 76, 0.06),
        transparent
    );
    transition: none;
}

.ol-glass-btn:hover::after {
    animation: olShimmer 0.8s ease-out forwards;
}

.ol-glass-btn:hover {
    background: rgba(200, 162, 76, 0.08);
    border-color: rgba(200, 162, 76, 0.5);
    box-shadow:
        0 0 30px rgba(200, 162, 76, 0.15),
        0 0 60px rgba(200, 162, 76, 0.05),
        inset 0 0 30px rgba(200, 162, 76, 0.03);
    transform: scale(1.03);
}

.ol-glass-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* Focus for accessibility */
.ol-glass-btn:focus-visible {
    outline: 2px solid #C8A24C;
    outline-offset: 3px;
}

.ol-flag-img {
    flex-shrink: 0;
    width: 28px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 3px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ol-glass-btn:hover .ol-flag-img {
    opacity: 1;
}

.ol-btn-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #FFFFFF;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════
   SOCIAL
   ═══════════════════════════════════════════ */

.ol-social {
    margin-top: 2rem;
}

.ol-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.5s ease;
}

.ol-social-link:hover {
    color: #C8A24C;
}

.ol-instagram-icon {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(200, 162, 76, 0.2));
    animation: olSubtleGlow 2.5s ease-in-out infinite;
}

.ol-social-link:hover .ol-instagram-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(200, 162, 76, 0.4));
}

.ol-social-handle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ol-social-link:focus-visible {
    outline: 2px solid #C8A24C;
    outline-offset: 3px;
}


/* ═══════════════════════════════════════════
   BOTTOM DECORATIVE LINE
   ═══════════════════════════════════════════ */

.ol-bottom-line {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 162, 76, 0.4), transparent);
    opacity: 0;
    animation: olScaleIn 1.5s ease-out 3s forwards;
}


/* ═══════════════════════════════════════════
   INTRO ANIMATIONS (CSS-driven)
   ═══════════════════════════════════════════ */

.ol-animate[data-anim="logo"] {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: olFadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

.ol-animate[data-anim="btn"] {
    opacity: 0;
    transform: translateY(20px);
}

.ol-animate[data-anim="btn"][data-delay="0"] {
    animation: olFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
}
.ol-animate[data-anim="btn"][data-delay="1"] {
    animation: olFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.75s forwards;
}
.ol-animate[data-anim="btn"][data-delay="2"] {
    animation: olFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.0s forwards;
}

.ol-animate[data-anim="social"] {
    opacity: 0;
    transform: translateY(15px);
    animation: olFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.4s forwards;
}


/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes olFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes olFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes olGoldGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(200, 162, 76, 0.3)); }
    50%      { filter: drop-shadow(0 0 40px rgba(200, 162, 76, 0.6)) drop-shadow(0 0 80px rgba(200, 162, 76, 0.2)); }
}

@keyframes olFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes olSubtleGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(200, 162, 76, 0.2)); }
    50%      { filter: drop-shadow(0 0 16px rgba(200, 162, 76, 0.4)); }
}

@keyframes olScaleIn {
    from { opacity: 0; transform: translateX(-50%) scaleX(0); }
    to   { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes olShimmer {
    from { left: -100%; }
    to   { left: 150%; }
}

@keyframes olChichaPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
   ═══════════════════════════════════════════ */

@media (min-width: 640px) {
    .ol-main {
        padding: 2rem 1.5rem;
    }

    .ol-logo-wrapper {
        margin-bottom: 2.5rem;
    }

    .ol-logo-glow {
        width: 320px;
        height: 320px;
    }

    .ol-logo-img,
    .ol-logo-float .custom-logo-link img {
        width: 208px;
        max-height: 240px;
    }

    .ol-menu-nav {
        gap: 1rem;
        max-width: 360px;
    }

    .ol-glass-btn {
        max-width: 300px;
        padding: 1rem 1.5rem;
        gap: 1.2rem;
    }

    .ol-btn-label {
        font-size: 1rem;
    }

    .ol-social {
        margin-top: 2.5rem;
    }

    .ol-social-handle {
        font-size: 0.8rem;
    }

    .ol-bottom-line {
        width: 5rem;
        bottom: 1.5rem;
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — DESKTOP (768px+)
   ═══════════════════════════════════════════ */

@media (min-width: 768px) {
    .ol-logo-img,
    .ol-logo-float .custom-logo-link img {
        width: 224px;
        max-height: 260px;
    }

    .ol-logo-glow {
        width: 340px;
        height: 340px;
    }

    .ol-glass-btn:hover {
        transform: scale(1.03);
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (1024px+)
   ═══════════════════════════════════════════ */

@media (min-width: 1024px) {
    .ol-bg-chicha-glow--left {
        width: 400px;
        height: 400px;
    }

    .ol-bg-chicha-glow--right {
        width: 350px;
        height: 350px;
    }

    .ol-bg-chicha-glow--center {
        width: 500px;
        height: 250px;
    }
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ol-logo-float {
        animation: none;
    }

    #olSmokeCanvas {
        display: none;
    }
}


/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */

@media print {
    .ol-bg-layer,
    #olSmokeCanvas,
    .ol-vignette,
    .ol-bottom-line {
        display: none !important;
    }

    body {
        background: #FFFFFF;
        color: #000000;
    }

    .ol-btn-label {
        color: #000000;
    }
}