/* ===== FIXTURES PAGE STYLES ===== */

/* Fixtures Hero Section */
.fixtures-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2530 100%);
}

.fixtures-hero .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1556056504-5c7696c4c28?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.fixtures-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.8) 100%);
}

/* Season Overview */
.season-overview {
    background: white;
}

.season-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.stat-content .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.next-match-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.match-header h4 {
    margin: 0;
    font-weight: 700;
}

.match-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.team-logo.opponent {
    background: rgba(255, 255, 255, 0.1);
}

.team-name {
    font-weight: 600;
    text-align: center;
}

.vs {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 1rem;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Matches Navigation */
.matches-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Matches Section */
.matches-section {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.match-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.match-card.win {
    border-left: 4px solid #28a745;
}

.match-card.loss {
    border-left: 4px solid #dc3545;
}

.match-card.draw {
    border-left: 4px solid #ffc107;
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 10px;
    margin-right: 1.5rem;
    min-width: 70px;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.match-content {
    flex: 1;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.team.home-team {
    justify-content: flex-start;
}

.team.away-team {
    justify-content: flex-end;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.team-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.team-logo.opponent {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.team-name {
    font-weight: 600;
    color: var(--text-dark);
}

.team-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    min-width: 30px;
    text-align: center;
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0 1rem;
}

.match-time {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.match-result {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-result.win {
    background: #d4edda;
    color: #155724;
}

.match-result.loss {
    background: #f8d7da;
    color: #721c24;
}

.match-result.draw {
    background: #fff3cd;
    color: #856404;
}

.match-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.match-details .detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.match-highlights {
    margin-top: 1rem;
}

.highlights-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.highlights-link:hover {
    color: var(--accent-color);
}

.match-actions {
    margin-left: 1rem;
}

.match-result-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-result-badge.win {
    background: #d4edda;
    color: #155724;
}

.match-result-badge.loss {
    background: #f8d7da;
    color: #721c24;
}

.match-result-badge.draw {
    background: #fff3cd;
    color: #856404;
}

/* Lineup Section */
.lineup-section {
    background: white;
}

.formation-section {
    margin-bottom: 3rem;
}

.formation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.formation-name {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pitch-container {
    background: #2e8b57;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.football-pitch {
    position: relative;
    height: 500px;
    background: #2e8b57;
    border: 2px solid white;
    border-radius: 10px;
}

/* Pitch markings */
.football-pitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
}

.football-pitch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.player-position {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.player-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.player-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.player-name {
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    line-height: 1;
}

.player-pos {
    font-size: 0.6rem;
    opacity: 0.8;
    display: block;
    line-height: 1;
}

/* Position players on pitch */
.gk { top: 10%; left: 50%; transform: translateX(-50%); }
.def.rb { top: 30%; left: 15%; }
.def.cb { top: 30%; left: 40%; }
.def.cb + .def.cb { left: 60%; }
.def.lb { top: 30%; left: 85%; }
.mid.cm { top: 50%; left: 30%; }
.mid.cm + .mid.cm { left: 50%; }
.mid.cam { top: 50%; left: 70%; }
.fw.rw { top: 70%; left: 20%; }
.fw.st { top: 70%; left: 50%; transform: translateX(-50%); }
.fw.lw { top: 70%; left: 80%; }

.substitutes-section {
    margin-top: 3rem;
}

.substitutes-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.substitutes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.substitute-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.player-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.player-details {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.player-position {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Team Stats */
.team-stats .stat-card {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
}

.team-stats .stat-icon {
    align-self: center;
}

.team-stats .stat-number {
    font-size: 2.2rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .season-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .match-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .match-date {
        margin-right: 0;
    }
    
    .match-actions {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team {
        flex-direction: row;
        justify-content: center !important;
    }
    
    .pitch-container {
        padding: 1rem;
    }
    
    .football-pitch {
        height: 400px;
    }
    
    .player-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .player-info {
        padding: 0.2rem 0.4rem;
    }
    
    .player-name {
        font-size: 0.6rem;
    }
    
    .player-pos {
        font-size: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .season-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .match-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .substitutes-grid {
        grid-template-columns: 1fr;
    }
    
    .football-pitch {
        height: 300px;
    }
    
    .player-circle {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .player-info {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .fixtures-hero {
        min-height: 40vh;
    }
    
    .next-match-card {
        padding: 1.5rem;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
}