/* Custom Fixture Card Enhancements */

/* Ensure proper container spacing */
.space-top .container .row.gy-4 {
    gap: 20px 0;
}

/* Team initials color variations - using the Team model's color system */
.team-initials-red {
    background: #FF6B6B !important;
    color: #FFFFFF !important;
}

.team-initials-teal {
    background: #4ECDC4 !important;
    color: #FFFFFF !important;
}

.team-initials-blue {
    background: #45B7D1 !important;
    color: #FFFFFF !important;
}

.team-initials-green {
    background: #96CEB4 !important;
    color: #FFFFFF !important;
}

.team-initials-yellow {
    background: #FFEAA7 !important;
    color: #2D3436 !important;
}

.team-initials-plum {
    background: #DDA0DD !important;
    color: #FFFFFF !important;
}

.team-initials-mint {
    background: #98D8C8 !important;
    color: #2D3436 !important;
}

.team-initials-light-yellow {
    background: #F7DC6F !important;
    color: #2D3436 !important;
}

.team-initials-light-purple {
    background: #BB8FCE !important;
    color: #FFFFFF !important;
}

.team-initials-light-blue {
    background: #85C1E9 !important;
    color: #FFFFFF !important;
}

/* Enhanced glassmorphism effect */
.modern-glassmorphism-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-glassmorphism-card:hover::before {
    opacity: 1;
}

/* Fix for any layout issues */
.tournament-sec-5 .row.gy-4 {
    display: flex;
    flex-wrap: wrap;
}

.tournament-sec-5 .row.gy-4 > div {
    display: flex;
    align-items: stretch;
}

.tournament-sec-5 .row.gy-4 .modern-glassmorphism-card {
    width: 100%;
    height: 100%;
}

/* Mobile-first responsive improvements */
@media (max-width: 575px) {
    .fixture-teams-container {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .vs-section {
        order: 2 !important;
        margin: 10px 0 !important;
    }
    
    .team-section {
        order: 1 !important;
    }
    
    .team-section.away-team {
        order: 3 !important;
    }
}

/* Ensure consistent card heights */
.filter-active .modern-glassmorphism-card,
.row.gy-4 .modern-glassmorphism-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .filter-active .modern-glassmorphism-card,
    .row.gy-4 .modern-glassmorphism-card {
        min-height: 280px;
    }
}

/* Accessibility improvements */
.team-name a:focus,
.match-details-btn:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.team-initials-logo:hover {
    animation: pulse 1s ease-in-out;
}
