/* Soccer Team Meta – Frontend Styles */

.stm-team-calendar {
    margin: 0;
    font-family: inherit;
}

/* ── Team picture (full width in Staff section) ─────── */
.stm-team-picture {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 0;
}


/* ── Sections ───────────────────────────────────────── */
.stm-section {
    margin-bottom: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.stm-section__title {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
    padding-bottom: 8px;
    border-bottom: 2px solid #C1C1C1;
    margin-bottom: 20px;
}

/* ── Override Bootstrap table-dark with light grey ───── */
.stm-calendar-table thead.table-dark th,
.stm-rankings-table thead.table-dark th {
    background-color: #C1C1C1 !important;
    color: inherit !important;
    border-color: #C1C1C1 !important;
}

/* ── Staff cards (col-3) ────────────────────────────── */
.stm-staff-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    background: #fff;
    height: 100%;
}

.stm-staff-card__title {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-bottom: 6px;
}

.stm-staff-card__name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 6px;
    color: #1d2327;
}

.stm-staff-card__detail {
    font-size: 0.82em;
    color: #555;
    margin-top: 3px;
    word-break: break-word;
}

.stm-staff-card__detail a {
    color: inherit;
    text-decoration: none;
}

.stm-staff-card__detail a:hover {
    text-decoration: underline;
}

/* ── Calendar table ─────────────────────────────────── */
.stm-no-games { color: #777; font-style: italic; }

.stm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stm-calendar-table {
    font-size: 0.9em;
}

.stm-calendar-table th,
.stm-calendar-table td {
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Column widths ──────────────────────────────────── */
.stm-calendar-table .col-type  { max-width: 120px; white-space: normal; }
.stm-calendar-table .col-date  { width: 90px; text-align: left !important; }
.stm-calendar-table .col-time  { width: 50px; }
.stm-calendar-table .col-home  { text-align: center !important; }
.stm-calendar-table .col-away  { text-align: center !important; }
.stm-calendar-table .col-score {
    width: 65px;
    text-align: center !important;
    font-weight: 700;
}

/* Padding for all cells including header */
.stm-calendar-table th,
.stm-calendar-table td {
    padding: 10px 12px !important;
}

/* ── DataTables layout ──────────────────────────────── */
.stm-dt-top {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
}
.stm-dt-top .dt-search {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stm-dt-top .dt-search label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}
.stm-dt-top .dt-search input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.9em;
}

/* ── Inline team logo (inside Thuis/Uit cell) ───────── */
.stm-logo-inline {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0;
}

.stm-no-logo {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #e8e8e8;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.stm-dt-info {
    margin-top: 6px;
    font-size: 0.82em;
    color: #888;
    text-align: right;
}

.stm-last-updated {
    margin: 4px 0 0;
    font-size: 0.82em;
    color: #888;
    text-align: right;
}

/* ── Featured game cards ────────────────────────────── */
.stm-game-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}

.stm-game-card__label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 10px;
}

.stm-game-card__date {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-bottom: 14px;
}

.stm-game-card__time {
    margin-left: 6px;
    font-weight: 600;
    color: #1d2327;
}

.stm-game-card__matchup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stm-game-card__team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stm-game-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.stm-game-card__team-name {
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.3;
}

.stm-game-card__score {
    font-size: 1.5em;
    font-weight: 700;
    color: #1d2327;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

.stm-game-card__type {
    font-size: 0.78em;
    color: #999;
    text-align: center;
}

.stm-game-card__empty {
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
    margin: 0;
}

/* ── Highlighted rows in the full table ─────────────── */
.stm-calendar-table .stm-row--last {
    background: #fff8e1 !important;
}

.stm-calendar-table .stm-row--next {
    background: #e8f5e9 !important;
}

/* ── Responsive table ───────────────────────────────── */
@media ( max-width: 720px ) {
    .stm-table-wrap        { display: none; }
    .stm-dt-top            { display: none; }
    .stm-dt-info           { display: none; }
    .stm-last-updated      { display: none; }
}

/* ── Rankings table ─────────────────────────────────── */
.stm-rankings__series {
    font-size: 1em;
    margin: 16px 0 8px;
    color: #555;
}

.stm-rankings-table {
    font-size: 0.9em;
}

.stm-rankings-table th,
.stm-rankings-table td {
    padding: 7px 10px !important;
    text-align: center;
}

.stm-rankings-table td:nth-child(2),
.stm-rankings-table th:nth-child(2) {
    text-align: left;
}

.stm-no-data {
    color: #888;
    font-style: italic;
}
