/* API Football Widgets Styles */

.afw-standings,
.afw-fixtures,
.afw-livescore,
.afw-top-scorers,
.afw-countries,
.afw-seasons {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 20px 0;
    background: #FFFCF4; /* Natural White */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(19, 78, 42, 0.1); /* STADIUMGREEN with opacity */
    overflow: hidden;
}

.afw-standings h3,
.afw-fixtures h3,
.afw-livescore h3,
.afw-top-scorers h3,
.afw-countries h3,
.afw-seasons h3 {
    background: #134E2A; /* STADIUMGREEN */
    color: #FFFCF4; /* Natural White */
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-top: 3px solid #00481E; /* DEEP FROST accent */
}

/* Standings Table */
.afw-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.afw-standings-table th {
    background: #00481E; /* DEEP FROST */
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #FFFCF4; /* Natural White */
    border-bottom: 2px solid #134E2A; /* STADIUMGREEN */
    border-right: 1px solid #5F5F5F; /* SOFT GRAY */
}

.afw-standings-table th:last-child {
    border-right: none;
}

.afw-standings-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #5F5F5F; /* SOFT GRAY */
    border-right: 1px solid #5F5F5F; /* SOFT GRAY */
    vertical-align: middle;
    color: #00481E; /* DEEP FROST */
    background: #FFFCF4; /* Natural White */
}

.afw-standings-table td:last-child {
    border-right: none;
}

.afw-standings-table tr:nth-child(even) td {
    background: rgba(19, 78, 42, 0.03); /* STADIUMGREEN with very low opacity */
}

.afw-standings-table tr:hover {
    background-color: rgba(19, 78, 42, 0.05); /* STADIUMGREEN with low opacity */
}

.afw-standings-table tr:hover td {
    background-color: rgba(19, 78, 42, 0.05); /* STADIUMGREEN with low opacity */
}

.afw-team-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Fixtures */
.afw-fixture-date {
    border-bottom: 1px solid #5F5F5F; /* SOFT GRAY */
}

.afw-fixture-date h4 {
    background: #00481E; /* DEEP FROST */
    margin: 0;
    padding: 10px 20px;
    font-size: 16px;
    color: #FFFCF4; /* Natural White */
    border-bottom: 1px solid #134E2A; /* STADIUMGREEN */
}

.afw-fixture-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #5F5F5F; /* SOFT GRAY */
    transition: background-color 0.2s;
}

.afw-fixture-item:hover {
    background-color: rgba(19, 78, 42, 0.05); /* STADIUMGREEN with low opacity */
}

.afw-fixture-item:last-child {
    border-bottom: none;
}

.afw-team {
    display: flex;
    align-items: center;
    flex: 1;
}

.afw-team.home {
    justify-content: flex-start;
}

.afw-team.away {
    justify-content: flex-end;
}

.afw-team-name {
    font-weight: 500;
    color: #00481E; /* DEEP FROST */
}

.afw-fixture-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    min-width: 80px;
}

.afw-fixture-time {
    font-size: 14px;
    color: #5F5F5F; /* SOFT GRAY */
    font-weight: 500;
}

.afw-fixture-score {
    font-size: 18px;
    font-weight: 700;
    color: #134E2A; /* STADIUMGREEN */
    margin-top: 4px;
}

.afw-fixture-status {
    font-size: 12px;
    color: #5F5F5F; /* SOFT GRAY */
    margin-top: 4px;
}

/* Live Scores */
.afw-live-fixture {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #5F5F5F; /* SOFT GRAY */
    background: linear-gradient(90deg, rgba(19, 78, 42, 0.1) 0%, #FFFCF4 50%, rgba(19, 78, 42, 0.1) 100%); /* STADIUMGREEN gradient */
}

.afw-live-fixture:last-child {
    border-bottom: none;
}

.afw-live-score {
    font-size: 20px;
    font-weight: 700;
    color: #134E2A; /* STADIUMGREEN */
    margin-bottom: 4px;
}

.afw-live-status {
    font-size: 12px;
    color: #134E2A; /* STADIUMGREEN */
    font-weight: 600;
    text-transform: uppercase;
}

/* Top Scorers */
.afw-scorers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.afw-scorers-table th {
    background: #00481E; /* DEEP FROST */
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #FFFCF4; /* Natural White */
    border-bottom: 2px solid #134E2A; /* STADIUMGREEN */
    border-right: 1px solid #5F5F5F; /* SOFT GRAY */
}

.afw-scorers-table th:last-child {
    border-right: none;
}

.afw-scorers-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #5F5F5F; /* SOFT GRAY */
    border-right: 1px solid #5F5F5F; /* SOFT GRAY */
    vertical-align: middle;
    color: #00481E; /* DEEP FROST */
}

.afw-scorers-table td:last-child {
    border-right: none;
}

