/*
 * ====================================================================
 * MATCHES OVERVIEW STYLES (matches_overview_bs5.twig)
 * ====================================================================
 * Styles für die Spieltag-Übersicht Seite
 */

/* Content Wrapper */
.matches-overview-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Selection Controls */
.selection-controls {
    background: var(--fm-bg-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selection-controls .form-label {
    font-weight: 600;
    color: var(--fm-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.selection-controls .form-label i {
    color: var(--fm-gold);
}

.form-select {
    border: 2px solid var(--fm-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: var(--fm-blue);
    box-shadow: 0 0 0 0.25rem rgba(66, 139, 202, 0.25);
}

/* Section Titles */
.section-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--fm-gold);
}

/* Matches Section */
.matches-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.match-card {
    padding: 1.5rem;
    border-bottom: 1px solid var(--fm-border);
    transition: background-color 0.3s ease;
}

.match-card:last-child {
    border-bottom: none;
}

.match-card:hover {
    background-color: var(--fm-bg-light);
}

/* Match Date and Time */
.match-date,
.match-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--fm-text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.match-date i,
.match-time i {
    color: var(--fm-gold);
    font-size: 0.8rem;
}

.match-link .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Match Teams */
.match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0; /* Prevents text overflow issues */
}

.team-info.home {
    justify-content: flex-end;
    text-align: right;
}

.team-info.away {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-weight: 500;
    color: var(--fm-text-primary);
    font-size: 0.95rem;
    word-break: break-word;
}

.vs-divider {
    flex-shrink: 0;
    padding: 0.5rem;
    background: var(--fm-bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fm-text-secondary);
    min-width: 40px;
    text-align: center;
}

/* Match Score */
.match-score {
    text-align: center;
}

.final-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text-primary);
    margin-bottom: 0.25rem;
}

.halftime-score {
    font-size: 0.9rem;
    color: var(--fm-text-secondary);
    margin-bottom: 0.5rem;
}

.score-status .badge,
.no-score .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Matchday Navigation */
.matchday-navigation {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.matchday-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Matches */
.no-matches {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

/* Alert Styling */
.alert-info {
    background-color: rgba(66, 139, 202, 0.1);
    border-color: var(--fm-blue);
    color: var(--fm-text-primary);
}

.alert-info .alert-heading {
    color: var(--fm-blue);
    font-weight: 600;
}

/* Button Styling */
.btn-outline-primary {
    border-color: var(--fm-blue);
    color: var(--fm-blue);
}

.btn-outline-primary:hover {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--fm-text-secondary);
    color: var(--fm-text-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--fm-text-secondary);
    border-color: var(--fm-text-secondary);
    color: white;
}

/* Responsive Anpassungen */
@media (max-width: 1199px) {
    .matches-overview-content-wrapper {
        padding: 1.5rem 0.75rem;
    }
    
    .selection-controls {
        padding: 1.5rem;
    }
}

@media (max-width: 991px) {
    .matches-overview-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .match-card {
        padding: 1.25rem;
    }
    
    .team-logo {
        width: 32px;
        height: 32px;
    }
    
    .final-score {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .matches-overview-content-wrapper {
        padding: 1rem 0.25rem;
    }
    
    .selection-controls {
        padding: 1rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .team-info {
        justify-content: center;
        text-align: center;
    }
    
    .vs-divider {
        order: 1;
    }
    
    .team-info.away {
        order: 2;
    }
    
    .match-date,
    .match-time {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .match-score {
        margin-top: 1rem;
    }
    
    .matchday-navigation .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .matches-overview-content-wrapper {
        padding: 0.75rem 0.125rem;
    }
    
    .selection-controls {
        border-radius: 8px;
        padding: 0.75rem;
    }
    
    .match-card {
        padding: 1rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .final-score {
        font-size: 1.1rem;
    }
    
    .halftime-score {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .matchday-navigation {
        padding: 1rem;
    }
    
    .matchday-navigation .row > div {
        margin-bottom: 0.5rem;
    }
    
    .matchday-navigation .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Print Styles */
@media print {
    .matches-overview-content-wrapper {
        max-width: none;
        padding: 0;
    }
    
    .selection-controls,
    .matchday-navigation {
        background: none;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .match-card {
        break-inside: avoid;
        border-bottom: 1px solid #ccc;
    }
    
    .match-card:hover {
        background-color: transparent;
    }
    
    .alert,
    .btn {
        display: none;
    }
    
    .no-matches {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}