﻿/* ═══════════════════════════════════════════════════════════
   sport.css — Sport Home Page Styles
   ═══════════════════════════════════════════════════════════ */

body {
    background-color: #f0f2f5 !important;
}

.t-display {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
}

.t-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

.t-body {
    font-family: 'Barlow', sans-serif;
}

/* ── Score Ticker ────────────────────────────────────────── */
.ticker-bar {
    background: #111118;
    border-bottom: 1px solid #1f1f2e;
    overflow: hidden;
}

.ticker-date-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px;
    background: #0d0d14;
    border-bottom: 1px solid #1f1f2e;
}

.ticker-date-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

    .ticker-date-btn:hover {
        color: white;
    }

.ticker-date-label {
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 1.5px;
}

.ticker-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .ticker-inner::-webkit-scrollbar {
        display: none;
    }

.ticker-game {
    min-width: 140px;
    padding: 8px 14px;
    border-right: 1px solid #1f1f2e;
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: block;
}

    .ticker-game:hover {
        background: #1a1a28;
    }

.ticker-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: #9ca3af;
}

    .ticker-status.final {
        color: #9ca3af;
    }

    .ticker-status.live {
        color: #ef4444;
    }

    .ticker-status.upcoming {
        color: #60a5fa;
    }

.ticker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 1px 0;
}

.ticker-team-name {
    color: #d1d5db;
}

.ticker-score {
    font-weight: 600;
    color: white;
}

    .ticker-score.winner {
        color: #4ade80;
    }

.ticker-no-games {
    color: #6b7280;
    font-size: 13px;
    padding: 16px;
    text-align: center;
}

/* ── Hero Header ─────────────────────────────────────────── */
.sport-hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 32px 0 0;
}

.sport-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
}

.sport-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero-sport-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-sport-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
}

    .hero-sport-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-section-name {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-sport-name {
    font-size: 28px;
    line-height: 1.1;
}

.hero-schedule {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    transition: all 0.15s;
}

    .hero-btn:hover {
        background: rgba(255,255,255,0.15);
        color: white;
    }

    .hero-btn.accent {
        background: #ef4444;
        border-color: #ef4444;
        color: white;
    }

        .hero-btn.accent:hover {
            background: #dc2626;
        }

/* Quick stats bar */
.quick-bar {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}

.quick-stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

    .quick-stat:last-child {
        border-right: none;
    }

.quick-val {
    font-size: 22px;
    line-height: 1;
}

.quick-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Main Content ────────────────────────────────────────── */
.sport-main {
    background: #f0f2f5;
    padding: 20px 0;
}

.sport-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Cards ───────────────────────────────────────── */
.s-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    overflow: hidden;
}

.s-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.s-title {
    font-size: 17px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-header-link {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-decoration: none;
}

    .s-header-link:hover {
        color: white;
    }

.s-body {
    padding: 16px 20px;
}

/* ── Notification Bar ────────────────────────────────────── */
.notify-bar {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e40af;
}

.notify-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 12px;
}

    .notify-link:hover {
        text-decoration: underline;
    }

/* ── Stat Leaders ────────────────────────────────────────── */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.leader-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

    .leader-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ef4444, #f97316);
    }

