/* soccer-style.css - Dark Neon Theme with AI Stadium Background */

:root {
    /* Dark Neon Color Palette */
    --primary-neon: #00d4ff;
    /* Cyan brillante */
    --secondary-neon: #00e676;
    /* Verde neón */
    --bg-dark: #0a0a0a;
    /* Negro profundo */
    --bg-card: rgba(20, 30, 40, 0.95);
    /* Card oscuro semi-transparente */
    --bg-header: rgba(15, 25, 35, 0.98);
    /* Header oscuro */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border-neon: #00e676;
    --border-neon-cyan: #00d4ff;
    --premium-color: #FFC107;
}

body {
    background-color: var(--bg-dark);
    background-image: url('../img/soccer_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Overlay oscuro sutil sobre el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.soccer-container {
    padding: 95px 0 10px 0;
    /* Increased top padding for more header space */
    padding-bottom: 80px;
    /* Bottom space for mobile nav */
}

/* Soccer Header - Clean title */
.soccer-header {
    text-align: center;
    padding: 20px 15px;
    margin: 0 10px 15px 10px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.soccer-header h1 {
    font-size: 1.5rem;
    color: var(--primary-neon);
    margin: 0 0 8px 0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.soccer-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 1. Sports Nav - Dark Theme (legacy, can be removed) */
.sports-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    background: var(--bg-card);
    border-radius: 16px;
    margin: 0 10px 15px 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.sport-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sport-link img {
    width: 32px;
    height: 32px;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.3s ease;
}

.sport-link.active {
    color: var(--primary-neon);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-neon);
}

.sport-link.active img {
    filter: grayscale(0%) brightness(1.2);
}

.sport-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 2. Date Slider - Dark Neon */
.date-slider-wrapper {
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-neon) transparent;
}

.date-slider-wrapper::-webkit-scrollbar {
    height: 4px;
}

.date-slider-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-neon);
    border-radius: 10px;
}

.date-slider {
    display: flex;
    gap: 10px;
}

.date-item {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.date-item:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.date-item.active {
    background: linear-gradient(135deg, var(--secondary-neon), var(--primary-neon));
    color: var(--bg-dark);
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    font-weight: 700;
}

.date-day {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.date-number {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 3. League Filters - Dark Neon */
.league-filters-wrapper {
    overflow-x: auto;
    padding: 15px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-neon) transparent;
}

.league-filters-wrapper::-webkit-scrollbar {
    height: 4px;
}

.league-filters-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-neon);
    border-radius: 10px;
}

.league-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.league-filter {
    flex: 0 0 auto;
    padding: 10px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-filter.all-leagues {
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--secondary-neon);
    border-color: var(--secondary-neon);
}

.league-filter img {
    width: 28px;
    height: 28px;
}

.league-filter:hover {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.league-filter.active {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
    background: rgba(0, 230, 118, 0.1);
}

.league-filter.all-leagues.active {
    background: var(--secondary-neon);
    color: var(--bg-dark);
}

/* 4. Matches List - Dark Neon Cards */
.matches-list {
    padding: 0 10px;
}

.league-group {
    margin-bottom: 25px;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--bg-header);
    border-radius: 12px;
    border: 2px solid rgba(0, 230, 118, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.league-header img {
    width: 24px;
    height: 24px;
}

.league-header span {
    font-weight: 700;
    color: var(--secondary-neon);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.match-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.match-card.premium {
    border-color: var(--premium-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.match-info {
    flex-grow: 1;
}

.match-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-row img {
    width: 28px;
    height: 28px;
}

.team-row span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.match-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.details-open-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    padding: 10px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-neon);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.details-open-btn:hover {
    background: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.details-open-btn:hover .details-text,
.details-open-btn:hover .open-text {
    color: var(--bg-dark);
}

.details-text {
    color: var(--primary-neon);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.open-text {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
}

.star-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.star-icon.premium {
    color: var(--premium-color);
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

.loader,
.no-matches {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin: 20px 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

/* Mejoras para mejor contraste */
.match-card .score {
    color: var(--primary-neon);
    font-weight: 800;
}

/* Animación de carga */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loader {
    animation: pulse 2s ease-in-out infinite;
}