/* Landing Page - FLiPT Brand Compliant */

.landing-wrapper {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto; /* Full width, auto height */
    background-color: #0a1628; /* Dark fallback matching the cosmic theme */
}

/* FLiPT brand - Cosmic Dino background */
.landing-wrapper-flipt {
    background-image: url('/images/og/flipt/flipt-logo-dino.png');
    background-color: #0d1a2d; /* Match the image's dark blue tones */
}

/* FLiPT mobile - portrait version */
@media (max-width: 768px) {
    .landing-wrapper-flipt {
        background-image: url('/images/flipt/flipt-landing-mobile.png');
        background-size: cover;
        background-position: center top;
    }
}

/* ElevateUT brand - Epic cosmic dino background */
.landing-wrapper-elevateut {
    background-image: url('/images/og/elevateut/elevateut-default.png');
    background-color: #1a0a0a; /* Match fiery red/orange tones */
}

/* ElevateUT mobile - portrait version */
@media (max-width: 768px) {
    .landing-wrapper-elevateut {
        background-image: url('/images/elevateut/elevateut-landing-mobile.png');
        background-size: cover;
        background-position: center top;
    }
}

/* Subtle overlay - only at top for topbar legibility */
.landing-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.1) 15%,
            transparent 30%
    );
    pointer-events: none;
    z-index: 0;
}

