/* =============================================
   match.css — DSports Match Page
   Palette matches index.css:
     --slate  : #464b6d
     --amber  : #c7792b
     --off-white: #f7f8fc
     --border : #e4e6ef
   ============================================= */

/* ── MATCH CARD ── */
#selected_match {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

/* ── COMPETITION HEADER ── */
.competition-header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e4e6ef;
    text-align: center;
}

.competition-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.4rem 0 0;
    color: #2d2f3e;
}

/* ── MATCH HERO ── */
.match-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e4e6ef;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-block img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: #2d2f3e;
    line-height: 1.3;
}

.match-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    min-width: 90px;
}

.match-date-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d2f3e;
}

.match-time-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.vs-label {
    font-size: 1.4rem;
    font-weight: 800;
    color: #dee2e6;
}

.score-display {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.score-ft-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

/* ── SECTION TITLES (Predictions, Comments) ── */
.match-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d2f3e;
    padding: 0.85rem 1rem 0.5rem;
    margin: 0;
    border-top: 1px solid #e4e6ef;
}

/* ── SUB-SECTION TITLES (H2H, Form, Standings) ── */
/* These h4s come from the partials — make them smaller and styled */
.match-sub-sections h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #464b6d;
    border-left: 3px solid #464b6d;
    padding: 0.6rem 0 0.4rem 0.6rem;
    margin: 0 0 0 1rem;
}

/* Reduce Bootstrap col and table-responsive padding inside partials */
.match-sub-sections [class*="col-"],
.match-sub-sections .col {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}
.match-sub-sections .table-responsive {
    padding-left: 0;
    padding-right: 0;
}

/* ── SURE TIPS ── */
.sure-tips-wrap {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e4e6ef;
}

.sure-tips-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tip-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f7f8fc;
    border: 1px solid #e4e6ef;
    border-left: 3px solid #17a2b8;
    border-radius: 5px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.tip-market-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9094b0;
    white-space: nowrap;
}

.tip-prediction {
    font-weight: 700;
    margin-left: auto;
    font-size: 0.9rem;
}

/* ── COMMENTS ── */
.comments-wrap {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e4e6ef;
}

.comments-wrap h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d2f3e;
    margin-bottom: 0.85rem;
}

/* ── SHARE BAR ── */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid #e4e6ef;
}

/* ── SIMILAR MATCHES ── */
.similar-matches-wrap {
    border-top: 1px solid #e4e6ef;
}

.similar-matches-wrap h3 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0.55rem 1rem;
    background-color: #464b6d;
    color: #ffffff;
}

.similar-matches-list {
    background-color: #ffffff;
}

.similar-match-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem;
    padding: 0.6rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid #f0f1f8 !important;
    text-decoration: none !important;
    transition: background-color 0.12s;
}

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

.similar-match-item:hover {
    background-color: #f7f8fc !important;
    text-decoration: none !important;
}

.similar-match-item .teams {
    flex: 1;
    font-weight: 600;
    font-size: 0.88rem;
    color: #464b6d;
}

.similar-match-item .mtime {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c7792b;
    background-color: #fdf3e7;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.similar-match-item .match-arrow {
    color: #c7792b;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── SIDEBAR ── */
.sidebar-sticky {
    position: sticky;
    top: 1rem;
}