/* ================================ */
/* MODERN PLAYER DISPLAY STYLES */
/* ================================ */

/* Player name labels */
.player-name-label {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.player-name-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Theme support */
body.theme .player-name-label {
    color: #e2e8f0;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* Subtle animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-name-label {
    animation: fadeInUp 0.5s ease-out backwards;
}

.player-name-label:nth-child(1) { animation-delay: 0.1s; }
.player-name-label:nth-child(2) { animation-delay: 0.2s; }
.player-name-label:nth-child(3) { animation-delay: 0.3s; }
.player-name-label:nth-child(4) { animation-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-name-label {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    
    /* Adjust bar container for mobile */
    .input-field .bar-container {
        transform: scale(1.02);
        padding: 0.75rem;
    }
    
    .achievement-bars,
    .position-heat-bars,
    .recent-streak-bars,
    .sweet-spot-bars {
        transform: scale(1.05);
        margin: 0.375rem 0;
    }
}

/* Player field modern layout */
.input-field {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.input-field:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.theme .input-field {
    background: rgba(45, 55, 72, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hide the number input and stepper since we're using dropdown only */
.input-field input[type="number"],
.input-field .input-stepper {
    display: none;
}

/* Make the achievement bars more prominent */
.input-field .bar-container {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme .input-field .bar-container {
    background: rgba(26, 32, 44, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhance individual achievement bars */
.achievement-bars,
.position-heat-bars,
.recent-streak-bars,
.sweet-spot-bars {
    margin: 0.5rem 0;
    transform: scale(1.08);
}

/* Hover effect for bar container */
.input-field .bar-container:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme .input-field .bar-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Gradient accent line */
.input-field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-field:hover::after {
    opacity: 1;
}

/* Player initial styles for first letter display */
.player-icon.player-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #2d3748;
    border-radius: 50%;
    font-weight: 600;
    /* Remove transition to prevent flickering */
}

body.theme .player-icon.player-initial {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
