/* ================================
   SPLIT-SCREEN LANDING PAGE
   Groupe Pro Lux — Region Selector
================================ */

/* Reset & Base for landing */
.landing-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
}

/* ================================
   TOP BAR (logo + controls)
================================ */
.landing-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    pointer-events: none;
}

.landing-topbar > * {
    pointer-events: auto;
}

.landing-logo {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.landing-logo:hover {
    transform: scale(1.05);
}

.landing-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.landing-ctrl-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.landing-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.landing-ctrl-btn i {
    font-size: 0.9rem;
}

/* ================================
   SPLIT CONTAINER
================================ */
.landing-split {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ================================
   PANELS
================================ */
.landing-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
}

/* Hover expansion disabled to prevent dizzying effect (panels stay 50/50) */
/* Background images */
.landing-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.landing-panel:hover .landing-panel-bg {
    transform: scale(1.1);
}

/* Dark overlay */
.landing-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: background 0.5s ease;
}

.landing-panel:hover .landing-panel-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Inactive panel gets darker */
.landing-split:hover .landing-panel:not(:hover) .landing-panel-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Panel content */
.landing-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.landing-panel:hover .landing-panel-content {
    transform: translateY(-10px);
}

/* Region flag/icon */
.landing-region-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.landing-panel:hover .landing-region-icon {
    background: rgba(70, 130, 180, 0.3);
    border-color: rgba(70, 130, 180, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(70, 130, 180, 0.3);
}

/* Region name */
.landing-region-name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: letter-spacing 0.5s ease, text-shadow 0.5s ease;
}

.landing-panel:hover .landing-region-name {
    letter-spacing: 10px;
    text-shadow: 0 4px 30px rgba(70, 130, 180, 0.4);
}

/* Tagline */
.landing-region-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.75;
    max-width: 340px;
    margin: 0 auto 28px;
    line-height: 1.6;
    transition: opacity 0.4s ease;
}

.landing-panel:hover .landing-region-tagline {
    opacity: 1;
}

/* CTA */
.landing-region-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.1s;
}

.landing-panel:hover .landing-region-cta {
    opacity: 1;
    transform: translateY(0);
}

.landing-region-cta:hover {
    background: rgba(70, 130, 180, 0.3);
    border-color: rgba(70, 130, 180, 0.5);
}

.landing-region-cta i {
    transition: transform 0.3s ease;
}

.landing-region-cta:hover i {
    transform: translateX(4px);
}

/* ================================
   CENTER DIVIDER
================================ */
.landing-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    z-index: 10;
    pointer-events: none;
}

.landing-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(70, 130, 180, 0.6) 20%,
        rgba(70, 130, 180, 0.9) 50%,
        rgba(70, 130, 180, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.4),
                0 0 30px rgba(70, 130, 180, 0.2);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ================================
   BOTTOM HINT
================================ */
.landing-bottom-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    animation: hintFadeIn 1.5s ease 1s both;
}

@keyframes hintFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================================
   PAGE TRANSITION OVERLAY
================================ */
.landing-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

.landing-transition.active {
    pointer-events: all;
}

.landing-transition-fill {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

.landing-transition.active .landing-transition-fill {
    transform: scaleX(1);
}

.landing-transition.from-right .landing-transition-fill {
    transform-origin: right center;
}

/* ================================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
    .landing-panel,
    .landing-panel-bg,
    .landing-panel-overlay,
    .landing-panel-content,
    .landing-region-icon,
    .landing-region-name,
    .landing-region-cta,
    .landing-divider::before {
        transition: none !important;
        animation: none !important;
    }


    .landing-panel:hover .landing-panel-bg {
        transform: none;
    }

    .landing-region-cta {
        opacity: 1;
        transform: none;
    }
}

/* ================================
   RESPONSIVE — MOBILE
================================ */
@media (max-width: 768px) {
    .landing-split {
        flex-direction: column;
    }

    .landing-panel {
        flex: 1;
    }


    .landing-divider {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }

    .landing-divider::before {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(70, 130, 180, 0.6) 20%,
            rgba(70, 130, 180, 0.9) 50%,
            rgba(70, 130, 180, 0.6) 80%,
            transparent 100%
        );
    }

    .landing-topbar {
        padding: 15px 20px;
    }

    .landing-logo {
        height: 40px;
    }

    .landing-region-name {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .landing-panel:hover .landing-region-name {
        letter-spacing: 6px;
    }

    .landing-region-tagline {
        font-size: 0.9rem;
        max-width: 280px;
    }

    .landing-region-cta {
        opacity: 1;
        transform: translateY(0);
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .landing-panel-content {
        padding: 20px;
    }

    .landing-region-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .landing-bottom-hint {
        display: none;
    }

    .landing-ctrl-btn span {
        display: none;
    }

    .landing-ctrl-btn {
        padding: 10px 14px;
        min-width: auto;
    }
}

/* ================================
   DARK MODE OVERRIDES
   (Landing is always dark by design,
    but honor the toggle for consistency)
================================ */
[data-theme="dark"] .landing-page {
    background: #050505;
}

[data-theme="dark"] .landing-panel-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}
