/* =============================================
   BigBoss Raffle — Raffles Page
   ============================================= */

/* Override Astra's page container */
.bbr-raffles-page,
.bbr-raffles-page .ast-container,
.bbr-raffles-page .site-content,
.bbr-raffles-page #content,
.bbr-raffles-page #primary,
.bbr-raffles-page .entry-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.bbr-raffles-page {
    background: transparent;
    min-height: 100vh;
}

/* Kill Astra's white content box and any opaque backgrounds */
.bbr-raffles-page .site-main > article,
.bbr-raffles-page .entry-content,
.bbr-raffles-page .site-content,
.bbr-raffles-page #content,
.bbr-raffles-page #primary,
.bbr-raffles-page .ast-container,
.bbr-raffles-page .ast-separate-container .ast-article-single,
.bbr-raffles-page .ast-separate-container .ast-article-post {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Header */
.bbr-rp-header {
    padding: 60px 0 30px;
    text-align: center;
}

.bbr-rp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bbr-rp-title {
    font-family: 'Bebas Neue', cursive !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    color: var(--gold) !important;
    margin: 0 0 12px !important;
    letter-spacing: 0.02em;
}

.bbr-rp-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--white-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid */
.bbr-rp-raffles {
    padding: 20px 0 80px;
}

.bbr-rp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.bbr-rp-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--white-muted);
    font-size: 16px;
}

/* Card */
.bbr-rp-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bbr-rp-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-dark);
    box-shadow: 0 20px 60px rgba(212,175,55,0.15);
}

.bbr-rp-card-img {
    height: 200px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--black-elevated);
}

.bbr-rp-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black-elevated), #1a1400);
}

.bbr-rp-card-img-placeholder span {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    color: var(--gold);
}

/* Image overlay mode */
.bbr-rp-card-img-overlay {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bbr-rp-card-img-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.bbr-rp-card-img-overlay span {
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    color: var(--gold);
    padding-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.bbr-rp-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bbr-rp-card-prize {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold) !important;
    margin-bottom: 6px;
}

.bbr-rp-card-title {
    font-family: 'Bebas Neue', cursive !important;
    font-size: 26px !important;
    color: var(--white) !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
    min-height: 62px;
}

/* Meta row */
.bbr-rp-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.bbr-rp-meta-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: var(--black-elevated);
    border-radius: 8px;
}

.bbr-rp-meta-item .meta-val {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    color: var(--white);
}

.bbr-rp-meta-item .meta-lbl {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white-muted);
    margin-top: 2px;
}

/* Progress bar */
.bbr-rp-progress {
    margin-bottom: 14px;
}

.bbr-rp-progress-bar {
    height: 6px;
    background: var(--black-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.bbr-rp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 3px;
    transition: width 0.6s ease;
}

.bbr-rp-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: var(--white-muted);
}

/* Draw date */
.bbr-rp-draw-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--white-muted);
    margin-bottom: 18px;
    padding: 10px 0;
    border-top: 1px solid var(--black-border);
    margin-top: auto;
}

.bbr-rp-draw-date .draw-label {
    opacity: 0.7;
}

.bbr-rp-draw-date .draw-val {
    color: var(--white);
    font-weight: 600;
}

/* Card footer — reserves space for "Watch the Automated Draw" link on all cards */
.bbr-rp-card-footer {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bbr-rp-auto-link {
    display: block;
    text-align: center;
    color: #D4AF37;
    font-size: 13px;
    text-decoration: none;
}
.bbr-rp-auto-link:hover {
    text-decoration: underline;
}

/* Enter button */
.bbr-rp-enter-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--black) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none !important;
    border-radius: 8px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bbr-rp-enter-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    color: var(--black) !important;
}

/* =============================================
   Completed Raffles
   ============================================= */

/* Completed section */
.bbr-rp-completed {
    padding: 40px 0 80px;
    border-top: 1px solid var(--black-border);
}

/* Completed card — slightly muted border */
.bbr-rp-card--completed {
    border-color: var(--black-border);
    opacity: 0.85;
    transition: all 0.3s ease;
}
.bbr-rp-card--completed:hover {
    opacity: 1;
}

/* Winner info block */
.bbr-rp-completed-winner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--black-elevated);
    border-radius: 8px;
    margin-bottom: 14px;
}

.bbr-rp-completed-winner-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.bbr-rp-completed-winner-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    flex: 1;
}

.bbr-rp-completed-winner-num {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    color: var(--gold);
}

/* "View Results" button — outline style to differentiate from active "Enter" */
.bbr-rp-results-btn {
    background: transparent !important;
    border: 2px solid var(--gold) !important;
    color: var(--gold) !important;
}
.bbr-rp-results-btn:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 768px) {
    .bbr-rp-header {
        padding: 40px 0 20px;
    }

    .bbr-rp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bbr-rp-card-meta {
        gap: 10px;
    }
}
