/* Score Panel */
.score-section {
    background-color: var(--score-red);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-header {
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.player-scores {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.player-score.current {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.player-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.player-icon i {
    font-size: 20px;
    color: white;
    line-height: 1;
}

.player-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.player-name .icon {
    font-size: 1.2rem;
    color: #ffd700;
}

.score-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f9c74f;
}

/* Turn Indicator */
.turn-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.score-panel {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    color: white;
}

.score-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.player-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--background-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.player-item:hover {
    transform: translateX(4px);
    background-color: rgba(0, 0, 0, 0.05);
}

.player-item.current {
    border-left: 4px solid var(--primary-color);
    padding-left: calc(var(--spacing-sm) - 4px);
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-xs) / 2);
}

.player-type {
    font-size: var(--font-size-xs);
    padding: calc(var(--spacing-xs) / 2) var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
}

.player-type.ai {
    background-color: rgba(2, 136, 209, 0.1);
    color: var(--info-color);
}

.player-stats {
    display: flex;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.player-score {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    min-width: 3em;
    text-align: right;
}

.score-panel-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.game-stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-sm);
    background-color: var(--surface-color);
    border-radius: var(--border-radius-sm);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-xs) / 2);
}

.stat-value {
    font-weight: 500;
    color: white;
}

/* Animations */
@keyframes scoreUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #4CAF50;
    }
    100% {
        transform: scale(1);
    }
}

.score-value.updated {
    animation: scoreUpdate 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .score-panel {
        padding: 15px;
    }

    .score-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .player-score {
        padding: 8px 12px;
    }

    .score-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .player-name {
        font-size: 0.9rem;
    }

    .stat-item {
        font-size: 0.8rem;
    }
} 