/* ====== Football Data Styles ====== */

:root {
    --fd-primary: #0d6efd;
    --fd-dark: #1a1f2e;
    --fd-light: #f8f9fa;
    --fd-success: #28a745;
    --fd-danger: #dc3545;
    --fd-warning: #ffc107;
    --fd-info: #17a2b8;
}

/* Containers */
.fd-matches-container,
.fd-fixtures-container,
.fd-team-matches-container,
.fd-scorers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* Cards */
.fd-match-card,
.fd-fixture-card {
    background: var(--fd-dark);
    color: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fd-match-card:hover,
.fd-fixture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.fd-match-competition,
.fd-fixture-competition {
    color: #8b949e;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Teams Layout */
.fd-match-teams,
.fd-fixture-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    gap: 15px;
}

.fd-team {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.fd-team-score {
    background: var(--fd-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

.fd-match-vs,
.fd-fixture-vs {
    color: #8b949e;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
}

.fd-fixture-date {
    color: #8b949e;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    font-family: monospace;
}

/* Standings Widget */
.fd-standings-widget {
    background: var(--fd-dark);
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fd-standings-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-standings-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.fd-matchday {
    background: var(--fd-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.fd-table-container {
    overflow-x: auto;
}

.fd-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 14px;
}

.fd-table th {
    background: rgba(0,0,0,0.3);
    color: #8b949e;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fd-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fd-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Team Column */
.fd-team {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    text-align: left !important;
}

.fd-team-crest {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.fd-team-name {
    font-weight: 500;
}

/* Position Classes */
.fd-champions-league {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid var(--fd-success);
}

.fd-europa-league {
    background: rgba(23, 162, 184, 0.1);
    border-left: 3px solid var(--fd-info);
}

.fd-relegation {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid var(--fd-danger);
}

/* Form Circles */
.fd-form {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.fd-form-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.fd-form-win {
    background: var(--fd-success);
    color: white;
}

.fd-form-draw {
    background: var(--fd-warning);
    color: black;
}

.fd-form-loss {
    background: var(--fd-danger);
    color: white;
}

/* Legend */
.fd-legend {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.fd-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b949e;
}

.fd-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.fd-legend-color.fd-champions-league {
    background: var(--fd-success);
}

.fd-legend-color.fd-europa-league {
    background: var(--fd-info);
}

.fd-legend-color.fd-relegation {
    background: var(--fd-danger);
}

/* Error States */
.fd-error,
.fd-no-data,
.fd-no-matches {
    padding: 20px;
    text-align: center;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--fd-danger);
    border-radius: 8px;
    color: #dc3545;
    margin: 20px 0;
}

/* Scorers */
.fd-scorer-row {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin Styles */
.fd-shortcodes-guide {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.fd-shortcode-example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid var(--fd-primary);
}

.fd-league-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fd-table {
        font-size: 12px;
    }
    
    .fd-table th,
    .fd-table td {
        padding: 8px 4px;
    }
    
    .fd-team-crest {
        width: 20px;
        height: 20px;
    }
    
    .fd-team-name {
        font-size: 13px;
    }
    
    .fd-match-teams,
    .fd-fixture-teams {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .fd-team {
        width: 100%;
    }
    
    .fd-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark/Light Mode Support */
@media (prefers-color-scheme: light) {
    .fd-match-card,
    .fd-fixture-card,
    .fd-standings-widget {
        background: white;
        color: #212529;
        border: 1px solid #dee2e6;
    }
    
    .fd-table {
        color: #212529;
    }
    
    .fd-table tr:hover {
        background: #f8f9fa;
    }
    
    .fd-team-score {
        background: #e9ecef;
        color: #212529;
    }
}