/* BDM Films - Custom CSS (Bootstrap override + small utilities)
   This file replaces Tailwind usage. Add project-specific overrides here.
*/

:root {
    --bdm-primary: #6366f1;
    --bdm-primary-dark: #4f46e5;
    --bdm-secondary: #ec4899;
    --bdm-accent: #f59e0b;
    --bdm-bg: #f8fafc;
    --bdm-card-bg: #ffffff;
    --bdm-text: #0f172a;
    --bdm-text-muted: #64748b;
    --bdm-border: #e2e8f0;
    --bdm-glass: rgba(255, 255, 255, 0.7);
    --bdm-glass-border: rgba(255, 255, 255, 0.3);
    --bdm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --bdm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --bdm-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.dark {
    --bdm-bg: #0b1220;
    --bdm-card-bg: #1e293b;
    --bdm-text: #f1f5f9;
    --bdm-text-muted: #94a3b8;
    --bdm-border: #334155;
    --bdm-glass: rgba(15, 23, 42, 0.7);
    --bdm-glass-border: rgba(255, 255, 255, 0.05);
}

html,
body {
    font-family: var(--bdm-font);
    background: var(--bdm-bg);
    color: var(--bdm-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 0px;
    /* Height of the fixed navbar */
}

/* Basic layout helpers */
.container--wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem
}

/* Utility: card-like look used across site */
.card-premium {
    background: var(--bdm-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bdm-glass-border);
    border-radius: 1rem;
    box-shadow: var(--bdm-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--bdm-shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Buttons - supplement Bootstrap */
.btn-bdm {
    background: var(--bdm-primary);
    color: #fff;
    border: none
}

/* ----- mobile responsive tweaks ----- */
@media (max-width: 991.98px) {
    .container--wide {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    /* make all images/iframes/videos fluid */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    /* force bootstrap columns to stack when smaller than md */
    .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    /* reduce heading sizes for readability */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    /* shrink footer paddings */
    footer, .footer { padding: 2rem 1rem; }
    /* tables scroll horizontally */
    table { width: 100%; display: block; overflow-x: auto; }
    table th, table td { white-space: nowrap; }
    /* fix any overflow caused by large cards */
    .card { overflow: hidden; }
}

@media (max-width: 767.98px) {
    /* collapse desktop nav entirely */
    .desktop-nav { display: none !important; }
    /* ensure mobile menu covers full width */
    .mobile-menu-dropdown .mobile-menu-content { padding: 1.5rem 1rem; }
    /* reduce spacing on utility classes */
    .mt-4, .mb-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
    /* give tappable elements more room */
    .btn, .nav-link, .form-control { font-size: 1rem; }
    /* compress header/logo height */
    .navbar .navbar-brand-modern img { height: 32px !important; }
}

.btn-bdm:hover {
    background: #4f46e5;
    color: #fff;
}

/* Glass buttons used across designs */
.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #fff
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Spacing Utilities (Tailwind-like) */
.mt-1 {
    margin-top: .25rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-3 {
    margin-top: 1rem
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mt-6 {
    margin-top: 3.5rem;
}

.mt-8 {
    margin-top: 4rem;
}

.mt-10 {
    margin-top: 5rem;
}

.mt-12 {
    margin-top: 6rem;
}

.mt-16 {
    margin-top: 8rem;
}

.mt-20 {
    margin-top: 10rem;
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-3 {
    margin-bottom: 1rem
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 3.5rem;
}

.mb-8 {
    margin-bottom: 4rem;
}

.mb-10 {
    margin-bottom: 5rem;
}

.mb-12 {
    margin-bottom: 6rem;
}

.mb-16 {
    margin-bottom: 8rem;
}

.mb-20 {
    margin-bottom: 10rem;
}

.p-1 {
    padding: .5rem
}

.p-2 {
    padding: 1rem
}

.p-3 {
    padding: 1.5rem
}

.p-4 {
    padding: 2rem
}

.p-5 {
    padding: 3rem
}

.px-1 {
    padding-left: .25rem;
    padding-right: .25rem
}

.px-2 {
    padding-left: .5rem;
    padding-right: .5rem
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-1 {
    padding-top: .25rem;
    padding-bottom: .25rem
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem
}

.py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-10 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-12 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-16 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.py-20 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-6 {
    gap: 2rem;
}

.gap-8 {
    gap: 3rem;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Width/Height Utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen,
.min-vh-100 {
    min-height: calc(100vh - 56px) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-80 {
    min-height: 80vh;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

/* Transparent Nav Fix for Hero Headers */
.mesh-gradient-header,
.careers-hero {
    margin-top: -56px;
}

/* Responsive helpers */
@media (max-width:576px) {
    body {
        padding-top: 0px;
    }

    .mesh-gradient-header,
    .careers-hero {
        margin-top: -60px;
    }

    .container--wide {
        padding: 0 .5rem
    }
}

/* Gradients used across the app (simple helpers to replace Tailwind gradients) */
.bg-gradient-premium {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.bg-gradient-mesh {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

/* Tailwind-like gradient utilities (variables + directions) */
:root {
    --primary-500: #0d6efd;
    --primary-600: #0b5ed7;
    --primary-800: #0a58ca;
    --secondary-500: #6f42c1;
    --secondary-600: #6610f2;
    --secondary-900: #5b0f9f;
    --dark-900: #0b1220;
}

.from-primary-600 {
    --gradient-from: var(--primary-600)
}

.from-primary-500 {
    --gradient-from: var(--primary-500)
}

.from-primary-800 {
    --gradient-from: var(--primary-800)
}

.from-secondary-500 {
    --gradient-from: var(--secondary-500)
}

.from-secondary-600 {
    --gradient-from: var(--secondary-600)
}

.from-dark-900 {
    --gradient-from: var(--dark-900)
}

.via-primary-500 {
    --gradient-via: var(--primary-500)
}

.via-secondary-500 {
    --gradient-via: var(--secondary-500)
}

.to-secondary-600 {
    --gradient-to: var(--secondary-600)
}

.to-secondary-500 {
    --gradient-to: var(--secondary-500)
}

.to-primary-600 {
    --gradient-to: var(--primary-600)
}

.to-primary-800 {
    --gradient-to: var(--primary-800)
}

.to-secondary-900 {
    --gradient-to: var(--secondary-900)
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, var(--gradient-from, transparent), var(--gradient-via, transparent) 50%, var(--gradient-to, transparent))
}

.bg-gradient-to-r {
    background: linear-gradient(90deg, var(--gradient-from, transparent), var(--gradient-via, transparent) 50%, var(--gradient-to, transparent))
}

/* helper for overlay with `opacity-80` etc used in templates */
.opacity-80 {
    opacity: .8
}

/* Hover helpers for cards to show play button (used in music lists) */
.card.group .btn-play {
    opacity: 0;
    transition: opacity .2s ease-in-out, transform .15s
}

.card.group:hover .btn-play {
    opacity: 1
}

/* Small hover-scale for subtle card hover */
.hover-scale {
    transition: transform .18s ease-in-out
}

.hover-scale:hover {
    transform: scale(1.01)
}

/* Image utilities */
.object-fit-cover,
.object-cover {
    object-fit: cover;
    object-position: center;
    display: block;
}

.film-poster {
    /* ensure image doesn't overflow container and keeps aspect */
    width: 100%;
    height: 100%;
    display: block;
}

/* Film grid media container */
.film-hero {
    height: 200px;
    min-height: 140px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .film-hero {
        height: 160px
    }
}

/* Music list row */
.music-row {
    min-height: 76px;
}

.music-row .object-fit-cover {
    width: 60px;
    height: 60px;
}

/* Store / Artist card fixes */
.card.d-flex.flex-column {
    display: flex;
    flex-direction: column;
}

.card.d-flex.flex-column .mt-auto {
    margin-top: auto;
}

/* ========== NEW HOMEPAGE DESIGN STYLES ========== */

/* Hero Section */
/* Hero section styles moved to welcome.php for critical path optimization */

/* Film Cards */
.film-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.film-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.film-poster {
    transition: transform 0.5s ease;
}

.film-card:hover .film-poster {
    transform: scale(1.1);
}

.film-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-card:hover .film-overlay {
    opacity: 1;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.upload-zone.drag-over {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

/* Music Cards */
.music-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.music-bar {
    animation: musicPulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes musicPulse {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.music-card:hover .music-bar {
    animation-play-state: running;
}

/* Artist Cards */
.artist-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
}

.cta-background {
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.4) 0%, transparent 50%);
    animation: ctaPulse 10s ease infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-cards-stack {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }
}

/* Heading utilities */
.heading-1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    font-weight: 700
}

.heading-2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600
}

/* Text shadows */
.text-shadow-lg {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55)
}

/* utility for text-muted white variant */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75)
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* Basic footer style */
.site-footer {
    background: #0f1724;
    color: #fff;
    padding: 2rem 0
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85)
}

/* ===== Global mobile improvements ===== */
@media (max-width: 991.98px) {
    /* pad containers on smaller screens */
    .container--wide { padding-left: 0.75rem; padding-right: 0.75rem; }
    /* make media elements fluid */
    img, video, iframe { max-width: 100%; height: auto; }
    /* ensure Bootstrap columns collapse */
    .row > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
    /* adjust heading sizes for readability */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    /* responsive tables */
    table { width: 100%; display: block; overflow-x: auto; }
    table th, table td { white-space: nowrap; }
    /* avoid accidental overflow from cards */
    .card { overflow: hidden; }
}

@media (max-width: 767.98px) {
    /* force desktop navigation hidden */
    .desktop-nav { display: none !important; }
    /* comfortable tap targets */
    .btn, .nav-link, .form-control { font-size: 1rem; }
    /* compress navbar logo/icon */
    .navbar .navbar-brand-modern img { height: 32px !important; }
    /* lighten spacing utilities on smallest screens */
    .mt-4, .mb-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
    /* shrink footer padding */
    .site-footer { padding: 1.5rem 1rem; }
}


/* Migration placeholder for components using Tailwind utility classes */
.flex {
    display: flex
}

.items-center {
    align-items: center
}

.justify-between {
    justify-content: space-between
}

.flex-col {
    flex-direction: column
}

/* ---- Dark-mode helpers ----
  Templates used many `dark:*` Tailwind classes. To preserve visual parity while
  we fully migrate away from Tailwind, these helper classes activate when the
  page root has a `dark` class (e.g. <body class="dark">). They are intentionally
  named `dark-mode-*` so they don't conflict with the existing class names.
*/
.dark .dark-mode-bg-dark-800 {
    background: var(--dark-900)
}

.dark .dark-mode-bg-dark-900 {
    background: var(--dark-900)
}

.dark .dark-mode-bg-secondary-900-20 {
    background: rgba(91, 15, 159, 0.20)
}

.dark .dark-mode-bg-green-900-20 {
    background: rgba(4, 120, 87, 0.12)
}

.dark .dark-mode-bg-yellow-900-20 {
    background: rgba(255, 193, 7, 0.12)
}

.dark .dark-mode-bg-purple-900-20 {
    background: rgba(111, 66, 193, 0.12)
}

.dark .dark-mode-bg-pink-900-20 {
    background: rgba(225, 29, 72, 0.12)
}

.dark .dark-mode-text-muted {
    color: rgba(255, 255, 255, 0.75) !important
}

.dark .dark-mode-text-green-200 {
    color: rgba(167, 243, 208, 0.9) !important
}

.dark .dark-mode-text-primary-400 {
    color: rgba(173, 216, 230, 0.9) !important
}

.dark .dark-mode-border-gray-700 {
    border-color: rgba(255, 255, 255, 0.08) !important
}



/* Additional dark-mode fallbacks for tokens seen across templates */
.dark .dark-mode-bg-blue-900 {
    background: rgba(13, 110, 253, 0.08)
}

.dark .dark-mode-bg-purple-900 {
    background: rgba(111, 66, 193, 0.08)
}

.dark .dark-mode-bg-red-900 {
    background: rgba(220, 38, 38, 0.08)
}

.dark .dark-mode-bg-green-900 {
    background: rgba(4, 120, 87, 0.08)
}

.dark .dark-mode-bg-yellow-900 {
    background: rgba(255, 193, 7, 0.08)
}

.dark .dark-mode-bg-indigo-900 {
    background: rgba(75, 85, 255, 0.08)
}

.dark .dark-mode-text-blue-400 {
    color: rgba(173, 216, 230, 0.92) !important
}

.dark .dark-mode-text-purple-400 {
    color: rgba(207, 179, 255, 0.92) !important
}

.dark .dark-mode-text-red-400 {
    color: rgba(253, 150, 150, 0.92) !important
}

.dark .dark-mode-text-yellow-400 {
    color: rgba(255, 235, 179, 0.92) !important
}

.dark .dark-mode-text-indigo-400 {
    color: rgba(180, 200, 255, 0.92) !important
}

.dark .dark-mode-text-gray-500 {
    color: rgba(209, 213, 219, 0.85) !important
}

.dark .dark-mode-text-secondary-400 {
    color: rgba(206, 181, 255, 0.9) !important
}

.dark .dark-mode-divide-gray-700>*+* {
    border-top-color: rgba(255, 255, 255, 0.08) !important
}


/* Position helpers (tailwind-like fallbacks used by templates) */
.absolute {
    position: absolute
}

.relative {
    position: relative
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

/* Visibility helpers */
.hidden {
    display: none !important
}

.d-inline {
    display: inline !important
}

.inline-block {
    display: inline-block
}

.d-inline-flex {
    display: inline-flex
}

/* Space utilities similar to Tailwind's space-y-* (child sibling spacing) */
.space-y-1>*+* {
    margin-top: .25rem
}

.space-y-2>*+* {
    margin-top: .5rem
}

.space-y-3>*+* {
    margin-top: .75rem
}

.space-y-4>*+* {
    margin-top: 1rem
}

.space-y-6>*+* {
    margin-top: 1.5rem
}

.space-y-8>*+* {
    margin-top: 2rem
}

/* Image helpers */
.img-fluid {
    max-width: 100%;
    height: auto
}

/* Minor tweaks to nav (works with Bootstrap navbar) */
.navbar-brand bdm-logo {
    font-weight: 700
}

/* ========== MOBILE NAVBAR STYLES ========== */

/* Gradient text for logo */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gap utility for flexbox (used in navbar) */
.gap-3 {
    gap: 1rem;
}

/* Custom Animated Hamburger Menu Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1050;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #212529;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    position: relative;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 5px;
}

/* Hamburger Animation: Transform to X when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    overflow-y: auto;
    max-height: 85vh;
}

.dark .mobile-menu-dropdown {
    background: rgba(15, 23, 42, 0.98);
    border-top-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Content Container */
.mobile-menu-content {
    padding: 24px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.dark .mobile-menu-content {
    background: transparent;
}

/* Dark mode mobile menu */
.dark .mobile-menu-content {
    background: rgba(15, 23, 42, 0.95);
}

/* Mobile Menu Header (Logo) */
.mobile-menu-header {
    margin-bottom: 48px;
    animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation List */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
}

.mobile-nav-item {
    opacity: 0;
    animation: slideInLeft 0.4s ease forwards;
    margin-bottom: 8px;
}

.mobile-nav-item a {
    display: block;
    padding: 16px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #99c0e7;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-600));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-item a:hover,
.mobile-nav-item a:active {
    background: rgba(13, 110, 253, 0.08);
    padding-left: 28px;
}

.mobile-nav-item a:hover::before,
.mobile-nav-item a:active::before {
    transform: scaleY(1);
}

.dark .mobile-nav-item a {
    color: #f8f9fa;
}

.dark .mobile-nav-item a:hover,
.dark .mobile-nav-item a:active {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Auth Section */
.mobile-auth-section {
    padding: 24px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.dark .mobile-auth-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile User Profile */
.mobile-user-profile {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.dark .mobile-user-profile {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile User Links */
.mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #212529;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-user-link:hover,
.mobile-user-link:active {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-500);
    transform: translateX(4px);
}

.mobile-user-link.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.dark .mobile-user-link {
    color: #f8f9fa;
}

.dark .mobile-user-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    margin-top: 24px;
}

/* Alpine.js transition classes for mobile menu */
/* Alpine.js transition classes for mobile menu */
.mobile-menu-enter {
    transition: all 0.3s ease-out;
}

.mobile-menu-enter-start {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-leave {
    transition: all 0.2s ease-in;
}

.mobile-menu-leave-start {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-leave-end {
    opacity: 0;
    transform: translateY(-10px);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-active {
    overflow: hidden;
}

/* Desktop Navigation - hide on mobile */
@media (max-width: 767.98px) {
    .desktop-nav {
        display: none !important;
    }
}

/* Tablet and up - hide mobile menu toggle */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Enhanced touch targets for mobile */
@media (max-width: 767.98px) {
    .navbar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .mobile-nav-item a {
        min-height: 56px;
        display: flex;
        align-items: center;
    }

    /* Mobile Horizontal Scroll Container */
    .row.mobile-scroll-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-right: -0.75rem;
        /* Cancel out container padding */
        margin-left: -0.75rem;
        padding-right: 0.75rem;
        /* Add breathing room */
        padding-left: 0.75rem;
        /* Hide scrollbar for cleaner look but keep functionality */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .row.mobile-scroll-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .row.mobile-scroll-container>* {
        flex: 0 0 85% !important;
        /* Show 85% of the card to encourage scrolling */
        width: 85% !important;
        max-width: 300px !important;
        /* Prevent too wide cards */
        scroll-snap-align: center;
        margin-top: 0 !important;
        /* Override bootstrap gutter margin-top */
    }
}

/* Improve mobile button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ========== PREMIUM DESIGN TOKENS ========== */

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-navbar {
    background: rgba(248, 250, 252, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.dark .glass-navbar {
    background: rgba(11, 18, 32, 0.85) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Navbar Links Premium Hover Effect */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background: linear-gradient(90deg, var(--bdm-primary), var(--bdm-secondary));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--bdm-primary) !important;
}

.dark .navbar-nav .nav-link:hover {
    color: #a5b4fc !important;
    /* A nice light indigo for dark mode */
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--bdm-primary), var(--bdm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-subtle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Premium Animations */
.hover-float {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-float:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Layout Utilities */
.section-spacing-lg {
    padding: 100px 0;
}

.mesh-gradient-header {
    background: linear-gradient(135deg, #4338ca 0%, #7e22ce 50%, #db2777 100%);
    position: relative;
    overflow: hidden;
}

.mesh-gradient-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: meshRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes meshRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fixes for cards in dark mode */
.dark .card {
    background-color: #1e293b;
    color: #f8fafc;
}

.dark .card-body {
    color: #f8fafc;
}

.dark .text-muted {
    color: #94a3b8 !important;
}

/* Utility Classes */
.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Inset Utility */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Role Switcher Premium Styles */
.role-switcher .btn-role {
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.role-switcher .btn-role.active {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

/* Notification Dropdown Refinement */
.notification-dropdown {
    width: 380px !important;
}

.notification-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1rem !important;
    transition: background 0.2s ease !important;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.03) !important;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}