/* =============================================================
   index.css — DSports Homepage (Predictions Index)
   Colour palette:
     --amber  : #c7792b  (headings, accents, CTAs)
     --slate  : #464b6d  (league headers, links, text)
     --off-white: #f7f8fc (page background)
   ============================================================= */

/* ── PAGE BACKGROUND ──────────────────────────────────────── */
.predictions-page {
    background-color: #f7f8fc;
}

/* ── PREDICTIONS HEADING ──────────────────────────────────── */
.predictions-heading-wrap {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e6ef;
}

.predictions-heading-wrap h3 {
    padding: 1rem 1rem 0.75rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d2f3e;
}

/* ── SECTION CARDS (Jackpots & Accumulator) ───────────────── */
.section-card {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e6ef;
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 0;
}

.section-card-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #c7792b;
    margin-bottom: 0.5rem;
}

.section-card-heading a {
    color: #c7792b;
    text-decoration: none;
}

.section-card-heading a:hover {
    text-decoration: underline;
}

/* Jackpot row */
.jackpot-row {
    padding: 0.5rem 0.5rem 0;
}

.jackpot-row a {
    color: #464b6d;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.jackpot-row a:hover {
    text-decoration: underline;
}

.jackpot-row .jp-time {
    color: #6b7280;
    font-size: 0.85rem;
}

.jackpot-premium-label {
    font-style: italic;
    font-size: 0.75rem;
    color: #3cb371;
}

.jackpot-free-label {
    font-style: italic;
    font-size: 0.75rem;
    color: #0d6efd; /* soft blue */
}

/* Accumulator row */
.acc-row {
    padding: 0.5rem 0.5rem 0;
}

.acc-row a {
    color: #464b6d;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.acc-row a:hover {
    text-decoration: underline;
}

.acc-row .acc-time {
    color: #6b7280;
    font-size: 0.85rem;
}

.acc-view-all {
    padding: 0.5rem 0 0.75rem 0.5rem;
    font-size: 0.95rem;
}

.acc-view-all a {
    color: #c7792b;
    font-weight: 700;
    text-decoration: none;
}

.acc-view-all a:hover {
    text-decoration: underline;
}

/* ── SEARCH INPUT ─────────────────────────────────────────── */
.predictions-search {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    border: 1.5px solid #e4e6ef !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #2d2f3e !important;
    font-size: 0.88rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.predictions-search:focus {
    border-color: #c7792b !important;
    box-shadow: 0 0 0 3px rgba(199, 121, 43, 0.12) !important;
    outline: none !important;
}

.predictions-search::placeholder {
    color: #9094b0;
}

/* ── MATCH COUNT SUMMARY ──────────────────────────────────── */
.match-count-summary {
    margin-bottom: 1rem;
    padding-top: 0.25rem;
    padding-left: 0.25rem;
    color: #464b6d;
    font-weight: 600;
    font-size: 0.88rem;
}

/* ── COMPETITION BLOCK ────────────────────────────────────── */
.competition-block {
    padding-top: 0.5rem;
}

/* League header — the slate-coloured clickable bar */
.league-header {
    cursor: pointer;
    padding: 0.6rem 1rem;
    background-color: #464b6d;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 0;
    user-select: none;
    transition: background-color 0.15s;
}

.league-header:hover {
    background-color: #3a3f5e;
}

.league-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.league-header-chevron {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Match list inside the block */
.league-matches {
    padding: 0.25rem 0;
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    border-top: none;
}

/* Individual match row — overrides Bootstrap list-group-item */
.match-item {
    border: none !important;
    border-bottom: 1px solid #f0f1f8 !important;
    padding: 0.6rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem;
    transition: background-color 0.12s;
    text-decoration: none !important;
}

.match-item:last-child {
    border-bottom: none !important;
}

.match-item:hover {
    background-color: #f7f8fc !important;
}

/* Team names */
.match-teams {
    flex: 1;
    font-weight: 700;
    color: #464b6d;
    font-size: 0.9rem;
}

/* Kick-off time */
.match-kickoff {
    color: #9094b0;
    font-size: 0.82rem;
    white-space: nowrap;
    background-color: #fdf3e7;
    color: #c7792b;
    border-radius: 5px;
    padding: 0.18rem 0.45rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Arrow indicator */
.match-arrow {
    color: #c7792b;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── LOAD MORE ────────────────────────────────────────────── */
.load-more-wrap {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.load-more-btn {
    background-color: #c7792b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.5rem 2rem !important;
    border-radius: 6px !important;
    border: none !important;
    font-size: 0.9rem !important;
    transition: background-color 0.2s, transform 0.1s !important;
    box-shadow: 0 2px 8px rgba(199, 121, 43, 0.25);
}

.load-more-btn:hover:not(:disabled) {
    background-color: #f0a24a !important;
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-status {
    margin-top: 0.5rem;
    color: #9094b0;
    font-size: 0.8rem;
}

/* ── ALL LOADED MESSAGE ───────────────────────────────────── */
.all-loaded-msg {
    text-align: center;
    padding: 1rem 0;
    color: #9094b0;
    font-size: 0.8rem;
}

/* ── EMPTY SEARCH STATE ───────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9094b0;
    font-size: 0.9rem;
}

/* ── AD BLOCKS ────────────────────────────────────────────── */
.ad-block {
    padding: 0.5rem 0;
}

.ad-block-bottom {
    padding-bottom: 1rem;
}

.ad-block-search {
    padding-top: 1rem;
}