/**
 * BETDEMO Canlı Skorlar CSS Stilleri
 * Real-time skor güncellemeleri için modern ve responsive tasarım
 */

/* Ana Container */
.live-scores-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* Header */
.live-scores-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #e74c3c;
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.live-scores-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-scores-subtitle {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin: 10px 0 0 0;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-indicator.online {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-indicator.offline {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-indicator i {
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.last-update {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Filters */
.live-scores-filters {
    background: rgba(26, 26, 46, 0.8);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-filter:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-filter.active {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-filter i {
    margin-right: 8px;
}

/* Live Matches Section */
.live-matches-section {
    padding: 40px 0;
}

.live-matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.live-matches-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: #f39c12;
}

.match-count {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-matches-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Live Match Card */
.live-match-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db);
    animation: gradientMove 3s ease infinite;
}

.live-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(231, 76, 60, 0.3);
}

.live-match-card[data-sport="futbol"] {
    border-left: 4px solid #2ecc71;
}

.live-match-card[data-sport="basketbol"] {
    border-left: 4px solid #e67e22;
}

.live-match-card[data-sport="tenis"] {
    border-left: 4px solid #9b59b6;
}

/* Match Header */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sport-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.sport-info i {
    color: #f39c12;
}

.match-time {
    font-size: 0.85rem;
    color: #95a5a6;
}

.time-elapsed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.match-status .status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.live {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    animation: blink 2s infinite;
}

/* Match Content */
.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: #ffffff;
}

.team-score {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #95a5a6;
    text-transform: uppercase;
}

.match-info {
    text-align: center;
}

.league-name {
    font-weight: 600;
    color: #f39c12;
    font-size: 0.9rem;
}

.country-name {
    color: #bdc3c7;
    font-size: 0.8rem;
}

/* Match Actions */
.match-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.match-actions .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.match-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Favorite Teams Section */
.favorite-teams-section {
    padding: 40px 0;
    background: rgba(26, 26, 46, 0.5);
}

.favorite-teams-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #e74c3c;
    text-align: center;
}

.favorite-teams-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.favorite-team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.favorite-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(231, 76, 60, 0.3);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.team-info .team-logo {
    width: 50px;
    height: 50px;
}

.team-details .team-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-details .team-sport {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.team-actions {
    display: flex;
    gap: 10px;
}

.team-actions .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* No Live Matches */
.no-live-matches {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-live-matches i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.no-live-matches p {
    font-size: 1.2rem;
    margin: 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-scores-title {
        font-size: 2rem;
    }
    
    .live-scores-header {
        padding: 20px 0;
    }
    
    .live-status {
        align-items: center;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .btn-filter {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .live-matches-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .live-match-card {
        padding: 20px;
    }
    
    .match-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .match-vs {
        margin: 0;
        order: -1;
    }
    
    .team {
        flex-direction: row;
        gap: 15px;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .team-score {
        font-size: 1.5rem;
    }
    
    .match-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .match-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .live-scores-title {
        font-size: 1.8rem;
    }
    
    .live-scores-subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-filter {
        width: 100%;
        max-width: 200px;
    }
    
    .live-match-card {
        padding: 15px;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .team-score {
        font-size: 1.3rem;
    }
}

/* Loading States */
.live-match-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.live-match-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(231, 76, 60, 0.3);
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Score Update Animation */
.score-update {
    animation: scoreUpdate 0.5s ease-in-out;
}

@keyframes scoreUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
}

.connection-status.connected {
    background: rgba(46, 204, 113, 0.9);
    color: #ffffff;
}

.connection-status.disconnected {
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
