/* ============================================================
   BANXNO Powerball — main stylesheet
   Oswald font loaded via layout.pug <link>
   ============================================================ */

/* === Body ================================================== */
body {
    background: #f1f5f9;
}

/* === Navbar ================================================= */
.pb-nav {
    background-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.brand-ban { color: #fb923c; font-weight: 800; font-size: 1.2rem; }
.brand-xno { color: #38bdf8; font-weight: 800; font-size: 1.2rem; }
.pb-nav .nav-link { color: #94a3b8 !important; }
.pb-nav .nav-link:hover { color: #e2e8f0 !important; }

/* === Jackpot Banner ========================================= */
.jackpot-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    padding: 2.25rem 1rem 2rem;
    color: white;
    text-align: center;
}
.jackpot-banner h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a5b4fc;
    margin-bottom: 1.25rem;
    font-weight: 400;
}
.jackpot-col {
    padding: 0 1.5rem;
}
.jackpot-col + .jackpot-col {
    border-left: 1px solid rgba(255,255,255,0.12);
}
.jackpot-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin-bottom: 0.25rem;
}
.jackpot-amount {
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.1;
    word-break: break-word;
}

/* === Info bar (below banner) ================================ */
.drawing-info-bar {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}
.drawing-info-bar strong { color: #e2e8f0; }
.drawing-info-bar .alert-sales-closed {
    background: #78350f;
    color: #fef3c7;
    border-radius: 4px;
    display: inline-block;
    padding: 0.15rem 0.65rem;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

/* === Lottery Balls ========================================== */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 700;
    margin: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.ball-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}
.white-ball {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e2e8f0 60%, #cbd5e1 100%);
    color: #1e293b;
    border: none;
    box-shadow: 1px 3px 7px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
}
.red-ball {
    background: radial-gradient(circle at 35% 30%, #fca5a5 0%, #dc2626 50%, #991b1b 100%);
    color: #fff;
    border: none;
    box-shadow: 1px 3px 7px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}
.ball-match {
    outline: 3px solid #fbbf24;
    outline-offset: 1px;
}
.ball-empty {
    background: #e2e8f0;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
    box-shadow: none;
    font-size: 1rem;
}
.winning-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

/* === Cards ================================================== */
.section-card > .card-header {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: none;
}
.section-card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* === Prize Table ============================================ */
.prize-table th {
    background: #334155;
    color: #e2e8f0;
    font-weight: 600;
    border-color: #475569 !important;
    white-space: nowrap;
}
.prize-table td { vertical-align: middle; border-color: #e2e8f0 !important; }
.tier-jackpot td  { background: #fffbeb !important; }
.tier-pool td     { background: #f0fdf4 !important; }
.prize-amount {
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
.prize-table tfoot td {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.82rem;
}

/* === Buy-ticket card ======================================== */
.buy-card > .card-header {
    background: linear-gradient(90deg, #1e3a5f, #1e293b);
    color: white;
    font-weight: 600;
    border-bottom: none;
}
.buy-tabs .nav-link {
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
}
.buy-tabs .nav-link.active {
    background: #2563eb;
    color: white;
}
.buy-tabs .nav-link:not(.active):hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Ticket preview (Pick Numbers tab) */
.ticket-preview {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}
.ticket-preview.ready {
    border-color: #2563eb;
    border-style: solid;
    background: #eff6ff;
}

/* Number grids */
.number-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 560px;
}
.num-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    line-height: 1;
    transition: all 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.num-btn:focus { outline: none; }
.white-num:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.white-num.selected {
    background: radial-gradient(circle at 35% 30%, #60a5fa 0%, #2563eb 100%);
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2), 0 1px 3px rgba(0,0,0,0.15);
}
.red-num {
    border-color: #fca5a5;
    color: #dc2626;
}
.red-num:hover {
    background: #fee2e2;
    border-color: #f87171;
}
.red-num.selected {
    background: radial-gradient(circle at 35% 30%, #f87171 0%, #dc2626 100%);
    color: #fff;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2), 0 1px 3px rgba(0,0,0,0.15);
}

/* === Tickets page =========================================== */
.drawing-card {
    border: none;
    border-left: 5px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.drawing-card.has-winner {
    border-left-color: #f59e0b;
}
.drawing-card > .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.drawing-card.has-winner > .card-header {
    background: #fffbeb;
    border-bottom-color: #fde68a;
}
.ticket-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row.winner { background: #fefce8; }
.ticket-balls { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.ticket-tier { font-size: 0.8rem; color: #64748b; }
.ticket-tier.won { color: #d97706; font-weight: 700; }
.payout-amount {
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #d97706;
}
.ticket-num { font-size: 0.75rem; color: #94a3b8; flex-shrink: 0; }

/* === Misc =================================================== */
.pool-tier td { background: #fffbf0; }
