/**
 * DEPORTES PAGE - FLASHSCORE STYLE
 * Modern sports dashboard with LIDOM standings, live matches, and results
 */

/* Override global styles for sports page */
body {
    background: #0f1419 !important;
}

/* Sports Dashboard Container */
.sports-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 40px 0;
}

/* Tab Navigation */
.sports-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.tab-btn i {
    font-size: 18px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Baseball Header Banner */
.baseball-header {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.baseball-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sports Section */
.sports-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.sports-section .section-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.sports-section .section-title i {
    color: #28a745;
    font-size: 24px;
}

/* Live Indicator */
.live-indicator {
    color: #ff4444 !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Match Cards */
.matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    border-color: #28a745;
}

.match-date {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.match-teams .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.team-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.match-vs {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 700;
    padding: 0 10px;
}

/* Standings Table */
.standings-table {
    overflow-x: auto;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.standings-table thead {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.standings-table th {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-table th:first-child {
    text-align: center;
    width: 50px;
}

.standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.standings-table td {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 12px;
    font-size: 14px;
}

.standings-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.team-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.team-row.highlight {
    background: rgba(40, 167, 69, 0.15);
    border-left: 4px solid #28a745;
}

/* Table Legend */
.table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-box.highlight {
    background: rgba(40, 167, 69, 0.4);
    border: 2px solid #28a745;
}

.legend-note {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-left: auto;
}

/* Results Container */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.result-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.result-date {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-match {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-team {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.result-team.winner {
    background: rgba(40, 167, 69, 0.2);
    border-left: 3px solid #28a745;
}

.result-team span:not(.score) {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.team-logo-tiny {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.result-team .score {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.result-team.winner .score {
    color: #28a745;
}

/* News Grid in Sports Page */
.sports-section .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Sport Info Section */
.sport-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sport-icon-large {
    width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.info-content {
    flex: 1;
    min-width: 300px;
}

.info-content h4 {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 25px;
}

.sport-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.stat-box {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(40, 167, 69, 0.25);
    transform: translateY(-3px);
}

.stat-box i {
    color: #28a745;
    font-size: 28px;
}

.stat-box span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Teams Showcase */
.teams-showcase {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-showcase-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-showcase-card:hover {
    border-color: #28a745;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.team-showcase-card h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0 10px;
}

.team-showcase-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Boxing Legends */
.boxing-legends {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.legend-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.legend-card:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.legend-card h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 8px;
}

.legend-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

/* MLB Info */
.mlb-info {
    padding: 20px;
    background: rgba(0, 45, 98, 0.2);
    border-left: 4px solid #002D62;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sports-dashboard {
        padding: 20px 0;
    }
    
    .sport-info {
        flex-direction: column;
    }
    
    .sport-icon-large {
        width: 150px;
        margin: 0 auto;
    }
    
    .legend-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-cards {
        grid-template-columns: 1fr;
    }

    .sports-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    .sports-section {
        padding: 20px 15px;
    }

    .sports-section .section-title {
        font-size: 18px;
    }

    .matches-container {
        grid-template-columns: 1fr;
    }

    .match-teams {
        flex-direction: column;
        gap: 20px;
    }

    .match-teams .team {
        width: 100%;
    }

    .match-vs {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .standings-table {
        font-size: 12px;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 8px;
    }

    .team-name {
        font-size: 12px;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .table-legend {
        flex-direction: column;
        gap: 10px;
    }

    .legend-note {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-logo-small {
        width: 24px;
        height: 24px;
    }

    .standings-table th:nth-child(n+5),
    .standings-table td:nth-child(n+5) {
        display: none;
    }
}
