/* =============================================================
   results.css — DSports Prediction Results Page
   Mirrors index.css palette exactly:
     --amber    : #c7792b
     --slate    : #464b6d
     --off-white: #f7f8fc
   ============================================================= */

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

/* ── PAGE HEADING ─────────────────────────────────────────── */
.results-heading-wrap {
    padding: 1rem 1rem 0.75rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e4e6ef;
}

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

/* ── SEARCH INPUT ─────────────────────────────────────────── */
.results-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;
}

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

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

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

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

/*
   Competition header — clickable slate bar, mirrors .league-header.
   Cursor pointer signals it is toggleable.
*/
.results-competition-header {
    padding: 0.65rem 1rem;
    background-color: #464b6d;
    color: #ffffff;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.12s;
}

.results-competition-header:hover {
    background-color: #383d5c;
}

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

/* Chevron — mirrors .league-header-chevron */
.results-competition-chevron {
    color: #ffffff;
    font-size: 0.85rem;
    opacity: 0.8;
    flex-shrink: 0;
}

/* ── MATCH LIST ───────────────────────────────────────────── */
.results-match-list {
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    border-top: none;
}

/* Match row — mirrors .match-item */
.results-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;
    color: inherit !important;
}

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

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

/* Kick-off badge — mirrors .match-kickoff */
.results-match-kickoff {
    background-color: #fdf3e7;
    color: #c7792b;
    border-radius: 5px;
    padding: 0.18rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

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

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

/* ── LOAD MORE — mirrors .load-more-* ────────────────────── */
.results-load-more-wrap {
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

.results-load-more-btn {
    background-color: #c7792b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(199, 121, 43, 0.25);
    transition: background-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.results-load-more-btn:hover:not(:disabled) {
    background-color: #a85f1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(199, 121, 43, 0.35);
}

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

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

/* ── ALL LOADED / EMPTY STATE — mirrors index equivalents ─── */
.results-all-loaded {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.82rem;
    color: #9094b0;
}

.results-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #9094b0;
    font-size: 0.9rem;
}
