/* ═══════════════════════════════════════════════════════════════════
   buu-common.css — Shared design system for buu.ro pages
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Base ─────────────────────────────────────────────────────── */
html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

select option {
    background-color: #0e1424;
    color: #f8fafc;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

/* ─── Glass Panels ─────────────────────────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-static {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ─── Gradients ────────────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #38bdf8, #818cf8, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-btn {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    color: #ffffff;
}

/* ─── Keyframe Animations ──────────────────────────────────────── */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg)
    }

    50% {
        transform: translateY(-30px) rotate(5deg)
    }

    100% {
        transform: translateY(0) rotate(0deg)
    }
}

@keyframes btnShine {

    0%,
    100% {
        left: -60%
    }

    50% {
        left: 120%
    }
}

/* ─── Floating Orbs ────────────────────────────────────────────── */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #2563eb;
    top: -150px;
    left: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #9333ea;
    bottom: 50px;
    right: -100px;
    animation-delay: 3s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #e11d48;
    top: 35%;
    left: 25%;
    animation-delay: 5s;
    opacity: 0.15;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ─── Fade-up Animations ───────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Button Shine Effect ──────────────────────────────────────── */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-15deg);
    animation: btnShine 4s ease-in-out infinite;
}

/* ─── Section Divider ──────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}


/* ═══════════════════════════════════════════════════════════════════
   LIGHT MODE THEME — Common Overrides
   ═══════════════════════════════════════════════════════════════════ */
body.light-theme {
    background-color: #f8fafc;
    color: #0f172a;
    color-scheme: light;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme p,
body.light-theme label,
body.light-theme .text-slate-100,
body.light-theme .text-slate-200,
body.light-theme .text-slate-300,
body.light-theme .text-slate-400,
body.light-theme .text-slate-500,
body.light-theme .text-slate-600 {
    color: #0f172a !important;
}

body.light-theme .text-slate-600,
body.light-theme .text-slate-500 {
    color: #475569 !important;
}

body.light-theme .text-slate-400 {
    color: #64748b !important;
}

body.light-theme .glass-panel,
body.light-theme .glass-static {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04) !important;
}

body.light-theme .glass-panel:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.1) !important;
}

body.light-theme .section-divider {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.06), transparent) !important;
}

#navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(11, 15, 25, 0.85) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-theme #navbar {
    background-color: transparent;
}

body.light-theme #navbar.scrolled {
    background-color: rgba(248, 250, 252, 0.88) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.06);
}

body.light-theme .floating-orb {
    opacity: 0.12 !important;
}

body.light-theme .border-white\/5 {
    border-color: rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .border-slate-800\/50 {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .bg-white\/10 {
    background-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .border-white\/10 {
    border-color: rgba(15, 23, 42, 0.1) !important;
}

/* All gradient CTA buttons must keep white text in both themes */
body.light-theme .bg-gradient-btn,
body.light-theme .bg-gradient-btn.text-white,
body.light-theme .btn-always-white {
    color: #ffffff !important;
}

/* Navbar links — exclude gradient CTA buttons */
body.light-theme #navbar a:not(.bg-gradient-btn) {
    color: #475569 !important;
}

body.light-theme #navbar a:not(.bg-gradient-btn):hover {
    color: #0f172a !important;
}

body.light-theme #navbar a.bg-gradient-btn {
    color: #ffffff !important;
}

/* Mobile Hamburger & Controls in Light Mode */
body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white),
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white),
body.light-theme button[onclick*="toggleMenu"],
body.light-theme .mobile-menu-toggle,
body.light-theme .mobile-menu-btn {
    color: #0f172a !important;
}

body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white) svg,
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white) svg,
body.light-theme button[onclick*="toggleMenu"] svg,
body.light-theme .mobile-menu-toggle svg,
body.light-theme .mobile-menu-btn svg,
body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white) i,
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white) i,
body.light-theme button[onclick*="toggleMenu"] i {
    color: #0f172a !important;
    stroke: #0f172a !important;
}

body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white):hover,
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white):hover,
body.light-theme button[onclick*="toggleMenu"]:hover,
body.light-theme .mobile-menu-toggle:hover,
body.light-theme .mobile-menu-btn:hover {
    color: #2563eb !important;
}

body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white):hover svg,
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white):hover svg,
body.light-theme button[onclick*="toggleMenu"]:hover svg,
body.light-theme .mobile-menu-toggle:hover svg,
body.light-theme .mobile-menu-btn:hover svg,
body.light-theme #navbar button:not(.bg-gradient-btn):not(.btn-always-white):hover i,
body.light-theme nav button:not(.bg-gradient-btn):not(.btn-always-white):hover i,
body.light-theme button[onclick*="toggleMenu"]:hover i {
    color: #2563eb !important;
    stroke: #2563eb !important;
}

/* Close button and controls inside mobile menu drawer in Light Mode */
body.light-theme .mobile-menu-content button[onclick*="toggleMenu"],
body.light-theme .mobile-menu-content .glass-static {
    color: #0f172a !important;
}

