/* Shared lottery result-card theme — mirrors the home page cards so every
   game page (South African + international) presents results identically.
   Keep in sync with the card styles on the home page. */

.section-header {
    color: #007BFF;
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    font-weight: 600;
    border-left: 4px solid #007BFF;
    padding-left: 1rem;
}

/* ── Result card ───────────────────────────────────────── */
.result-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.07);
    margin-bottom: 1.25rem;
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s ease;
    border: none;
}
.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.09), 0 16px 40px rgba(0,0,0,0.12);
}

/* Coloured accent strip */
.accent-strip { height: 5px; }
.card-dailylotto    .accent-strip { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.card-lotto         .accent-strip { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.card-lottoplus1    .accent-strip { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.card-lotto5max     .accent-strip { background: linear-gradient(90deg, #059669, #34d399); }
.card-powerball     .accent-strip { background: linear-gradient(90deg, #dc2626, #f87171); }
.card-powerballxtra .accent-strip { background: linear-gradient(90deg, #ea580c, #fb923c); }
.card-megamillions  .accent-strip { background: linear-gradient(90deg, #1d4ed8, #6366f1); }
.card-euromillions  .accent-strip { background: linear-gradient(90deg, #0e7490, #22d3ee); }
.card-uk49s         .accent-strip { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.card-upcoming      .accent-strip { background: linear-gradient(90deg, #6366f1, #a5b4fc); }

/* Card header: logo left, draw info right */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.9rem;
    background: none;
    border-bottom: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.game-logo {
    height: 60px;
    width: auto;
    display: block;
}
.card-powerball .game-logo { height: 88px; }
.card-lotto .game-logo { height: 78px; }
.card-lottoplus1 .game-logo { height: 66px; }
.card-dailylotto .game-logo { height: 78px; }
.draw-info { text-align: right; }
.draw-num {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
}
.draw-date {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 0.1rem;
}

/* Numbers band */
.numbers-band {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.card-dailylotto    .numbers-band { background: #fffbeb; }
.card-lotto         .numbers-band { background: #eff6ff; }
.card-lottoplus1    .numbers-band { background: #f5f3ff; }
.card-lotto5max     .numbers-band { background: #ecfdf5; }
.card-powerball     .numbers-band { background: #fef2f2; }
.card-powerballxtra .numbers-band { background: #fff7ed; }
.card-megamillions  .numbers-band { background: #eef2ff; }
.card-euromillions  .numbers-band { background: #ecfeff; }
.card-uk49s         .numbers-band { background: #fef2f2; }
.card-upcoming      .numbers-band { background: #eef2ff; }

/* Balls */
.ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(.22,.68,0,1.2);
    cursor: default;
    letter-spacing: -0.02em;
}
.ball:hover { transform: scale(1.12); }
.card-dailylotto    .ball { background: linear-gradient(145deg, #fbbf24, #d97706); box-shadow: 0 3px 10px rgba(217,119,6,0.35); }
.card-lotto         .ball { background: linear-gradient(145deg, #3b82f6, #1d4ed8); box-shadow: 0 3px 10px rgba(29,78,216,0.30); }
.card-lottoplus1    .ball { background: linear-gradient(145deg, #a78bfa, #7c3aed); box-shadow: 0 3px 10px rgba(124,58,237,0.30); }
.card-lotto5max     .ball { background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 3px 10px rgba(5,150,105,0.30); }
.card-powerball     .ball { background: linear-gradient(145deg, #f87171, #dc2626); box-shadow: 0 3px 10px rgba(220,38,38,0.30); }
.card-powerballxtra .ball { background: linear-gradient(145deg, #fb923c, #ea580c); box-shadow: 0 3px 10px rgba(234,88,12,0.30); }
.card-megamillions  .ball { background: linear-gradient(145deg, #6366f1, #1d4ed8); box-shadow: 0 3px 10px rgba(29,78,216,0.30); }
.card-euromillions  .ball { background: linear-gradient(145deg, #22d3ee, #0e7490); box-shadow: 0 3px 10px rgba(14,116,144,0.30); }
.card-uk49s         .ball { background: linear-gradient(145deg, #ef4444, #b91c1c); box-shadow: 0 3px 10px rgba(185,28,28,0.30); }
.ball.bonus {
    background: linear-gradient(145deg, #fde68a, #f59e0b) !important;
    color: #78350f !important;
    box-shadow: 0 3px 10px rgba(245,158,11,0.40) !important;
}
.bonus-sep {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.12);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Card divider */
.card-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 0 1.5rem; }

/* Divisions */
.divisions { padding: 0.2rem 0; }
.div-row {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    align-items: center;
    gap: 0 0.75rem;
    padding: 0.58rem 1.5rem;
    transition: background 0.15s;
}
.div-row:hover { background: #f9fafb; }
.div-row + .div-row { border-top: 1px solid rgba(0,0,0,0.045); }
.div-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.18rem 0;
    border-radius: 5px;
    letter-spacing: 0.04em;
    text-align: center;
    width: 44px;
}
.card-dailylotto    .div-badge { background: #fef3c7; color: #92400e; }
.card-lotto         .div-badge { background: #dbeafe; color: #1e40af; }
.card-lottoplus1    .div-badge { background: #ede9fe; color: #5b21b6; }
.card-lotto5max     .div-badge { background: #d1fae5; color: #065f46; }
.card-powerball     .div-badge { background: #fee2e2; color: #991b1b; }
.card-powerballxtra .div-badge { background: #ffedd5; color: #9a3412; }
.card-megamillions  .div-badge { background: #e0e7ff; color: #3730a3; }
.card-euromillions  .div-badge { background: #cffafe; color: #155e75; }
.card-uk49s         .div-badge { background: #fee2e2; color: #991b1b; }
.div-match   { font-size: 0.82rem; color: #4b5563; font-weight: 500; white-space: nowrap; }
.div-winners { font-size: 0.78rem; color: #9ca3af; font-weight: 500; text-align: right; white-space: nowrap; }
.div-prize   { font-size: 0.85rem; font-weight: 700; color: #111827; text-align: right; white-space: nowrap; }

/* Prize breakdown not yet published (preliminary result) */
.divisions-pending { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1.5rem; }
.dp-title { font-size: 0.82rem; font-weight: 700; color: #4b5563; }
.dp-sub   { font-size: 0.74rem; color: #9ca3af; font-weight: 500; }

/* Stats footer */
.stats-footer { background: #f9fafb; border-top: 1px solid rgba(0,0,0,0.06); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-row + .stats-row { border-top: 1px solid rgba(0,0,0,0.05); }
.stat {
    padding: 0.8rem 1.25rem;
    border-right: 1px solid rgba(0,0,0,0.05);
    min-width: 0;
}
.stat:last-child { border-right: none; }
.stat-val {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.18rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-val .muted { font-size: .75em; font-weight: 500; color: #9ca3af; }
.stat-key {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ball { width: 36px; height: 36px; font-size: 0.82rem; }
    .bonus-sep { height: 28px; }
    .div-row { grid-template-columns: 40px 1fr auto; gap: 0 0.5rem; padding: 0.5rem 1rem; }
    .div-winners { display: none; }
    .div-prize { font-size: 0.78rem; }
    .div-match { font-size: 0.76rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 0.65rem 1rem; }
    .stat-val { font-size: 0.78rem; }
    .game-logo { height: 44px; }
}

/* Archived-results filter form (matches the home page filter) */
.filter-form {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(16,42,77,0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e8eef5;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.filter-form .form-label, .form-label { display: block; font-weight: 600; color: #475569; font-size: 0.9rem; margin-bottom: 0.5rem; }
.filter-form .form-control { border-radius: 10px; border: 1.5px solid #e2e8f0; padding: 10px 12px; }
.filter-form .form-control:focus { border-color: #007BFF; box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25); }
.filter-form .btn-primary { border-radius: 10px; padding: 0.55rem 1.5rem; font-weight: 600; background: linear-gradient(135deg,#007BFF,#0062cc); border: none; }
