/* archive-styles.css - Styles for the redesigned archive page */

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #2d3a50;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --visitor-color: #ef4444;
    --home-color: #3b82f6;
    --success: #10b981;
    --live-color: #ef4444;
    --border-subtle: rgba(148, 163, 184, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.top-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Search */
.search-section {
    margin-bottom: 2.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
    border-radius: 50px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
}

.search-clear.visible {
    display: block;
}

/* Live Game Card */
.live-game-section {
    margin-bottom: 2.5rem;
}

.live-game-section.hidden {
    display: none;
}

.live-game-card {
    background: linear-gradient(145deg, #1a2744, #0f172a);
    border: 2px solid var(--live-color);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    animation: livePulse 2s ease-in-out infinite;
}

.live-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.3);
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--live-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-period-clock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.live-period {
    font-weight: 700;
    color: var(--accent);
}

.live-clock {
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
}

.live-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.live-team {
    flex: 1;
    text-align: center;
}

.live-team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.live-team-score {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.live-team-score.leading {
    color: var(--accent);
}

.live-team-score.trailing {
    color: var(--text-muted);
}

.live-vs {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.live-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-badge {
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.game-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Game Card */
.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(245, 158, 11, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-badges {
    display: flex;
    gap: 0.4rem;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-final {
    background: var(--success);
    color: #000;
}

.badge-ot {
    background: #8b5cf6;
    color: white;
}

.badge-close {
    background: #ef4444;
    color: white;
}

.card-matchup {
    margin-bottom: 1rem;
}

.team-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.team-line:first-child {
    border-bottom: 1px solid var(--border-subtle);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-name-card {
    font-weight: 600;
    font-size: 1.05rem;
}

.winner-indicator {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.team-score-card {
    font-size: 1.5rem;
    font-weight: 800;
}

.team-score-card.winner {
    color: var(--accent);
}

.team-score-card.loser {
    color: var(--text-muted);
}

.card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-scorer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.top-scorer-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.top-scorer-pts {
    color: var(--accent);
    font-weight: 700;
}

/* Game Flow Stats */
.game-flow {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.flow-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.flow-label {
    color: var(--text-muted);
    font-weight: 400;
}

.largest-lead {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Results Info */
.results-info {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.results-info a {
    color: var(--accent);
    margin-left: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--accent);
}

/* Print Button */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.print-btn:hover {
    background: var(--accent-hover);
}

/* Scoreboard */
.scoreboard {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.scoreboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--visitor-color), var(--home-color));
}

.final-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--success);
    color: #000;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-date-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.team-row:last-child {
    border-bottom: none;
}

.team-details {
    flex: 1;
}

.team-name-large {
    font-size: 1.8rem;
    font-weight: 800;
}

.team-name-large.vis, h3.vis { color: var(--visitor-color); }
.team-name-large.home, h3.home { color: var(--home-color); }

.line-score {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.period {
    text-align: center;
    min-width: 45px;
}

.period-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.period-score {
    font-size: 1.2rem;
    font-weight: 600;
}

.period.ot .period-label {
    color: var(--accent);
}

.team-score-large {
    font-size: 4rem;
    font-weight: 900;
    min-width: 120px;
    text-align: right;
}

/* Game Summary Box */
.game-summary-box {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.game-summary-box::before {
    content: '📝';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.5rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 50%;
}

.game-summary-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

/* Stats Section */
.stats-section {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-subtle);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 0.8rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.team-stats-table .team-name {
    text-align: left;
    font-weight: 700;
}

.team-stats-table .team-name.vis { color: var(--visitor-color); }
.team-stats-table .team-name.home { color: var(--home-color); }

.vis-row { background: rgba(239, 68, 68, 0.08); }
.home-row { background: rgba(59, 130, 246, 0.08); }

.pct {
    color: var(--accent);
    font-weight: 600;
}

/* Special Stats */
.special-stats {
    margin: 2rem 0;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-special {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.team-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-subtle);
}

.vis-header { color: var(--visitor-color); }
.home-header { color: var(--home-color); }

.special-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.special-item:last-child {
    border-bottom: none;
}

.special-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Player Tables */
.players {
    margin: 2rem 0;
}

.players h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.player-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.team-total {
    background: rgba(255,255,255,0.05);
    font-weight: 700;
}

.team-note td {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: left !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .menu-toggle { display: block; }
    
    .page-header h1 { font-size: 1.8rem; }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .live-team-score {
        font-size: 2.2rem;
    }
    
    .team-score-large {
        font-size: 2.5rem;
        min-width: 80px;
    }
    
    .team-name-large {
        font-size: 1.3rem;
    }
    
    .line-score {
        gap: 0.5rem;
    }
    
    .period {
        min-width: 35px;
    }
    
    .scoreboard {
        padding: 1.25rem;
    }
    
    .final-badge {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

@media print {
    .top-nav, .search-section, .back-button, .print-btn, .live-game-section { display: none !important; }
    body { background: white; color: black; }
    .scoreboard { box-shadow: none; }
}

/* =============================================================================
   FOOTER & LEGAL LINKS
   ============================================================================= */

.site-footer {
    margin-top: 60px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid var(--border-subtle, #333);
    color: #888;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    margin-top: 10px !important;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent, #f59e0b);
    text-decoration: underline;
}

.footer-divider {
    color: #555;
    margin: 0 12px;
}

/* =============================================================================
   COOKIE NOTICE BANNER
   ============================================================================= */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    border-top: 1px solid #333;
    padding: 0;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent, #f59e0b);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--accent, #f59e0b);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cookie-accept-btn:hover {
    background: #d97706;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .cookie-accept-btn {
        width: 100%;
    }
}

@media print {
    .site-footer, .cookie-notice { display: none !important; }
}

/* =============================================================================
   PLAYER SEARCH STYLES
   ============================================================================= */

/* Search Tabs */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tab:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-primary, #fff);
}

.search-tab.active {
    background: var(--accent, #f59e0b);
    color: #000;
    font-weight: 600;
}

.search-tab .tab-icon {
    font-size: 1rem;
}

/* Search Content Tabs */
.search-content {
    display: none;
}

.search-content.active {
    display: block;
}

/* Player Autocomplete */
.player-autocomplete {
    position: relative;
    background: var(--bg-card, #1e293b);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.player-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.player-suggestion:last-child {
    border-bottom: none;
}

.player-suggestion:hover {
    background: rgba(148, 163, 184, 0.1);
}

.player-suggestion-name {
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.25rem;
}

.player-suggestion-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted, #64748b);
}

/* Player Results Section */
.player-results {
    margin-top: 1.5rem;
}

.player-results-header {
    margin-bottom: 1rem;
}

.back-btn {
    background: rgba(148, 163, 184, 0.1);
    border: none;
    color: var(--text-secondary, #94a3b8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-primary, #fff);
}

/* Player Profile Card */
.player-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card, #1e293b);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.player-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #f59e0b), #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem 0;
}

.player-teams {
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

/* Career Stats */
.career-stats {
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.career-stat-header {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
}

.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.career-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.career-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.career-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career-totals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

/* Player Games List */
.player-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-games-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}

.player-games-header span {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

.player-games-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
}

.player-games-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.player-games-table th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.player-games-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: var(--text-secondary, #94a3b8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.player-game-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.player-game-row:hover {
    background: rgba(148, 163, 184, 0.1);
}

.player-game-row.win {
    border-left: 3px solid #22c55e;
}

.player-game-row.loss {
    border-left: 3px solid #ef4444;
}

.player-games-table .game-date {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.player-games-table .game-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.result-badge.win {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-badge.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.player-games-table .highlight {
    font-weight: 700;
    color: var(--text-primary, #fff);
}

/* Responsive */
@media (max-width: 768px) {
    .career-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .player-card {
        flex-direction: column;
        text-align: center;
    }
    
    .player-games-table {
        font-size: 0.75rem;
    }
    
    .player-games-table th,
    .player-games-table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .search-tabs {
        width: 100%;
    }
    
    .search-tab {
        flex: 1;
        justify-content: center;
    }
    
    .career-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .career-totals {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* =============================================================================
   ENHANCED PLAYER PROFILE STYLES
   ============================================================================= */

/* Section Subheaders */
.section-subheader {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Milestones */
.milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.milestone-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.milestone-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Career Highs */
.career-highs {
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.highs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.high-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.high-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent, #f59e0b);
}

.high-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent, #f59e0b);
    line-height: 1;
}

.high-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.25rem 0;
}

.high-game {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shooting Breakdown */
.shooting-breakdown {
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.shooting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shooting-zone {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.zone-header {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.zone-pct {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.zone-detail {
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
}

/* Player Shot Chart (mini version) */
.player-shot-chart-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.player-shot-chart {
    text-align: center;
}

.shot-chart-mini-header {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.5rem;
}

.shot-chart-legend-mini {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.make {
    background: #22c55e;
}

.legend-dot.miss {
    background: #ef4444;
}

/* Game Log Filters */
.game-log-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.filter-group select {
    background: var(--bg-card, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent, #f59e0b);
}

.no-games {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #64748b);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .shooting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-log-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-group select {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .highs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .high-value {
        font-size: 1.5rem;
    }
    
    .milestones {
        justify-content: center;
    }
}
