/* Header-specific styles */

/* ── Site navbar ── */
.site-navbar {
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    backdrop-filter: blur(12px);
}

/* Brand */
.site-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #fff !important;
    flex-shrink: 0;
}

.site-navbar-brand img {
    border-radius: 4px;
}

/* Toggler */
.site-navbar-toggler {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
}

.site-navbar-toggler:hover {
    color: #fff;
}

/* Offcanvas header */
.site-offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Nav links - desktop */
.site-nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.4rem 0.55rem !important;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    position: relative;
}

.site-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav-link.active {
    color: #fff !important;
    background: rgba(220, 20, 60, 0.15);
    box-shadow: none;
}

/* Active underline via pseudo-element (no layout shift) */
.site-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #DC143C;
    border-radius: 1px;
}

/* Nav list spacing */
.site-nav-list {
    gap: 0.125rem;
    flex-wrap: nowrap;
}

/* ── Desktop: lg to xl (992-1199px) tighter spacing ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem !important;
    }

    .site-navbar-brand {
        font-size: 0.95rem;
    }

    .site-navbar-brand img {
        width: 28px;
        height: 28px;
    }
}

/* ── Desktop: xl and up (1200px+) comfortable spacing ── */
@media (min-width: 1200px) {
    .site-nav-link {
        font-size: 0.8125rem;
        padding: 0.4rem 0.65rem !important;
    }
}

/* ── Mobile / Tablet: offcanvas (<992px) ── */
@media (max-width: 991.98px) {
    /* Offcanvas fills the full screen height and scrolls */
    .offcanvas.offcanvas-end {
        height: 100vh;
        height: 100dvh; /* dynamic viewport for mobile browsers with address bar */
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .offcanvas .offcanvas-header {
        flex-shrink: 0;
    }

    .offcanvas .offcanvas-body {
        flex: 1 1 auto;
        min-height: 0; /* required for flex child to scroll */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 2rem;
    }

    .site-nav-list {
        gap: 0.125rem;
        flex-wrap: wrap;
    }

    .site-nav-link {
        font-size: 0.9375rem;
        padding: 0.625rem 0.875rem !important;
        border-radius: 0.5rem;
    }

    .site-nav-link.active::after {
        display: none;
    }

    .site-nav-link.active {
        background: rgba(220, 20, 60, 0.2);
    }
}

/* Legacy active (keep for backwards compat) */
.nav-link.active.glow-border {
    box-shadow: none;
    border-radius: 5px;
}

/* Tryouts ad section */
.tryouts-ad-section {
    max-width: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.modern-dark-ad {
    background: linear-gradient(120deg, #171924 85%, #1d1228 100%);
    border-radius: 1.8rem;
    border: 1.5px solid #32234e;
    box-shadow: 0 12px 24px 0 rgba(50,20,70,0.16), 0 1.5px 18px 0 rgba(220,40,60,0.07);
}

.modern-ad-glow {
    position: absolute;
    z-index: 0;
    left: -10%;
    top: -18%;
    width: 120%;
    height: 170px;
    pointer-events: none;
    filter: blur(38px);
    opacity: 0.75;
    background: linear-gradient(90deg, rgba(220,40,60,0.18) 10%, rgba(255,100,80,0.12) 55%,rgba(80,40,100,0.18) 90%);
}

.ad-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1622 55%, #d82a3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 10px;
    border: 2.5px solid #d82a3c;
    box-shadow: 0 0 18px 2px #d82a3c33, 0 8px 20px #0005;
    color: #feebeb;
    animation: pulseIcon 2.6s infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 0 18px 2px #d82a3c33, 0 8px 20px #0005;
    }
    40% {
        box-shadow: 0 0 34px 6px #d82a3c51, 0 8px 26px #0007;
    }
    60% {
        box-shadow: 0 0 20px 4px #ffb5a16c, 0 8px 20px #0007;
    }
}

.gradient-text {
    background: linear-gradient(90deg,#ee1451 0%, #fc731e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-underline {
    border-bottom: 2px solid #e63b3b66;
    padding-bottom: 1.5px;
}

.text-gradient-danger {
    background: linear-gradient(80deg,#fe2046,#fc731e 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-cta-btn {
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 20px -4px #d82a3c44, 0 8px 22px #0003;
    position: relative;
    overflow: hidden;
}

.modern-cta-btn .animated-arrow {
    display: inline-block;
    transition: transform 0.22s cubic-bezier(0.49,1.52,0.56,1);
}

.modern-cta-btn:hover .animated-arrow {
    transform: translateX(9px) scale(1.14) rotate(3deg);
}

.pulse-badge {
    animation: badgePulse 1.7s infinite alternate cubic-bezier(.81,-0.02,.51,.98);
    box-shadow: 0 0 10px #ed4858d9, 0 0 2px #fff;
    font-weight: 700;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 18px #ed485832;
    }
    100% {
        box-shadow: 0 0 25px #d82a3cd8;
    }
}

/* Tryouts ad text styles */
.tryouts-ad-title {
    color: #fff;
    letter-spacing: 1px;
    font-size: 2.2rem;
    text-shadow: 0 3px 14px rgba(220,40,60,0.18);
}

.tryouts-ad-lead {
    color: #e0e0e0;
}

.tryouts-ad-highlight {
    color: #f25;
}

.tryouts-ad-info {
    font-size: 1em;
    color: #bbb;
}

.tryouts-ad-info span {
    opacity: 0.95;
}

@media (max-width: 550px) {
    .modern-dark-ad {
        padding: 1.7rem 0.8rem !important;
    }
    .modern-dark-ad .p-5 {
        padding: 1.2rem 0.4rem !important;
    }
    .ad-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 1.38rem;
    }
    .modern-cta-btn {
        font-size: 1.08em;
        padding-left: 1.8em;
        padding-right: 1.8em;
    }
    .tryouts-ad-title {
        font-size: 1.4rem !important;
    }
}

/* Hero banner — compact, dark mode */
.hero-banner {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a1e 40%, #212529 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
}

.hero-banner__glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-banner__pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 0, 4px -4px, 0 4px;
    pointer-events: none;
}