body.light-theme .mobile-menu-content button[onclick*="toggleMenu"] svg,
body.light-theme .mobile-menu-content .glass-static svg,
body.light-theme .mobile-menu-content button[onclick*="toggleMenu"] i {
    color: #0f172a !important;
    stroke: #0f172a !important;
}

body.light-theme .mobile-menu-content button[onclick*="toggleMenu"]:hover,
body.light-theme .mobile-menu-content button[onclick*="toggleMenu"]:hover svg,
body.light-theme .mobile-menu-content button[onclick*="toggleMenu"]:hover i {
    color: #2563eb !important;
    stroke: #2563eb !important;
}

body.light-theme .logo-strip-img {
    filter: brightness(0) opacity(0.5) !important;
}

/* Form Inputs, Selects & Textareas in Light Mode */
body.light-theme input:not([type="range"]):not([type="radio"]):not([type="checkbox"]),
body.light-theme textarea,
body.light-theme select {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #94a3b8 !important;
}

body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    color: #0f172a !important;
}

body.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Fix dark card containers, dropdowns & dark backgrounds in Light Mode */
body.light-theme [class*="bg-[#0e1424]"],
body.light-theme [class*="bg-[#0b0f19]"] {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme [class*="bg-[#0b0f19]/95"] {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12) !important;
}

body.light-theme [class*="bg-[#0b0f19]/95"] a.text-slate-300,
body.light-theme .group-hover\:block a.text-slate-300 {
    color: #334155 !important;
}

body.light-theme [class*="bg-[#0b0f19]/95"] a.text-slate-300:hover,
body.light-theme .group-hover\:block a.text-slate-300:hover {
    color: #0f172a !important;
    background-color: rgba(15, 23, 42, 0.05) !important;
}

body.light-theme [class*="bg-black/30"] {
    background-color: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #334155 !important;
}

body.light-theme [class*="from-emerald-500/15"],
body.light-theme [class*="from-red-500/15"],
body.light-theme [class*="from-[#00AF87]/15"],
body.light-theme [class*="from-emerald-950"],
body.light-theme [class*="via-blue-950"],
body.light-theme [class*="via-emerald-950"],
body.light-theme [class*="via-red-950"],
body.light-theme [class*="to-[#0e1424]"] {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-theme [class*="bg-green-900"] {
    background-color: rgba(16, 185, 129, 0.08) !important;
}

/* Premium button style override in Light Mode to stay Lila / Fuchsia */
body.light-theme button[onclick*="Premium"],
body.light-theme a[onclick*="Premium"] {
    background: linear-gradient(135deg, #c084fc, #d946ef) !important;
    border-color: #d946ef !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.4) !important;
}

body.light-theme button[onclick*="Premium"]:hover,
body.light-theme a[onclick*="Premium"]:hover {
    background: linear-gradient(135deg, #a855f7, #c084fc) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 25px rgba(217, 70, 239, 0.6) !important;
}

/* Fix dark buttons in Light Mode */
body.light-theme button.bg-slate-900,
body.light-theme button.bg-slate-800,
body.light-theme a.bg-slate-900,
body.light-theme a.bg-slate-800,
body.light-theme .bg-slate-900:not(body):not(#navbar.scrolled),
body.light-theme .bg-slate-800:not(body) {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme button.bg-slate-900:hover,
body.light-theme button.bg-slate-800:hover,
body.light-theme a.bg-slate-900:hover,
body.light-theme a.bg-slate-800:hover {
    background-color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

/* ─── Mobile Menu Drawer Styles ─────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
}

.mobile-menu-content {
    position: relative;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    color: #fff;
    padding-left: 6px;
}

body.light-theme .mobile-menu-content {
    background: rgba(248, 250, 252, 0.98) !important;
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .mobile-nav-link {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
    color: #334155 !important;
}

body.light-theme .mobile-nav-link:hover {
    color: #0f172a !important;
}

/* ── Brand tagline animations (mobile & desktop) ────────── */
@keyframes mobileBrandLoop {
    0%, 4% { transform: translateY(140%); opacity: 0; }
    14%, 82% { transform: translateY(0); opacity: 1; }
    92%, 100% { transform: translateY(140%); opacity: 0; }
}
@keyframes desktopBrandLoop {
    0%, 4% { transform: translateY(120%); opacity: 0; }
    14%, 82% { transform: translateY(0); opacity: 1; }
    92%, 100% { transform: translateY(-120%); opacity: 0; }
}
.mobile-brand-tag {
    display: block;
    font-size: 8.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateY(140%);
    opacity: 0;
    animation: mobileBrandLoop 7s ease-in-out infinite;
    transition: color 0.3s;
}
.desktop-brand-tag {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    line-height: 1.15;
    transform: translateY(120%);
    opacity: 0;
    animation: desktopBrandLoop 7s ease-in-out infinite;
    transition: color 0.3s;
}
.mobile-brand-tag:hover,
.desktop-brand-tag:hover {
    animation-play-state: paused;
}
body.light-theme .mobile-brand-tag,
body.light-theme .desktop-brand-tag {
    color: #475569;
}
@media (prefers-reduced-motion: reduce) {
    .mobile-brand-tag,
    .desktop-brand-tag {
        animation: none;
        transform: translateY(0);
        opacity: 1;
    }
}