/* Matchday Pages Styles */

/* Common Styles */
.matchday-container {
    padding: 2rem 0;
}

/* Match Cards */
.match-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.match-time {
    color: #dc3545;
    font-weight: 600;
}

.match-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.status-live {
    background: #fbe9e7;
    color: #d84315;
    animation: pulse 2s infinite;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Teams Section */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.team {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.team-score {
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
}

.vs-badge {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 20px;
    margin: 0 1rem;
    font-weight: 500;
    color: #666;
}

/* Countdown Timer */
.countdown {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.countdown-title {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.time-unit {
    text-align: center;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    min-width: 50px;
    display: inline-block;
}

.time-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Team Selection */
.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.position-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.position-header {
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.player-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-option:hover {
    border-color: #1a237e;
    background: #f5f5f5;
}

.player-option.selected {
    border-color: #1a237e;
    background: #e8eaf6;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.player-stats {
    font-size: 0.875rem;
    color: #666;
}

.vote-count {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: #333;
}

/* Live Match Stats */
.match-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teams-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-badge {
        margin: 1rem 0;
    }
    
    .team-logo {
        width: 48px;
        height: 48px;
    }
    
    .team-score {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .time-value {
        font-size: 1.25rem;
        min-width: 40px;
    }
    
    .match-stats {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