.afw-scorers-table tr:hover {
    background-color: rgba(19, 78, 42, 0.05); /* STADIUMGREEN with low opacity */
}

.afw-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Countries */
.afw-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.afw-country-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #5F5F5F; /* SOFT GRAY */
    border-radius: 6px;
    transition: all 0.2s;
    background: #FFFCF4; /* Natural White */
}

.afw-country-item:hover {
    border-color: #134E2A; /* STADIUMGREEN */
    box-shadow: 0 2px 8px rgba(19, 78, 42, 0.2); /* STADIUMGREEN with opacity */
}

.afw-flag {
    width: 24px;
    height: 16px;
    margin-right: 10px;
    border-radius: 2px;
}

.afw-country-name {
    font-weight: 500;
    color: #00481E; /* DEEP FROST */
}

/* Seasons */
.afw-seasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.afw-season-item {
    padding: 8px 16px;
    background: #FFFCF4; /* Natural White */
    border: 1px solid #5F5F5F; /* SOFT GRAY */
    border-radius: 20px;
    transition: all 0.2s;
    color: #00481E; /* DEEP FROST */
}

.afw-season-item:hover {
    background: #134E2A; /* STADIUMGREEN */
    color: #FFFCF4; /* Natural White */
    border-color: #134E2A; /* STADIUMGREEN */
}

.afw-season-year {
    font-weight: 500;
}

/* Error and No Data States */
.afw-error {
    background: rgba(19, 78, 42, 0.1); /* STADIUMGREEN with low opacity */
    color: #134E2A; /* STADIUMGREEN */
    padding: 15px 20px;
    border: 1px solid #134E2A; /* STADIUMGREEN */
    border-radius: 6px;
    margin: 20px 0;
}

.afw-no-data {
    background: rgba(0, 72, 30, 0.1); /* DEEP FROST with low opacity */
    color: #00481E; /* DEEP FROST */
    padding: 15px 20px;
    border: 1px solid #00481E; /* DEEP FROST */
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .afw-fixture-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .afw-team {
        justify-content: center !important;
    }
    
    .afw-fixture-info {
        margin: 10px 0;
    }
    
    .afw-standings-table {
        font-size: 12px;
    }
    
    .afw-standings-table th,
    .afw-standings-table td {
        padding: 8px 4px;
    }
    
    .afw-countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 15px;
    }
}

/* Loading State */
.afw-loading {
    text-align: center;
    padding: 40px 20px;
    color: #5F5F5F; /* SOFT GRAY */
}

.afw-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #5F5F5F; /* SOFT GRAY */
    border-radius: 50%;
    border-top-color: #134E2A; /* STADIUMGREEN */
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Position indicators for standings */
.afw-standings-table tr:nth-child(1) td:first-child {
    background: #134E2A; /* STADIUMGREEN */
    color: #FFFCF4; /* Natural White */
    font-weight: bold;
}

.afw-standings-table tr:nth-child(2) td:first-child {
    background: #5F5F5F; /* SOFT GRAY */
    color: #FFFCF4; /* Natural White */
    font-weight: bold;
}

.afw-standings-table tr:nth-child(3) td:first-child {
    background: #00481E; /* DEEP FROST */
    color: #FFFCF4; /* Natural White */
    font-weight: bold;
}

.afw-standings-table tr:nth-child(4) td:first-child {
    background: rgba(19, 78, 42, 0.3); /* STADIUMGREEN with opacity */
    color: #00481E; /* DEEP FROST */
    font-weight: bold;
}

/* Relegation zone */
.afw-standings-table tr:nth-last-child(-n+3) td:first-child {
    background: rgba(95, 95, 95, 0.3); /* SOFT GRAY with opacity */
    color: #00481E; /* DEEP FROST */
    font-weight: bold;
}

/* Show More Functionality */
.afw-hidden {
    display: none !important;
}

.afw-show-more-container {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #5F5F5F; /* SOFT GRAY */
}

.afw-show-more-btn {
    background: #134E2A; /* STADIUMGREEN */
    color: #FFFCF4; /* Natural White */
    border: 2px solid #134E2A; /* STADIUMGREEN */
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afw-show-more-btn:hover {
    background: #00481E; /* DEEP FROST */
    border-color: #00481E; /* DEEP FROST */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 78, 42, 0.3); /* STADIUMGREEN with opacity */
}

.afw-show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(19, 78, 42, 0.3); /* STADIUMGREEN with opacity */
}

.afw-show-more-btn[data-action="hide"] {
    background: #5F5F5F; /* SOFT GRAY */
    border-color: #5F5F5F; /* SOFT GRAY */
}

.afw-show-more-btn[data-action="hide"]:hover {
    background: #00481E; /* DEEP FROST */
    border-color: #00481E; /* DEEP FROST */
} 