.hero-banner__content {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.hero-banner__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-banner__logo {
    flex-shrink: 0;
}

.hero-banner__logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(139, 0, 0, 0.3));
}

.hero-banner__text {
    text-align: left;
}

.hero-banner__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.15rem 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e85a6b 0%, #ff6b7a 50%, #ff8a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner__motto {
    font-size: 0.9rem;
    font-weight: 500;
    color: #adb5bd;
    margin: 0;
    letter-spacing: 0.02em;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-banner__btn:hover {
    transform: translateY(-2px);
}

.hero-banner__btn--primary {
    background: linear-gradient(135deg, #7a0a0a 0%, #a01818 50%, #c41e1e 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.5);
}

.hero-banner__btn--primary:hover {
    box-shadow: 0 6px 28px rgba(139, 0, 0, 0.6);
}

.hero-banner__btn--outline {
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8ea;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-banner__btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-banner__btn--support {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
}

.hero-banner__btn--support:hover {
    box-shadow: 0 6px 28px rgba(220, 38, 38, 0.6);
}

.hero-banner__btn--support i {
    animation: hero-heart-pulse 2s ease-in-out infinite;
}

@keyframes hero-heart-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Responsive */
@media (max-width: 576px) {
    .hero-banner {
        padding: 1rem 1rem;
    }

    .hero-banner__brand {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-banner__text {
        text-align: center;
    }

    .hero-banner__title {
        font-size: 1.35rem;
    }

    .hero-banner__motto {
        font-size: 0.85rem;
    }

    .hero-banner__actions {
        gap: 0.4rem;
    }

    .hero-banner__btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
}


/* Legacy hover-scale */
.hover-scale {
    transition: transform 0.2s;
}

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

/* Floating shop button */
.floating-shop-btn {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.1);
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulsate {
    animation: pulsate 2s infinite;
}

