/* Football Results Plugin Styles */

.football-results-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tab Navigation */
.football-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.football-tab-button {
    flex: 1;
    padding: 12px 16px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    border-bottom: 3px solid transparent;
}

.football-tab-button:hover {
    background: #e9ecef;
}

.football-tab-button.active {
    background: #fff;
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Content Areas */
.football-content {
    min-height: 200px;
}

.football-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading State */
.football-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Title */
.football-title {
    color: #343a40;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    border-left: 4px solid #007bff;
    padding-left: 12px;
}

/* Standings Table */
.football-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.football-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.football-table th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.football-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.football-table tbody tr:hover {
    background-color: #f8f9fa;
}

.football-table tbody tr:nth-child(even) {
    background-color: #fdfdfe;
}

/* Team styling */
.team-name {
    display: flex;
    align-items: center;
    text-align: left !important;
    font-weight: 500;
}

.team-crest {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.position {
    font-weight: bold;
    color: #007bff;
}

.points {
    font-weight: bold;
    color: #28a745;
}

/* Champions League positions */
.football-table tbody tr:nth-child(-n+4) .position {
    color: #28a745;
}

/* Europa League positions */
.football-table tbody tr:nth-child(n+5):nth-child(-n+6) .position {
    color: #ffc107;
}

/* Relegation positions */
.football-table tbody tr:nth-child(n+18) .position {
    color: #dc3545;
}

/* Matches */
.football-matches-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.football-match {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.football-match:hover {
    background-color: #f8f9fa;
}

.football-match:last-child {
    border-bottom: none;
}

.match-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.home-team, .away-team {
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: 500;
}

.away-team {
    justify-content: flex-end;
    text-align: right;
}

.away-team .team-crest {
    margin-left: 8px;
    margin-right: 0;
}

.match-score {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 15px;
}

.score {
    font-weight: bold;
    font-size: 1.1rem;
    color: #007bff;
    padding: 4px 12px;
    background: #e7f3ff;
    border-radius: 20px;
}

.vs {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.match-venue {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin-top: 4px;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 8px;
}

.match-status {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Upcoming matches specific styling */
.football-match.upcoming {
    border-left: 4px solid #ffc107;
}

/* Last updated info */
.football-last-updated {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Size variations */
.size-small {
    font-size: 0.875rem;
}

.size-small .football-title {
    font-size: 1rem;
}

.size-small .football-table th,
.size-small .football-table td {
    padding: 6px 4px;
    font-size: 0.8rem;
}

.size-small .team-crest {
    width: 16px;
    height: 16px;
}

.size-small .football-match {
    padding: 12px;
}

.size-large .football-title {
    font-size: 1.5rem;
}

.size-large .football-table th,
.size-large .football-table td {
    padding: 14px 10px;
}

.size-large .team-crest {
    width: 24px;
    height: 24px;
}

.size-large .football-match {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .football-tabs {
        flex-direction: column;
    }
    
    .football-tab-button {
        border-bottom: 1px solid #e1e5e9;
        border-radius: 0;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 8px;
    }
    
    .home-team, .away-team {
        justify-content: center;
    }
    
    .football-table {
        font-size: 0.8rem;
    }
    
    .football-table th,
    .football-table td {
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .football-results-container {
        margin: 10px 0;
    }
    
    .team-name span {
        font-size: 0.85rem;
    }
    
    .football-table th,
    .football-table td {
        padding: 4px 2px;
        font-size: 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .football-results-container {
        color: #e9ecef;
    }
    
    .football-tabs {
        background-color: #343a40;
        border-bottom-color: #495057;
    }
    
    .football-tab-button {
        background: #343a40;
        color: #adb5bd;
    }
    
    .football-tab-button:hover {
        background: #495057;
    }
    
    .football-tab-button.active {
        background: #495057;
        color: #007bff;
    }
    
    .football-table-container,
    .football-matches-list {
        background: #343a40;
    }
    
    .football-table td {
        border-bottom-color: #495057;
    }
    
    .football-table tbody tr:hover {
        background-color: #495057;
    }
    
    .football-match:hover {
        background-color: #495057;
    }
    
    .football-match {
        border-bottom-color: #495057;
    }
}