/* Scores Page Specific Styles */

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-right: 10px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.scores-container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.no-scores {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-scores i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-scores h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-scores p {
    color: var(--text-secondary);
    font-size: 16px;
}

.scores-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.league-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.league-title {
    padding: 20px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-gray);
    background: linear-gradient(to bottom, #fafafa, #ffffff);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.score-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.score-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.score-card.completed {
    opacity: 1;
}

.score-card.in-progress {
    border-left: 4px solid #4caf50;
    padding-left: 20px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-gray);
}

.game-time {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.game-status {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status.final {
    background-color: #e0e0e0;
    color: #666;
}

.game-status.live {
    background-color: #4caf50;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.teams-scores {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.team-row.winner {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    font-weight: 600;
    border: 2px solid #4caf50;
}

.team-row.winner .team-name {
    font-weight: 700;
}

.team-row.winner .score {
    color: #2e7d32;
    font-weight: 800;
}

.team-name {
    font-size: 18px;
    color: var(--text-primary);
    flex: 1;
}

.score {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 60px;
    text-align: right;
    letter-spacing: -1px;
}

.score-update {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
    text-align: center;
}

.view-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 6px;
    margin-top: 8px;
}

.view-details-link:hover {
    background-color: var(--hover-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 81, 181, 0.3);
}

.view-details-link i {
    font-size: 18px;
}

/* Date Navigation - CENTERED */
.date-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.date-slider {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.date-option {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.date-option:hover {
    background-color: var(--light-gray);
}

.date-option.active {
    background-color: var(--primary-blue);
    color: white;
}

.date-label {
    font-weight: 600;
    font-size: 16px;
}

.date-value {
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
}

.date-option.no-games {
    opacity: 0.5;
}

.date-game-count {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 2px;
}

.date-option.active .date-game-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .games-list {
        grid-template-columns: 1fr;
    }
    
    .score-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .scores-container {
        padding: 0 15px;
    }
    
    .games-list {
        padding: 15px;
        gap: 15px;
    }
    
    .score-card {
        padding: 20px;
    }
    
    .league-title {
        font-size: 20px;
        padding: 15px;
    }
    
    .team-name {
        font-size: 16px;
    }
    
    .score {
        font-size: 28px;
        min-width: 50px;
    }
    
    .team-row {
        padding: 14px 16px;
    }
    
    .date-slider {
        gap: 10px;
    }
    
    .date-option {
        padding: 8px 15px;
    }
    
    .date-label {
        font-size: 14px;
    }
    
    .date-value {
        font-size: 12px;
    }
}

/* Dark mode support for score cards */
@media (prefers-color-scheme: dark) {
    .score-card {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444;
    }
    
    .team-row {
        background-color: #363636;
    }
    
    .team-row.winner {
        background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        border-color: #4caf50;
    }
    
    .team-row.winner .score {
        color: #a5d6a7;
    }
}

/* Mobile Menu Styles - inherited from styles.css */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav,
    .header-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 0;
    }
    
    .header-nav.active,
    .header-right.active {
        display: flex;
    }
    
    .header-nav .nav-link,
    .header-right .nav-link {
        width: 100%;
        padding: 12px 0;
        border-radius: 0;
        margin-right: 0;
    }
}

/* Footer styles inherited from styles.css */
.footer-copyright {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 15px 20px;
    text-align: center;
    border-top: 1px solid #555;
    font-size: 14px;
    color: #ccc;
}

.footer-disclaimer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    font-size: 11px;
    line-height: 1.6;
    color: #999;
}

.footer-disclaimer p {
    margin-bottom: 12px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}