/* ========================================
   🎹 AMBIENT PIANO STYLES - SIMPLE VERSION 🎹
   Elegant Controls for Piano Background Music
   ======================================== */

/* Pannello controllo piano */
.piano-control-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.piano-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(44, 95, 93, 0.9), 
        rgba(210, 105, 30, 0.8)
    );
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 
        0 6px 24px rgba(44, 95, 93, 0.3),
        0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
    line-height: 1;
}

.piano-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 32px rgba(44, 95, 93, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.piano-button.playing {
    background: linear-gradient(135deg, 
        rgba(210, 105, 30, 1), 
        rgba(44, 95, 93, 0.9)
    );
    animation: pianoPulse 3s ease-in-out infinite;
}

.piano-button.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(210, 105, 30, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    animation: pianoRipple 2s ease-out infinite;
}

@keyframes pianoPulse {
    0%, 100% { 
        box-shadow: 
            0 6px 24px rgba(44, 95, 93, 0.3),
            0 3px 12px rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 10px 40px rgba(44, 95, 93, 0.5),
            0 5px 20px rgba(210, 105, 30, 0.3);
    }
}

@keyframes pianoRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Controlli volume */
.piano-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.piano-volume-slider {
    width: 80px;
    height: 3px;
    border-radius: 1.5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.piano-volume-slider::-webkit-slider-track {
    height: 3px;
    border-radius: 1.5px;
    background: #e0e0e0;
}

.piano-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glacier-teal, #2C5F5D);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 95, 93, 0.3);
    transition: all 0.2s ease;
}

.piano-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--golden-dome, #D2691E);
    box-shadow: 0 3px 8px rgba(210, 105, 30, 0.4);
}

.piano-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glacier-teal, #2C5F5D);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(44, 95, 93, 0.3);
}

.volume-label {
    font-size: 14px;
    opacity: 0.7;
    color: var(--glacier-teal, #2C5F5D);
}

/* Responsive design */
@media (max-width: 768px) {
    .piano-control-panel {
        bottom: 20px;
        left: 20px;
    }
    
    .piano-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .piano-volume-slider {
        width: 60px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .piano-button {
        background: #000;
        border: 2px solid #fff;
    }
    
    .piano-volume-container {
        background: #fff;
        border: 2px solid #000;
    }
    
    .piano-volume-slider::-webkit-slider-thumb {
        background: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .piano-button {
        animation: none !important;
    }
    
    .piano-button::after {
        animation: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .piano-volume-container {
        background: rgba(30, 30, 30, 0.9);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .volume-label {
        color: #87ceeb;
    }
}