/**
 * Sports Lounge Live Scores - Styles
 * Version: 3.0.0 - Compact Layout
 */

/* Container Styles */
.slls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Branded Section Headings */
.slls-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.slls-subheading {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* League Tabs */
.slls-league-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.slls-league-tab,
.slls-schedule-league-tab,
.slls-news-league-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #333;
}

.slls-league-tab:hover,
.slls-schedule-league-tab:hover,
.slls-news-league-tab:hover {
    background: #e0e0e0;
}

.slls-league-tab.active,
.slls-schedule-league-tab.active,
.slls-news-league-tab.active {
    background: #2c3e50;
    color: white;
}

.slls-league-tab.nfl.active,
.slls-schedule-league-tab.nfl.active,
.slls-news-league-tab.nfl.active { background: #013369; }

.slls-league-tab.nba.active,
.slls-schedule-league-tab.nba.active,
.slls-news-league-tab.nba.active { background: #17408B; }

.slls-league-tab.mlb.active,
.slls-schedule-league-tab.mlb.active,
.slls-news-league-tab.mlb.active { background: #041E42; }

.slls-league-tab.nhl.active,
.slls-schedule-league-tab.nhl.active,
.slls-news-league-tab.nhl.active { background: #000000; }

/* Loading Spinner */
.slls-loading {
    text-align: center;
    padding: 30px;
}

.slls-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: slls-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes slls-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* COMPACT SCORES DISPLAY */
.slls-scores-container {
    margin-bottom: 20px;
}

.slls-game-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.slls-game-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slls-game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slls-game-date {
    flex: 1;
}

.slls-game-status {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.slls-game-status.live {
    background: #ff4444;
    animation: slls-pulse 2s infinite;
}

@keyframes slls-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.slls-game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}

.slls-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.slls-team.away {
    justify-content: flex-start;
}

.slls-team.home {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.slls-team img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.slls-team-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.slls-team-score {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
}

.slls-game-vs {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    padding: 0 10px;
}

.slls-game-venue {
    padding: 8px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Schedule Display */
.slls-schedule-container {
    margin-bottom: 20px;
}

.slls-schedule-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s ease;
}

.slls-schedule-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateX(2px);
}

.slls-schedule-date {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    min-width: 140px;
}

.slls-schedule-matchup {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.slls-schedule-venue {
    font-size: 12px;
    color: #999;
    min-width: 180px;
    text-align: right;
}

/* News Display */
.slls-news-container {
    margin-bottom: 20px;
}

.slls-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.slls-news-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slls-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.slls-news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.slls-news-content {
    padding: 16px;
}

.slls-news-headline {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.slls-news-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.slls-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.slls-news-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.slls-news-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Error & Empty States */
.slls-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 16px;
    color: #c33;
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
}

.slls-no-games,
.slls-no-news {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* Last Updated */
.slls-last-updated {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slls-game-teams {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .slls-team {
        width: 100%;
        justify-content: space-between !important;
        flex-direction: row !important;
    }
    
    .slls-game-vs {
        display: none;
    }
    
    .slls-news-grid {
        grid-template-columns: 1fr;
    }
    
    .slls-league-tabs {
        justify-content: center;
    }
    
    .slls-league-tab,
    .slls-schedule-league-tab,
    .slls-news-league-tab {
        flex: 1;
        min-width: 60px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .slls-schedule-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .slls-schedule-date,
    .slls-schedule-venue {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slls-container {
        padding: 12px;
    }
    
    .slls-team-score {
        font-size: 24px;
    }
    
    .slls-team img {
        width: 32px;
        height: 32px;
    }
    
    .slls-team-name {
        font-size: 14px;
    }
}

/* Time Period Toggle (Live vs Past Week) */
.slls-time-period-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

.slls-period-tab {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #666;
}

.slls-period-tab:hover {
    border-color: #3498db;
    color: #3498db;
}

.slls-period-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Smart Status Badges */
.slls-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.slls-badge-live {
    background: #ff4444;
    color: white;
    animation: slls-pulse 2s infinite;
}

.slls-badge-final {
    background: #2ecc71;
    color: white;
}

.slls-badge-scheduled {
    background: #f39c12;
    color: white;
}

.slls-badge-status {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Info Messages */
.slls-info-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slls-info-message p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.slls-info-message strong {
    font-weight: 700;
}

.slls-scheduled-message {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.slls-allstar-message {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* PGA Golf Tab Colors */
.slls-league-tab.pga.active,
.slls-schedule-league-tab.pga.active,
.slls-news-league-tab.pga.active {
    background: #006747;
}

/* Responsive Updates */
@media (max-width: 480px) {
    .slls-time-period-toggle {
        flex-direction: column;
    }
    
    .slls-period-tab {
        width: 100%;
    }
    
    .slls-info-message {
        padding: 16px;
    }
    
    .slls-info-message p {
        font-size: 14px;
    }
}

/* Network Badges for Local TV */
.slls-network-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    color: white;
    letter-spacing: 0.5px;
}

/* NBC - Peacock colors */
.slls-network-nbc,
.slls-network-peacock {
    background: linear-gradient(135deg, #6441a5 0%, #2a0845 100%);
    box-shadow: 0 2px 4px rgba(100, 65, 165, 0.3);
}

/* ABC - Disney red */
.slls-network-abc {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CBS - Blue */
.slls-network-cbs {
    background: linear-gradient(135deg, #0047bb 0%, #002f7a 100%);
    box-shadow: 0 2px 4px rgba(0, 71, 187, 0.3);
}

/* Fox - Orange/Blue */
.slls-network-fox {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.3);
}

/* Local TV info message */
.slls-local-tv-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 4px solid #5a67d8;
}

.slls-local-tv-message p {
    color: white;
}
