/* =====================================
   DERBY METER - LICZNIK DERBÓW
   ===================================== */

.derby-meter-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.derby-meter-header {
    text-align: center;
    margin-bottom: 25px;
}

.derby-meter-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.derby-meter-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.derby-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.derby-club {
    flex: 1;
    text-align: center;
}

.derby-club-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.derby-club-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.derby-fans-count {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.derby-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: #999;
    flex-shrink: 0;
}

.derby-meter-bar {
    position: relative;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.derby-meter-fill-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 1.5s ease;
    border-radius: 20px 0 0 20px;
}

.derby-meter-fill-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transition: width 1.5s ease;
    border-radius: 0 20px 20px 0;
}

.derby-meter-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    z-index: 2;
}

.derby-percentage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.derby-percentage-left {
    color: #667eea;
}

.derby-percentage-right {
    color: #f5576c;
}

.derby-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.derby-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.derby-stat-label {
    color: #666;
    font-weight: 500;
}

.derby-stat-value {
    font-weight: 700;
    color: #333;
}

.derby-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 10px;
}

/* Animacja pulsowania dla zwycięzcy */
@keyframes winnerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.derby-club.winner {
    animation: winnerPulse 2s ease-in-out infinite;
}

.derby-club.winner .derby-club-name {
    color: #667eea;
}

/* Responsywność */
@media (max-width: 768px) {
    .derby-comparison {
        flex-direction: column;
        gap: 15px;
    }
    
    .derby-vs {
        transform: rotate(90deg);
    }
    
    .derby-club-logo {
        width: 50px;
        height: 50px;
    }
    
    .derby-fans-count {
        font-size: 1.3rem;
    }
}
