/* ===== LUCID LENS DESIGN SYSTEM ===== */

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 3D Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(2deg); }
}
.animate-float {
    animation: float 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Subtle Glow Animation */
@keyframes subtle-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
}
.glow-button {
    animation: subtle-glow 4s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Perspective */
.perspective-lg {
    perspective: 2000px;
}

/* Floating Layer Transition */
.floating-layer {
    transition: transform 0.2s ease-out;
}

/* Reticle Corners */
.reticle-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #b68e42;
}

/* Phone Scanner Animation */
@keyframes scan-move {
    0%, 100% { transform: translate(-10%, -10%); }
    50% { transform: translate(10%, 10%); }
}
.animate-scan {
    animation: scan-move 6s ease-in-out infinite;
}

/* Scanline animation */
@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Material Symbols adjustments */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ===== NAV OVERRIDES ===== */
/* Override the existing header styles for new nav */
#header-container.lucid-nav {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    height: auto !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#header-container.lucid-nav #header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    height: auto !important;
    padding: 0 !important;
}

/* public landing page: transparent initial state */
body:not(.dashboard-page) #header-container.lucid-nav {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* public landing page: scrolled state */
body:not(.dashboard-page) #header-container.lucid-nav.header-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
}

/* dashboard pages: solid state always */
body.dashboard-page #header-container.lucid-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
}

/* Light Beige Theme Token */
.bg-beige-light {
    background-color: #F9F6F0 !important;
}
.border-beige-light {
    border-color: #F9F6F0 !important;
}

/* ===== DASHBOARD SIDEBAR LUCID ===== */
.lucid-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px; /* Header height */
    align-self: flex-start;
    overflow-y: auto;
    z-index: 99;
}

/* Correct dashboard container height to match our 72px nav */
.dashboard-container {
    height: calc(100vh - 72px);
}

/* On mobile/tablet: reset sidebar to auto height so it doesn't push content down */
@media (max-width: 992px) {
    /* Re-enable page scroll — simplebar is disabled on mobile so body overflow:hidden
       would block all scrolling with no fallback. */
    body.dashboard-page {
        overflow-y: auto !important;
        touch-action: pan-y !important;
    }
    #wrapper.dashboard-wrapper {
        flex-direction: column;
    }
    #wrapper.dashboard-wrapper .dashboard-content-container {
        height: auto !important;
        overflow: visible !important;
        touch-action: pan-y;
    }
    /* Prevent any child from blocking vertical touch scroll */
    .dashboard-content-inner,
    .dashboard-container,
    .lucid-card,
    .lucid-stat-card {
        touch-action: pan-y;
    }
    /* Fix absolute-positioned footer — on mobile it falls outside the
       normal flow creating a large white gap below the last content. */
    .dashboard-content-inner .small-footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        padding: 16px !important;
        text-align: center;
    }
    /* Completely remove the spacer — it only exists for the absolute-positioned
       desktop footer. On mobile the footer is in normal flow so the spacer
       creates blank space. Give the inner container bottom padding instead. */
    .dashboard-footer-spacer {
        display: none !important;
    }
    .dashboard-content-inner {
        padding-bottom: 20px !important;
    }
    .lucid-sidebar {
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        top: auto !important;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        overflow: visible !important;
    }
    .dashboard-container {
        height: auto !important;
    }
    /* SimpleBar is prevented from initializing on mobile (data-simplebar
       attributes are stripped before the library loads), so no simplebar
       DOM resets are needed here. The container collapses naturally. */
}

.lucid-sidebar .dashboard-nav-inner ul {
    padding: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.lucid-sidebar .dashboard-nav-inner > ul::before {
    content: attr(data-submenu-title);
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.lucid-sidebar .dashboard-nav-inner ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lucid-sidebar .dashboard-nav-inner ul li a:hover,
.lucid-sidebar .dashboard-nav-inner ul li.active a {
    background: rgba(182, 142, 66, 0.1);
    color: #b68e42;
}

/* ===== BODY / GLOBAL ===== */
body {
    background-color: #FFFFFF;
    color: #2D2D2D;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Push body below fixed nav */
#wrapper {
    padding-top: 72px;
}

/* Dashboard wrapper — keep flex layout */
#wrapper.dashboard-wrapper {
    display: flex;
}

/* Prevent the native browser scrollbar on dashboard pages.
   body.dashboard-page stops the PAGE from scrolling; only
   the inner simplebar on .dashboard-content-container scrolls. */
@media (min-width: 993px) {
    html:has(body.dashboard-page), 
    body.dashboard-page {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

/* Give the content container an explicit height so simplebar knows
   how tall its scrollable area is. */
#wrapper.dashboard-wrapper .dashboard-content-container {
    height: calc(100vh - 72px);
}

/* Lucid card style */
.lucid-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1rem;
    padding: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: #2D2D2D;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.lucid-card:hover {
    box-shadow: 0 15px 35px rgba(182, 142, 66, 0.06);
    transform: translateY(-2px);
}

/* Lucid stat card */
.lucid-stat-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2D2D2D;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}
.lucid-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Pricing plan lucid style */
.pricing-plan {
    background: #FFFFFF !important;
    border: 1px solid #EAEAEA !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: #2D2D2D !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.pricing-plan:hover {
    box-shadow: 0 15px 35px rgba(182, 142, 66, 0.06);
    transform: translateY(-4px);
}
.pricing-plan.recommended {
    border-color: #B68E42 !important;
    box-shadow: 0 0 0 2px #B68E42 !important;
}

