/* Polished UI tokens on top of Tailwind */
.navlink {
    color: rgba(255, 255, 255, .7);
    padding: .25rem .5rem;
    border-radius: .5rem
}

.navlink:hover {
    color: white;
    background: rgba(255, 255, 255, .08)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1rem;
    border-radius: .9rem;
    font-weight: 600
}

.btn-cta {
    background: linear-gradient(135deg, #0ea5e9, #f59e0b);
    color: #0b1220;
    box-shadow: 0 6px 20px rgba(14, 165, 233, .35)
}

.btn-cta:hover {
    filter: brightness(1.03)
}

.btn-subtle {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2)
}

.btn-subtle:hover {
    background: rgba(255, 255, 255, .15)
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .15)
}

.input {
    width: 100%;
    padding: .7rem .9rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff
}

.input::placeholder {
    color: rgba(255, 255, 255, .45)
}

.chip {
    padding: .25rem .5rem;
    border-radius: .6rem;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08)
}

/* Focus ring */
:focus {
    outline: 2px solid rgba(14, 165, 233, .65);
    outline-offset: 2px
}

/* Hero overlay / effect */
.hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* dark overlay */
}

/* Hover scale on images */
.img-hover-scale {
    transition: transform 0.6s ease;
}

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

/* Navbar transition */
.nav-transparent {
    background: transparent;
}

.nav-solid {
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
}

/* Fade-in reveal */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-reveal.visible {
    opacity: 1;
    transform: none;
}

.input {
    @apply w-full bg-white/10 placeholder-white/50 text-white px-4 py-3 rounded-lg ring-1 ring-white/10 focus:outline-none focus:ring-2 focus:ring-primary transition;
}

.btn {
    @apply inline-flex items-center justify-center px-4 py-2 font-medium rounded-lg transition;
}

.btn-ghost {
    @apply btn bg-white/10 hover:bg-white/20 text-white;
}

.btn-subtle {
    @apply btn bg-white/5 hover:bg-white/10 text-white/70 hover:text-white;
}

.btn-cta {
    @apply btn bg-primary hover:bg-primary/80 text-white shadow-glow;
}

.shadow-glow {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.4);
}

/* ==== NAV visibility (desktop vs mobile) ==== */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex !important;
    }

    /* show desktop links + CTA on md+ */
    .nav-mobile-trigger {
        display: none !important;
    }

    /* hide burger on md+ */
}

@media (max-width: 767.98px) {
    .nav-desktop {
        display: none !important;
    }

    /* hide desktop links on phones */
    .nav-mobile-trigger {
        /* show burger on phones */
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ==== Mobile panels/backdrops: default hidden, show when JS removes .hidden ==== */
/* Default hidden (belt & suspenders even if 'hidden' class fails) */
#mobileMenu,
#mobileMenuBackdrop {
    display: none;
}

#mobileMenu:not(.hidden) {
    display: block;
    z-index: 50;
}

#mobileMenuBackdrop:not(.hidden) {
    display: block;
    z-index: 40;
}

/* ==== Admin burger visibility (admin_base.html) ==== */
@media (min-width: 768px) {
    #adminMenuBtn {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    #adminMenuBtn {
        display: inline-flex !important;
    }
}