/**
 * WorldSportTalk Live Results - Frontend Styles
 * Claude Certified™ - Clean & Responsive
 * Version: 2.0.0
 */

/* Results Container */
.wst-sports-results {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.wst-results-header h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    font-size: 1.5em;
    color: #23282d;
}

/* Table Styles */
.wst-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.wst-table thead th {
    background: #f7f7f7;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
}

.wst-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.wst-table tbody tr:hover {
    background: #f9f9f9;
}

/* Score Display */
.wst-score {
    text-align: center !important;
    font-weight: bold;
}

.wst-score-display {
    font-size: 1.1em;
    color: #0073aa;
}

/* Status Badges */
.wst-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.wst-status-live {
    background: #46b450;
    color: #fff;
}

.wst-status-finished {
    background: #ccc;
    color: #666;
}

.wst-status-not-started {
    background: #f0f0f0;
    color: #666;
}

.wst-status-halftime {
    background: #ffb900;
    color: #fff;
}

/* Results Footer */
.wst-results-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
    color: #999;
}

/* Error Messages */
.wst-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 20px 0;
}

.wst-no-results {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wst-table thead th:first-child,
    .wst-table tbody td:first-child {
        display: none;
    }
    
    .wst-table {
        font-size: 0.9em;
    }
    
    .wst-table thead th,
    .wst-table tbody td {
        padding: 8px 4px;
    }
}

/* Widget Styles */
.widget .wst-sports-results {
    padding: 10px;
    font-size: 0.9em;
}

.widget .wst-results-header h3 {
    font-size: 1.2em;
}

.widget .wst-table {
    margin: 10px 0;
}

.widget .wst-table thead th,
.widget .wst-table tbody td {
    padding: 6px 4px;
    font-size: 0.85em;
}

/* Loading State */
.wst-loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

.wst-loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