/* Blog card lucid style */
.blog-compact-item-container {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    background: #FFFFFF;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.blog-compact-item-container:hover {
    box-shadow: 0 15px 35px rgba(182, 142, 66, 0.06);
    transform: translateY(-4px);
}

/* Logo slider marquee track */
@keyframes logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 35s linear infinite;
}
.logo-track:hover {
    animation-play-state: paused;
}

/* Font overrides for headlines */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* ===== PREMIUM BUTTON OVERRIDES ===== */
.button, 
button[type="submit"].button, 
.button.ripple-effect,
a.button.ripple-effect,
.btn-premium-gold {
    background: linear-gradient(135deg, #b68e42 0%, #d4b26f 100%) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important; /* rounded-lg */
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    box-shadow: 0 4px 15px rgba(182, 142, 66, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.button:hover, 
button[type="submit"].button:hover, 
.button.ripple-effect:hover,
a.button.ripple-effect:hover,
.btn-premium-gold:hover {
    background: linear-gradient(135deg, #9c7731 0%, #e0bd75 100%) !important;
    color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(182, 142, 66, 0.25) !important;
}

.button:active, 
button[type="submit"].button:active, 
.button.ripple-effect:active,
a.button.ripple-effect:active,
.btn-premium-gold:active {
    transform: translateY(-2px) scale(0.97) !important;
}

.btn-premium-outline {
    border: 1px solid #b68e42 !important;
    color: #b68e42 !important;
    background: transparent !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-premium-outline:hover {
    background: rgba(182, 142, 66, 0.05) !important;
    color: #b68e42 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(182, 142, 66, 0.1) !important;
}

.btn-premium-outline:active {
    transform: translateY(-2px) scale(0.97) !important;
}


/* ===== RESPONSIVE FIXES ===== */
/* Prevent any horizontal overflow at the root */
#wrapper {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile nav height adjustment */
@media (max-width: 640px) {
    #wrapper {
        padding-top: 64px;
    }
    /* Reset dashboard inner padding on mobile */
    .dashboard-content-inner {
        padding: 16px !important;
    }
    .lucid-card {
        padding: 1.25rem;
    }
    #mobile-menu {
        max-width: 100vw;
        overflow-x: hidden;
    }
    /* Dashboard content inner: reduce padding on small screens */
    .dashboard-content-inner {
        padding: 16px !important;
    }
    /* Stats grid: single column on phone */
    .lucid-stat-card {
        padding: 1rem;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .pricing-plans-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    /* Dashboard content inner: moderate padding */
    .dashboard-content-inner {
        padding: 20px !important;
    }
}

/* Ensure nav is always full-width and never overflows */
#header-container.lucid-nav nav {
    max-width: 100vw;
    overflow: visible;
}
.simplebar-scroll-content::-webkit-scrollbar, .simplebar-content-wrapper::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } .simplebar-scroll-content, .simplebar-content-wrapper { scrollbar-width: none !important; }


/* ===== CREATIVE STUDIO REDESIGN ===== */
/* Project Studio Cards (Immersive Cover Photo backgrounds) */
.project-studio-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #F9F6F2;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.project-studio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.12);
    border-color: rgba(184, 134, 11, 0.2);
}

/* Magic Linker - Side-by-side Upload Zones & Connectors */
.magic-linker-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .magic-linker-row {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.magic-connector-line {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 80px;
    height: 3px;
    background: #e2e8f0;
    transform: translate(-50%, -50%);
    z-index: 5;
    border-radius: 99px;
    transition: all 0.5s ease;
    box-shadow: none;
}

/* Glowing gold magic linker active animation */
.magic-linked .magic-connector-line {
    background: linear-gradient(90deg, #b68e42, #e0bd75, #b68e42);
    box-shadow: 0 0 15px #b68e42, 0 0 5px #e0bd75;
    animation: goldGlowPulse 2s infinite alternate;
}

@keyframes goldGlowPulse {
    0% { box-shadow: 0 0 8px #b68e42, 0 0 2px #e0bd75; opacity: 0.8; }
    100% { box-shadow: 0 0 25px #b68e42, 0 0 10px #e0bd75; opacity: 1; }
}

/* Luxury Gold Leaf Loader */
@keyframes gold-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-loader-gold {
    background: linear-gradient(90deg, #F9F6F2 25%, #e0bd75 50%, #F9F6F2 75%);
    background-size: 200% 100%;
    animation: gold-shimmer 1.5s infinite;
}

/* Success Modal Transition */
.modal-scale-up {
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleUp {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Text Rotator */
.text-rotator-container {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
    top: 0px;
}
.text-rotator {
    display: inline-block;
    animation: rotateText 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
    text-align: left;
}
.text-rotator span {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
    color: #B68E42;
}
@keyframes rotateText {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.2em); }
    50%, 70% { transform: translateY(-2.4em); }
    75%, 95% { transform: translateY(-3.6em); }
    100% { transform: translateY(-4.8em); }
}

/* Dropdown Navbar enhancement */
.group:hover .group-hover\:visible {
    visibility: visible;
}
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}
.nav-dropdown {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
    transform: translateY(10px) scale(0.98);
}
.group:hover .nav-dropdown {
    transform: translateY(0) scale(1);
}
