/**
 * Athlos Sports Widgets Styles
 * Styles for Standings and Next Match widgets
 */

/* ===================================
   STANDINGS WIDGET
   =================================== */

.athlos-standings-widget {
    overflow-x: auto;
    margin: 0 0 20px 0;
}

.athlos-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.athlos-standings-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.athlos-standings-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: #495057;
    letter-spacing: 0.5px;
}

.athlos-standings-table th.team {
    text-align: left;
    padding-left: 15px;
}

.athlos-standings-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.athlos-standings-table td {
    padding: 10px 8px;
    text-align: center;
    color: #212529;
}

.athlos-standings-table td.rank {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
}

.athlos-standings-table td.team {
    text-align: left;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.athlos-standings-table .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.athlos-standings-table .team-name {
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.athlos-standings-table td.points {
    font-weight: 700;
    color: #28a745;
    font-size: 15px;
}

.athlos-standings-table td.won {
    color: #28a745;
}

.athlos-standings-table td.draw {
    color: #ffc107;
}

.athlos-standings-table td.lost {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .athlos-standings-table {
        font-size: 12px;
    }

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

    .athlos-standings-table th.team,
    .athlos-standings-table td.team {
        padding-left: 8px;
    }

    .athlos-standings-table .team-logo {
        width: 20px;
        height: 20px;
    }

    .athlos-standings-table .team-name {
        font-size: 11px;
    }
}

/* ===================================
   NEXT MATCH WIDGET
   =================================== */

.athlos-next-match-widget {
    margin: 0 0 20px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.athlos-next-match-widget .match-card {
    background: #fff !important;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: visible !important;
    position: relative;
    max-width: 100% !important;
    display: block !important;
}

.athlos-next-match-widget .match-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 10px;
    text-align: center;
}

.athlos-next-match-widget .league-name {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.athlos-next-match-widget .match-round {
    font-size: 10px;
    opacity: 0.9;
}

.athlos-next-match-widget .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    gap: 8px;
    box-sizing: border-box;
}

.athlos-next-match-widget .team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 0;
}

.athlos-next-match-widget .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.athlos-next-match-widget .team-name {
    font-weight: 600;
    font-size: 11px;
    color: #212529;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.athlos-next-match-widget .match-vs {
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10px;
    color: #6c757d;
}

.athlos-next-match-widget .match-details {
    background: #f8f9fa;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.athlos-next-match-widget .match-details > div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #495057;
}

.athlos-next-match-widget .match-details > div:last-child {
    margin-bottom: 0;
}

.athlos-next-match-widget .match-details i {
    color: #6c757d;
    width: 14px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.athlos-next-match-widget .match-date,
.athlos-next-match-widget .match-time {
    font-weight: 600;
}

.athlos-next-match-widget .match-venue {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.athlos-next-match-widget .venue-city {
    color: #6c757d;
}

.athlos-next-match-widget .match-location-badge {
    padding: 8px 10px;
    text-align: center;
    background: #fff;
}

.athlos-next-match-widget .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.athlos-next-match-widget .home-badge {
    background: #d4edda;
    color: #155724;
}

.athlos-next-match-widget .away-badge {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 480px) {
    .athlos-next-match-widget .match-teams {
        padding: 12px 8px;
    }

    .athlos-next-match-widget .team-logo {
        width: 30px;
        height: 30px;
    }

    .athlos-next-match-widget .team-name {
        font-size: 10px;
    }

    .athlos-next-match-widget .match-vs {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }

    .athlos-next-match-widget .match-details {
        padding: 8px;
        font-size: 10px;
    }
}

/* ===================================
   WIDGET ERROR & EMPTY STATES
   =================================== */

.athlos-widget-error,
.athlos-widget-empty {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 0;
}

.athlos-widget-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