/* Top navigation */
.landing-topbar {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-director-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-director-dropdown .dropdown-menu,
.landing-nav-dropdown .dropdown-menu {
    min-width: 16rem;
    padding: 0.5rem;
    background: rgba(6, 12, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.landing-director-dropdown .dropdown-item,
.landing-nav-dropdown .dropdown-item {
    border-radius: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-director-dropdown .dropdown-item:hover,
.landing-director-dropdown .dropdown-item:focus,
.landing-nav-dropdown .dropdown-item:hover,
.landing-nav-dropdown .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.landing-director-dropdown .dropdown-header,
.landing-nav-dropdown .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.landing-director-dropdown .dropdown-divider,
.landing-nav-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .landing-director-dropdown .dropdown-menu,
[data-bs-theme="dark"] .landing-nav-dropdown .dropdown-menu {
    background: rgba(8, 14, 24, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .landing-topbar {
        top: 1rem;
        right: 1rem;
    }

    .landing-topbar .btn {
        padding: 0.7rem 1rem;
    }

    .landing-director-dropdown .dropdown-menu {
        min-width: 14rem;
    }
}

/* ============================================
   NOW PLAYING OVERLAY
   Positioned below topbar, above hero
   ============================================ */

.landing-now-playing-overlay {
    position: relative;
    z-index: 5;
    padding-top: 5rem; /* Space for topbar */
}

/* Section header styling for landing page context */
.landing-now-playing-overlay .section-header h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.landing-now-playing-overlay .section-header p,
.landing-now-playing-overlay .section-header .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Ensure now-playing section has proper background for readability */
.landing-now-playing-overlay .now-playing-section {
    background: transparent;
    padding-top: 0;
}

@media (max-width: 768px) {
    .landing-now-playing-overlay {
        padding-top: 4rem; /* Less space on mobile for smaller topbar */
    }
}

/* When NowPlaying has content, change layout from bottom-aligned to top-aligned */
.landing-wrapper--now-playing {
    justify-content: flex-start; /* Override flex-end to position content at top */
}

.landing-wrapper--now-playing .landing-hero {
    flex: 1;
    align-items: flex-start; /* Align NowPlaying content at top */
}

.landing-now-playing-focus {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--theme-bg-primary);
}

.landing-now-playing-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.landing-topbar .btn {
    background: var(--theme-text-primary);
    color: var(--theme-bg-primary);
    border: 1px solid var(--theme-text-primary);
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: var(--theme-shadow-sm);
    transition: all 0.2s ease;
}

.landing-topbar .btn:hover {
    background: var(--theme-text-secondary);
    border-color: var(--theme-text-secondary);
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow);
}

[data-bs-theme="dark"] .landing-topbar .btn {
    background: var(--theme-surface-2);
    color: var(--theme-text-primary);
    border-color: var(--theme-border-color);
}

[data-bs-theme="dark"] .landing-topbar .btn:hover {
    background: var(--theme-surface-3);
}

/* Hero section - shows the background image */
.landing-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.landing-hero .overlay {
    position: absolute;
    inset: 0;
    display: block;
    background: none;
    pointer-events: none;
}

[data-bs-theme="dark"] .landing-hero .overlay {
    background: none;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}


/* CTA Container - positioned below the image */
.landing-sticky-cta {
    position: relative;
    z-index: 10;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
}

/* CTA Buttons - Side by Side */
.cta-group {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Recap CTA (open registrations) */
.registration-recap-btn {
    background: var(--recap-bg, #000) !important;
    color: var(--recap-fg, #fff) !important;
    border-color: var(--recap-border, #000) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.registration-recap-btn:hover,
.registration-recap-btn:focus-visible {
    background: var(--recap-fg, #fff) !important;
    color: var(--recap-bg, #000) !important;
    border-color: var(--recap-fg, #fff) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.registration-recap-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 50%, rgba(255, 255, 255, 0.15));
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.registration-recap-btn:hover::after,
.registration-recap-btn:focus-visible::after {
    transform: translateX(0);
}

/* Sticky CTA buttons at bottom use the shared button system. */
.landing-sticky-cta__button {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    overflow: hidden;
}

.landing-sticky-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.landing-sticky-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.landing-sticky-cta__button:active {
    transform: scale(0.99);
}

.landing-sticky-cta__title {
    font-family: 'Karla', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-sticky-cta__subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.1;
    opacity: 0.85;
}

.landing-sticky-cta__arrow {
    font-size: 1.25rem;
    opacity: 0.85;
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}

.landing-sticky-cta__button:hover .landing-sticky-cta__arrow {
    transform: translateX(4px);
}

.landing-sticky-cta__button--players {
    background: linear-gradient(135deg,
        var(--flipt-primary, var(--theme-primary, #00a69c)) 0%,
        var(--flipt-primary-hover, var(--theme-primary-hover, #008f88)) 100%);
    color: var(--theme-contrast, #ffffff);
}

.landing-sticky-cta__button--players .landing-sticky-cta__arrow {
    color: rgba(255, 255, 255, 0.9);
}

.landing-sticky-cta__button--organizers {
    background: linear-gradient(135deg,
        var(--flipt-secondary, var(--theme-secondary, #0068ba)) 0%,
        var(--flipt-secondary-hover, #005298) 100%);
    color: var(--theme-contrast, #ffffff);
}

.landing-sticky-cta__button--organizers .landing-sticky-cta__arrow {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .landing-sticky-cta__button {
        max-width: 100%;
    }
}

/* Stats - Simple text grid */
.landing-stats {
    position: relative;
    z-index: 1;
    padding: 0 1rem 2rem;
}

.landing-stats .container {
    max-width: 500px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: none !important;
}

.landing-stats .stat-item {
    text-align: center;
    padding: 0.5rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.stat-value {
    font-family: 'Karla', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    margin-top: 0.25rem;
}

/* Ensure stat values stay high-contrast on image backgrounds */
.landing-wrapper .platform-stats-bar .stat-value,
.landing-stats .stat-value {
    color: #fff !important;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

/* Quick register module */
.landing-quick-register {
    position: relative;
    z-index: 1;
    padding: 0 1rem 1.5rem;
}

.landing-quick-register .quick-register-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--theme-surface-1);
    border-radius: 999px;
    border: 1px solid var(--theme-border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--theme-shadow-sm);
}

.quick-register-label {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quick-register-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-register-btn {
    border-radius: 999px;
    padding-inline: 1.1rem;
}

[data-bs-theme="dark"] .landing-quick-register .quick-register-card {
    background: var(--theme-surface-2);
}

/* Footer */
.landing-bottom-left {
    position: relative;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--theme-surface-1);
    border-top: 1px solid var(--theme-border-color);
}

[data-bs-theme="dark"] .landing-bottom-left {
    background: var(--theme-surface-2);
}

.bottom-brand {
    height: 50px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--theme-text-secondary);
}

.social-icon-btn:hover {
    background: var(--theme-surface-2);
    color: var(--flipt-primary);
}

[data-bs-theme="dark"] .social-icon-btn:hover {
    background: var(--theme-surface-3);
}

.social-icon-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.social-icon-btn:hover img {
    opacity: 1;
}

/* Topbar buttons - frosted glass on busy hero imagery */
.landing-topbar__button {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.landing-topbar__button:hover,
.landing-topbar__button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .landing-topbar__button {
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(226, 232, 240, 0.2);
    color: rgba(226, 232, 240, 0.95);
}

[data-bs-theme="dark"] .landing-topbar__button:hover,
[data-bs-theme="dark"] .landing-topbar__button:focus-visible {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(226, 232, 240, 0.32);
    color: rgba(226, 232, 240, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-topbar {
        top: 0.75rem;
        right: 0.75rem;
    }

    .landing-topbar .btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
        min-width: 80px;
    }

    /* Mobile topbar buttons - ensure icons are visible */
    .landing-topbar__button {
        padding: 0.625rem;
        min-width: 44px;
        min-height: 44px;
    }

    .landing-topbar__button .btn-text {
        /* Hide text on mobile, show icon only */
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .landing-topbar__button i {
        font-size: 1.125rem;
        margin: 0;
    }

    .cta-group {
        max-width: 500px;
        gap: 1rem;
    }

    .landing-sticky-cta__button {
        width: 100%;
    }

    .landing-stats {
        padding: 0 1rem 1.5rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .landing-bottom-left {
        padding: 1.5rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .bottom-brand {
        height: 50px;
    }

    .landing-quick-register {
        padding-inline: 0.5rem;
    }

    .landing-quick-register .quick-register-card {
        border-radius: 16px;
        padding-inline: 1rem;
        align-items: stretch;
        flex-direction: column;
    }

    .quick-register-label {
        text-align: center;
    }

    .quick-register-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cta-group {
        flex-direction: column;
        max-width: 300px;
        gap: 0.75rem;
    }

    .landing-sticky-cta__button {
        max-width: 100%;
    }
}

/* ============================================
   CINEMATIC ENTRANCE ANIMATIONS
   "Every page should feel like a movie poster"
   ============================================ */

@keyframes landing-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-fade-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-scale-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Topbar entrance - drops in from top */
.landing-topbar {
    animation: landing-fade-down 0.6s ease-out both;
    animation-delay: 0.2s;
}

/* Stagger individual topbar buttons */
.landing-topbar-actions > * {
    opacity: 0;
    animation: landing-fade-down 0.5s ease-out forwards;
}

.landing-topbar-actions > *:nth-child(1) { animation-delay: 0.3s; }
.landing-topbar-actions > *:nth-child(2) { animation-delay: 0.4s; }
.landing-topbar-actions > *:nth-child(3) { animation-delay: 0.5s; }

/* CTA container rises from bottom */
.landing-sticky-cta {
    animation: landing-fade-up 0.7s ease-out both;
    animation-delay: 0.4s;
}

/* CTA buttons stagger in */
.landing-sticky-cta__button {
    opacity: 0;
    animation: landing-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cta-group > *:nth-child(1) { animation-delay: 0.55s; }
.cta-group > *:nth-child(2) { animation-delay: 0.7s; }

/* Quick register card scales in */
.landing-quick-register .quick-register-card {
    animation: landing-scale-in 0.5s ease-out both;
    animation-delay: 0.85s;
}

/* ============================================
   CTA SHIMMER EFFECT
   "Make them feel clickable" - Brand Guide
   ============================================ */

.landing-sticky-cta__button {
    position: relative;
}

/* Shimmer pseudo-element */
.landing-sticky-cta__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
}

.landing-sticky-cta__button:hover::before {
    animation: cta-shimmer 0.65s ease-out forwards;
}

@keyframes cta-shimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Enhanced hover with brand-colored glow */
.landing-sticky-cta__button--players:hover {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(0, 166, 156, 0.25);
}

.landing-sticky-cta__button--organizers:hover {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(0, 104, 186, 0.25);
}

/* ============================================
   ENHANCED ATMOSPHERIC GRADIENT
   Cosmic undertones that integrate with hero
   ============================================ */

.landing-sticky-cta {
    background: linear-gradient(
        to top,
        rgba(10, 15, 30, 0.95) 0%,
        rgba(15, 25, 50, 0.8) 35%,
        rgba(20, 35, 65, 0.4) 65%,
        transparent 100%
    );
}

/* ============================================
   QUICK REGISTER GLASSMORPHISM
   High-value conversion path deserves drama
   ============================================ */

.landing-quick-register .quick-register-card {
    background: linear-gradient(
        135deg,
        rgba(0, 166, 156, 0.12) 0%,
        rgba(0, 104, 186, 0.08) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 166, 156, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-quick-register .quick-register-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.landing-quick-register .quick-register-btn {
    background: linear-gradient(
        135deg,
        var(--flipt-primary, #00a69c) 0%,
        var(--flipt-primary-hover, #00857a) 100%
    );
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.25);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-quick-register .quick-register-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 166, 156, 0.35);
    color: white;
}

/* Subtle pulsing border glow */
.landing-quick-register .quick-register-card {
    animation: register-glow 4s ease-in-out infinite;
}

@keyframes register-glow {
    0%, 100% {
        border-color: rgba(0, 166, 156, 0.25);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        border-color: rgba(0, 166, 156, 0.4);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.25),
            0 0 24px rgba(0, 166, 156, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

/* ============================================
   TOPBAR BUTTON POLISH
   Elevated glassmorphism with glow
   ============================================ */

.landing-topbar__button {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-topbar__button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.08);
}

/* Dropdown menu entrance animation */
.landing-director-dropdown .dropdown-menu.show,
.landing-nav-dropdown .dropdown-menu.show {
    animation: dropdown-reveal 0.25s ease-out;
}

@keyframes dropdown-reveal {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .landing-topbar,
    .landing-topbar-actions > *,
    .landing-sticky-cta,
    .landing-sticky-cta__button,
    .landing-quick-register .quick-register-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .landing-sticky-cta__button::before {
        display: none;
    }

    .landing-director-dropdown .dropdown-menu.show,
    .landing-nav-dropdown .dropdown-menu.show {
        animation: none;
    }
}

/* ============================================
   PROFILE & WALLET BUTTONS
   For authenticated users on landing page
   ============================================ */

/* Wallet button - matches topbar style with green accent */
.landing-wallet-button {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.landing-wallet-button:hover,
.landing-wallet-button:focus-visible {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .landing-wallet-button {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

[data-bs-theme="dark"] .landing-wallet-button:hover,
[data-bs-theme="dark"] .landing-wallet-button:focus-visible {
    background: rgba(52, 211, 153, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}

/* Profile button - circular with profile image */
.landing-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.landing-profile-button:hover,
.landing-profile-button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px) scale(1.05);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.landing-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

[data-bs-theme="dark"] .landing-profile-button {
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(226, 232, 240, 0.2);
}

[data-bs-theme="dark"] .landing-profile-button:hover,
[data-bs-theme="dark"] .landing-profile-button:focus-visible {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(226, 232, 240, 0.4);
}

/* Animation delay for profile button */
.landing-topbar-actions > *:nth-child(4) { animation-delay: 0.6s; }
.landing-topbar-actions > *:nth-child(5) { animation-delay: 0.7s; }
.landing-topbar-actions > *:nth-child(6) { animation-delay: 0.8s; }

/* ============================================
   Modal z-index fix for landing page
   Bootstrap modals need proper z-index to appear
   above landing page stacking contexts.

   The modal is rendered inside .landing-now-playing-overlay
   which creates a stacking context. The JS in landing.js
   moves modals to body when they open to escape this.
   ============================================ */

/* Force modals to use fixed positioning relative to viewport */
.landing-wrapper .modal,
.landing-now-playing-overlay .modal,
.landing-now-playing-focus .modal {
    position: fixed !important;
    z-index: 1055 !important;
}

.landing-wrapper .modal-backdrop,
.landing-now-playing-overlay .modal-backdrop,
.landing-now-playing-focus .modal-backdrop {
    position: fixed !important;
    z-index: 1050 !important;
}

/* Ensure modal dialog is clickable and properly layered */
.landing-wrapper .modal-dialog,
.landing-now-playing-overlay .modal-dialog,
.landing-now-playing-focus .modal-dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Ensure modal content receives pointer events */
.landing-wrapper .modal-content,
.landing-now-playing-overlay .modal-content,
.landing-now-playing-focus .modal-content {
    pointer-events: auto;
}
