/* Piano Keyboard Styles */
.piano-container {
    width: 100%;
    height: calc(100vh - 60px); /* Account for header height */
    display: flex;
    flex-direction: column;
    background-color: #000;
    overflow: hidden;
}

.piano-octave {
    position: relative;
    width: 100%;
    height: 25%;
    border-bottom: 1px solid #333;
    overflow: visible;
}

.piano-key {
    position: absolute;
    border: 1px solid #000000;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.piano-key.white-key {
    height: 100%;
    z-index: 1;
    border-radius: 0 0 8px 8px;
}

.piano-key.black-key {
    height: 60%;
    z-index: 2;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.piano-key:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.piano-key:active {
    transform: scale(0.98);
    filter: brightness(1.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .piano-container {
        height: calc(100vh - 80px); /* Account for header */
    }
    
    .piano-key {
        padding-bottom: 4px;
        font-size: 10px;
    }
}

/* Landscape mobile mode - show only middle two octaves, hide header */
@media (max-width: 900px) and (orientation: landscape) {
    .piano-container {
        height: 100vh;
    }
    
    .piano-octave:first-child,
    .piano-octave:last-child {
        display: none;
    }
    
    .piano-octave {
        height: 50%;
    }
}

/* Performance optimizations */
.piano-key {
    will-change: background-color, transform;
    backface-visibility: hidden;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .piano-key:hover {
        filter: none;
        transform: none;
    }
    
    .piano-key {
        transition: background-color 0.05s ease;
    }
} 