/**
 * Cricket Live Scores v3 - Frontend Styles
 */

.cls-match-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Match Header */
.cls-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cls-match-title h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.cls-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Live Indicator */
.cls-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.cls-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cls-live-indicator.cls-updating {
    animation: flash 0.5s;
}

@keyframes flash {
    0%, 100% { background: #dc3545; }
    50% { background: #ff4757; }
}

/* Status Badge */
.cls-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.cls-status-badge.cls-status-2 {
    background: #d1ecf1;
    color: #0c5460;
}

.cls-status-badge.cls-status-1 {
    background: #fff3cd;
    color: #856404;
}

/* Status Note Bar */
.cls-status-note-bar {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.cls-status-note {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

/* Teams Section */
.cls-teams-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cls-team {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cls-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cls-team-info h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.cls-team-info p {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2196f3;
}

.cls-vs {
    font-size: 20px;
    font-weight: 700;
    color: #999;
    padding: 0 20px;
}

/* Result Bar */
.cls-result-bar {
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Tabs Navigation */
.cls-tabs-nav {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.cls-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.cls-tab-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.cls-tab-btn.active {
    background: #2196f3;
    color: white;
}

/* Tab Content */
.cls-tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 400px;
}

.cls-tab-content.active {
    display: block;
}

/* Player of the Match Widget */
.cls-potm-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.cls-potm-icon {
    font-size: 48px;
}

.cls-potm-label {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cls-potm-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* Live Section */
.cls-live-section {
    margin-bottom: 30px;
}

.cls-live-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Tables */
.cls-batsmen-table,
.cls-bowlers-table,
.cls-scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cls-batsmen-table th,
.cls-bowlers-table th,
.cls-scorecard-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cls-batsmen-table td,
.cls-bowlers-table td,
.cls-scorecard-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #1a1a1a;
}

.cls-batsmen-table tr:hover,
.cls-bowlers-table tr:hover,
.cls-scorecard-table tr:hover {
    background: #f9f9f9;
}

/* Innings Section */
.cls-innings-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.cls-innings-section:last-child {
    border-bottom: none;
}

.cls-innings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

.cls-innings-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1565c0;
}

.cls-innings-score {
    font-size: 20px;
    font-weight: 700;
    color: #1565c0;
}

.cls-extras {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.cls-bowling-title {
    margin: 30px 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Info Section */
.cls-info-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.cls-info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cls-info-label {
    flex: 0 0 150px;
    font-weight: 600;
    color: #666;
}

.cls-info-value {
    flex: 1;
    color: #1a1a1a;
}

/* Squad Section */
.cls-squad-section {
    margin-bottom: 40px;
}

.cls-squad-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.cls-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.cls-player-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s;
}

.cls-player-card:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.cls-player-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.cls-player-role {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* No Data */
.cls-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cls-no-data p {
    margin: 10px 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .cls-match-container {
        padding: 0 15px;
    }
    
    .cls-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cls-teams-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .cls-team {
        width: 100%;
        justify-content: center;
    }
    
    .cls-vs {
        padding: 10px 0;
    }
    
    .cls-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cls-tab-content {
        padding: 20px;
    }
    
    .cls-squad-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cls-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .cls-info-label {
        flex: none;
    }
    
    /* Make tables scrollable on mobile */
    .cls-batsmen-table,
    .cls-bowlers-table,
    .cls-scorecard-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
