/* =============================================
   BigBoss Raffle — Navbar
   ============================================= */

.bbr-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.bbr-navbar.bbr-navbar-scrolled {
    background: rgba(17, 17, 17, 0.95);
    border-bottom-color: #D4AF37;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bbr-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
}

/* Logo */
.bbr-navbar-logo {
    flex-shrink: 0;
    line-height: 0;
}

.bbr-navbar-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Links container */
.bbr-navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Individual link */
.bbr-nav-link {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF !important;
    text-decoration: none !important;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.bbr-nav-link:hover,
.bbr-nav-link.bbr-nav-active {
    color: #D4AF37 !important;
}

.bbr-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.25s ease;
}

.bbr-nav-link:hover::after,
.bbr-nav-link.bbr-nav-active::after {
    width: 100%;
}

/* Cart link */
.bbr-nav-cart {
    position: relative;
    display: flex;
    align-items: center;
}

.bbr-nav-cart::after {
    display: none; /* no underline on cart icon */
}

.bbr-cart-icon {
    stroke: #FFFFFF;
    transition: stroke 0.25s ease;
}

.bbr-nav-cart:hover .bbr-cart-icon {
    stroke: #D4AF37;
}

/* Cart badge */
.bbr-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #D4AF37;
    color: #0A0A0A;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hamburger toggle — hidden on desktop */
.bbr-navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10001;
}

.bbr-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.bbr-navbar-toggle.bbr-toggle-active .bbr-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bbr-navbar-toggle.bbr-toggle-active .bbr-hamburger-line:nth-child(2) {
    opacity: 0;
}

.bbr-navbar-toggle.bbr-toggle-active .bbr-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Push page content below fixed navbar */
body {
    padding-top: 70px !important;
}

/* Hide Astra's default header and page banners site-wide */
body .site-header,
body #masthead {
    display: none !important;
}

/* Remove Astra page title/banner area (the large hero banner on pages like My Account) */
.ast-single-entry-banner,
.entry-header,
.page-header,
.ast-archive-entry-banner,
.post-thumb-img-content.post-thumb,
.ast-no-thumb,
body.woocommerce-account .entry-header,
body.woocommerce-account .page-header,
body.woocommerce-account .post-thumb-img-content {
    display: none !important;
}

/* =============================================
   Mobile — 768px and below
   ============================================= */
@media (max-width: 768px) {
    .bbr-navbar-toggle {
        display: flex;
    }

    .bbr-navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        border-bottom: 2px solid transparent;
    }

    .bbr-navbar-links.bbr-menu-open {
        max-height: 320px;
        padding: 16px 0;
        border-bottom-color: #D4AF37;
    }

    .bbr-nav-link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .bbr-nav-link::after {
        display: none;
    }

    .bbr-nav-cart {
        padding: 14px 24px;
        justify-content: flex-start;
        gap: 10px;
    }

    .bbr-navbar-logo img {
        height: 40px;
    }

    .bbr-navbar-inner {
        height: 60px;
    }

    body {
        padding-top: 60px !important;
    }

    .bbr-navbar-links {
        top: 60px;
    }
}

/* =============================================
   Result Popup
   ============================================= */

.bbr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.bbr-popup-overlay.bbr-popup-visible {
    opacity: 1;
    visibility: visible;
}

.bbr-popup-card {
    background: #111;
    border: 2px solid #D4AF37;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s ease;
}

.bbr-popup-visible .bbr-popup-card {
    transform: scale(1) translateY(0);
}

.bbr-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.bbr-popup-close:hover {
    color: #fff;
}

.bbr-popup-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4AF37;
    margin-bottom: 6px;
}

.bbr-popup-raffle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 24px;
}

.bbr-popup-ball {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D680 40%, #D4AF37 60%, #AA8C2C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    color: #0A0A0A;
    font-weight: 700;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4), 0 0 80px rgba(212, 175, 55, 0.15);
    animation: bbr-popup-glow 2s ease-in-out infinite alternate;
}

@keyframes bbr-popup-glow {
    from { box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), 0 0 60px rgba(212, 175, 55, 0.1); }
    to   { box-shadow: 0 0 50px rgba(212, 175, 55, 0.5), 0 0 100px rgba(212, 175, 55, 0.2); }
}

.bbr-popup-winner {
    margin-bottom: 24px;
}

.bbr-popup-congrats {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #D4AF37;
    margin: 0 0 4px;
}

.bbr-popup-winner-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.bbr-popup-prize {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #ccc;
    margin: 0;
}

.bbr-popup-no-winner {
    margin-bottom: 24px;
}

.bbr-popup-no-winner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #ccc;
    margin: 0;
}

.bbr-popup-cta {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #D4AF37, #AA8C2C);
    color: #0A0A0A !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bbr-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Popup body fade transition when cycling results */
.bbr-popup-body.bbr-popup-fade-in {
    animation: bbr-popup-fade-in 0.35s ease-out;
}

@keyframes bbr-popup-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Popup navigation for stacked results */
.bbr-popup-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.bbr-popup-nav-btn {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
    padding: 0;
}

.bbr-popup-nav-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.bbr-popup-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .bbr-popup-card {
        padding: 32px 24px;
        max-width: 340px;
    }

    .bbr-popup-raffle {
        font-size: 22px;
    }

    .bbr-popup-ball {
        width: 100px;
        height: 100px;
        font-size: 44px;
    }
}