.leader-cat {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leader-val {
    font-size: 32px;
    line-height: 1;
    color: #111827;
}

.leader-name {
    font-size: 13px;
    color: #2563eb;
    margin-top: 6px;
    font-weight: 500;
    text-decoration: none;
}

    .leader-name:hover {
        text-decoration: underline;
    }

.leader-team {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* ── Standings ───────────────────────────────────────────── */
.class-section {
    border-top: 1px solid #e5e7eb;
}

    .class-section:first-child {
        border-top: none;
    }

.class-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.class-name {
    font-size: 15px;
    color: #111827;
}

.class-bracket-btn {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
}

    .class-bracket-btn:hover {
        background: #dbeafe;
    }

.standings-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .standings-tbl thead th {
        padding: 8px 10px;
        font-weight: 600;
        font-size: 10px;
        color: #6b7280;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        border-bottom: 2px solid #dc2626;
        text-align: center;
        white-space: nowrap;
        background: white;
    }

        .standings-tbl thead th.left {
            text-align: left;
        }

    .standings-tbl tbody tr {
        border-bottom: 1px solid #f3f4f6;
        transition: background 0.1s;
    }

        .standings-tbl tbody tr:hover {
            background: #f9fafb;
        }

        .standings-tbl tbody tr:nth-child(even) {
            background: #fefdf5;
        }

            .standings-tbl tbody tr:nth-child(even):hover {
                background: #fef3c7;
            }

    .standings-tbl tbody td {
        padding: 9px 10px;
        text-align: center;
        color: #374151;
    }

        .standings-tbl tbody td.left {
            text-align: left;
        }

        .standings-tbl tbody td a {
            color: #1d4ed8;
            text-decoration: none;
            font-weight: 500;
        }

            .standings-tbl tbody td a:hover {
                text-decoration: underline;
            }

.diff-pos {
    color: #16a34a;
}

.diff-neg {
    color: #dc2626;
}

.rank-badge {
    display: inline-block;
    min-width: 22px;
    padding: 1px 5px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.rank-1 {
    background: #fef3c7;
    color: #92400e;
}

.standings-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    padding: 8px 16px 12px;
}

.tiebreaker-mark {
    font-size: 9px;
    vertical-align: super;
    color: #dc2626;
}

/* ── Articles ────────────────────────────────────────────── */
.article-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0 20px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.article-tab {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

    .article-tab.active {
        background: #1a1a2e;
        color: white;
        border-color: #1a1a2e;
    }

.article-body {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 8px 0;
    }

/* ── Golf Leaderboard ────────────────────────────────────── */
.golf-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .golf-tbl thead th {
        padding: 8px 10px;
        font-weight: 600;
        font-size: 10px;
        color: #6b7280;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        border-bottom: 2px solid #dc2626;
        text-align: center;
        white-space: nowrap;
        background: white;
    }

        .golf-tbl thead th.left {
            text-align: left;
        }

    .golf-tbl tbody tr {
        border-bottom: 1px solid #f3f4f6;
    }

        .golf-tbl tbody tr:nth-child(even) {
            background: #fefdf5;
        }

    .golf-tbl tbody td {
        padding: 8px 10px;
        text-align: center;
        color: #374151;
    }

        .golf-tbl tbody td.left {
            text-align: left;
        }

        .golf-tbl tbody td a {
            color: #1d4ed8;
            text-decoration: none;
            font-weight: 500;
        }

/* ── Ski Schedule ────────────────────────────────────────── */
.ski-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .ski-tbl thead th {
        padding: 8px 10px;
        font-weight: 600;
        font-size: 10px;
        color: #6b7280;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        border-bottom: 2px solid #dc2626;
        text-align: left;
        white-space: nowrap;
        background: white;
    }

        .ski-tbl thead th.center {
            text-align: center;
        }

    .ski-tbl tbody tr {
        border-bottom: 1px solid #f3f4f6;
    }

        .ski-tbl tbody tr:nth-child(even) {
            background: #fefdf5;
        }

    .ski-tbl tbody td {
        padding: 8px 10px;
        color: #374151;
    }

        .ski-tbl tbody td.center {
            text-align: center;
        }

    .ski-tbl a {
        color: #2563eb;
        text-decoration: none;
    }

        .ski-tbl a:hover {
            text-decoration: underline;
        }

.ski-note {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    padding: 8px 0 0;
}

/* Ski teams grid */
.ski-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.ski-team-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
}

    .ski-team-card:hover {
        border-color: #9ca3af;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .ski-team-card img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        margin-bottom: 6px;
    }

    .ski-team-card .ski-team-name {
        font-size: 12px;
        color: #374151;
        font-weight: 500;
    }

/* ── Tennis Brackets ─────────────────────────────────────── */
.bracket-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bracket-link-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .bracket-link-btn:hover {
        background: #dbeafe;
    }

/* ── Loading & Error ─────────────────────────────────────── */
.sport-loading {
    text-align: center;
    padding: 80px 20px;
}

.sport-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sport-error {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-btn {
        flex: 1;
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
    }

    .hero-sport-name {
        font-size: 22px;
    }

    .quick-val {
        font-size: 16px;
    }

    .quick-label {
        font-size: 9px;
    }

    .sport-inner {
        padding: 0 12px;
    }

    .sport-hero-content {
        padding: 0 16px;
    }

    .s-header {
        padding: 10px 14px;
    }

    .s-body {
        padding: 12px 14px;
    }

    .leader-grid {
        grid-template-columns: 1fr 1fr;
    }

    .leader-val {
        font-size: 24px;
    }

    .standings-tbl .col-hide-mobile {
        display: none;
    }

    .standings-tbl {
        font-size: 12px;
    }

        .standings-tbl thead th, .standings-tbl tbody td {
            padding: 7px 6px;
        }

    .article-tabs {
        padding: 0 14px 10px;
    }

    .golf-tbl .col-hide-mobile {
        display: none;
    }

    .ski-tbl .col-hide-mobile {
        display: none;
    }

    .ski-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .notify-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
