/* AI assisted development */
/* Game Stats Styles for Stoney Creek Sabres */

/* ========================================
   SCOREBOARD STYLES
   ======================================== */

.game-scoreboard {
    background: var(--medium-gray);
    border: 3px solid var(--team-primary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.team-logo-scoreboard {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.opponent-logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--dark-gray);
    border-radius: 50%;
    color: var(--team-primary);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.score {
    display: inline-block;
    min-width: 80px;
}

.sabres-score {
    color: var(--team-primary);
}

.opponent-score {
    color: var(--text-primary);
}

.score-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.game-info-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dark-gray);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.game-info-badge i {
    color: var(--team-primary);
}

/* ========================================
   SHOTS TABLE
   ======================================== */

.shots-table th,
.shots-table td {
    vertical-align: middle;
}

.shots-table th:first-child,
.shots-table td:first-child {
    width: 40%;
}

/* ========================================
   GOALIE STATS CARDS
   ======================================== */

.goalie-stat-card {
    border: 2px solid var(--team-primary);
}

.goalie-stat-card .card-header {
    border-bottom: 2px solid var(--team-primary);
}

.goalie-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.goalie-stat-item {
    padding: 1rem;
    background: var(--dark-gray);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.goalie-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--team-primary);
    line-height: 1.2;
}

.goalie-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.save-percentage-display .progress {
    background: var(--dark-gray);
    border-radius: 20px;
}

.save-percentage-display .progress-bar {
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========================================
   GAME LIST STYLES
   ======================================== */

.game-row {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.game-row:hover {
    background-color: rgba(255, 182, 31, 0.1) !important;
    transform: translateX(5px);
}

.table-highlight {
    background-color: rgba(255, 182, 31, 0.08) !important;
}

.table-highlight td:first-child {
    border-left: 3px solid var(--team-primary);
}

/* ========================================
   PLAYER STATS TABLE
   ======================================== */

.player-stats-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-stats-table .badge {
    font-weight: 500;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title.h4 {
    color: var(--team-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title.h4 i {
    font-size: 1.25rem;
}

/* ========================================
   STATS TABS
   ======================================== */

.stats-nav-tabs {
    border-bottom: 2px solid var(--team-primary);
    margin-bottom: 2rem;
}

.stats-nav-tabs .nav-link {
    color: var(--text-primary);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stats-nav-tabs .nav-link:hover {
    color: var(--team-primary);
    border-bottom-color: var(--team-primary);
}

.stats-nav-tabs .nav-link.active {
    color: var(--team-primary);
    background: transparent;
    border-bottom-color: var(--team-primary);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .game-scoreboard {
        padding: 1rem;
    }

    .score-display {
        font-size: 3rem;
    }

    .score {
        min-width: 50px;
    }

    .team-logo-scoreboard,
    .opponent-logo-placeholder {
        width: 60px;
        height: 60px;
    }

    .team-name {
        font-size: 1rem;
    }

    .goalie-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goalie-stat-value {
        font-size: 1.5rem;
    }

    .game-info-badge {
        display: block;
        margin: 0.5rem auto;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .score-display {
        font-size: 2.5rem;
    }

    .goalie-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .goalie-stat-item {
        padding: 0.75rem 0.5rem;
    }

    .goalie-stat-value {
        font-size: 1.25rem;
    }

    .goalie-stat-label {
        font-size: 0.65rem;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.stats-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
}

.stats-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--team-primary);
}

/* ========================================
   LEADERBOARD HIGHLIGHTS
   ======================================== */

.leader-badge {
    position: relative;
}

.leader-badge::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--team-primary);
    border-radius: 5px;
}

.top-scorer {
    background: linear-gradient(90deg, rgba(255, 182, 31, 0.15) 0%, transparent 100%);
}

/* ========================================
   GAME NOTES
   ======================================== */

#gameNotesContent {
    line-height: 1.8;
    color: var(--text-primary);
}

#gameNotesContent p:last-child {
    margin-bottom: 0;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.no-data-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-data-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--team-primary);
    opacity: 0.5;
}

.no-data-message h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
