/* Schedule Table Styles */

.events-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--background-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.events-table thead {
    background: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
}

.events-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.events-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.events-table tbody tr.live {
    background: rgba(255, 59, 59, 0.05);
}

.events-table tbody tr.live:hover {
    background: rgba(255, 59, 59, 0.1);
}

.events-table tbody td {
    padding: 16px 12px;
    color: var(--text-color);
}

/* Column Styles */
.col-time {
    width: 80px;
    white-space: nowrap;
}

.col-time strong {
    color: var(--primary-color);
    font-size: 15px;
}

.col-league {
    width: 25%;
    min-width: 180px;
}

.league-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-flag {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.league-name {
    color: var(--text-color);
    font-weight: 500;
}

.col-match {
    width: 35%;
    min-width: 250px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-teams .team {
    font-weight: 600;
    color: var(--text-color);
}

.match-teams .vs {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.col-status {
    width: 100px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-badge.live-badge {
    background: var(--live-color);
    color: white;
    border-color: var(--live-color);
    animation: pulse 2s ease-in-out infinite;
}

.col-action {
    width: 120px;
    text-align: center;
}

.btn-watch {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-watch:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-watch:active {
    transform: scale(0.98);
}

/* Category Sections */
.sport-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 28px;
}

.event-count {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* No Events State */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    background: var(--background-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-events p {
    font-size: 16px;
    margin: 0;
}

/* Error State */
.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--live-color);
    background: rgba(255, 59, 59, 0.1);
    border-radius: 12px;
    border: 1px solid var(--live-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .events-table {
        font-size: 13px;
    }

    .events-table thead th,
    .events-table tbody td {
        padding: 12px 10px;
    }

    .col-league {
        width: 20%;
        min-width: 150px;
    }

    .col-match {
        width: 30%;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .events-table-container {
        border-radius: 8px;
    }

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

    .events-table thead th,
    .events-table tbody td {
        padding: 10px 8px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-icon {
        font-size: 24px;
    }

    /* Stack match teams vertically on mobile */
    .match-teams {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .match-teams .vs {
        display: none;
    }

    .col-time {
        width: 60px;
    }

    .col-status {
        width: 80px;
    }

    .col-action {
        width: 100px;
    }

    .btn-watch {
        padding: 6px 16px;
        font-size: 12px;
    }

    /* Hide league on very small screens, show in title */
    .league-info {
        gap: 2px;
    }

    .country-flag {
        font-size: 11px;
    }

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

@media (max-width: 480px) {
    /* Compact table for mobile */
    .events-table thead th {
        font-size: 10px;
        padding: 8px 6px;
    }

    .events-table tbody td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .col-time strong {
        font-size: 13px;
    }

    .match-teams .team {
        font-size: 12px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .btn-watch {
        padding: 5px 12px;
        font-size: 11px;
    }

    /* Hide country flag on very small screens */
    .country-flag {
        display: none;
    }
}
