/* Juno 60 Authentic Styling */
.juno-60-container {
    background: linear-gradient(135deg, #f5f5dc 0%, #ede0c8 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.juno-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.juno-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c1810;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 8px;
    margin: 0;
}

.roland-logo {
    font-size: 1.2rem;
    color: #ff6b35;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.init-button {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.init-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.juno-panel {
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    border: 3px solid #999;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 8px 20px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.control-section {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.1);
}

.section-title {
    color: #2c1810;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Rotary Knobs */
.juno-knob {
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #c0c0c0);
    border: 3px solid #888;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.juno-knob::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    width: 3px;
    height: 25%;
    background: #333;
    border-radius: 2px;
    transform: translateX(-50%);
    transform-origin: center 400%;
}

.juno-knob:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Toggle Switches */
.juno-switch {
    width: 60px;
    height: 30px;
    background: #333;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    border: 2px solid #666;
    transition: all 0.3s;
}

.juno-switch.active {
    background: #ff6b35;
}

.switch-handle {
    width: 22px;
    height: 22px;
    background: #f0f0f0;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.juno-switch.active .switch-handle {
    transform: translateX(30px);
}

/* Preset Buttons */
.preset-section {
    margin-bottom: 20px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 20px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.preset-button {
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.preset-button:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.preset-button.active {
    background: #ff6b35;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.7);
}

.preset-number {
    font-weight: bold;
    font-size: 1.1rem;
}

.preset-name {
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Virtual Keyboard */
.virtual-keyboard {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.5);
}

.white-keys {
    display: flex;
    gap: 2px;
}

.black-keys {
    display: flex;
    position: absolute;
    top: 20px;
    left: 20px;
    gap: 2px;
}

.piano-key {
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}

.piano-key.white {
    width: 40px;
    height: 120px;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
}

.piano-key.black {
    width: 24px;
    height: 80px;
    background: #222;
    border-radius: 0 0 3px 3px;
    margin-left: 16px;
    margin-right: 16px;
    z-index: 10;
}

.black-key-spacer {
    width: 56px;
}

.piano-key.pressed {
    transform: translateY(2px);
}

.piano-key.white.pressed {
    background: #ff6b35;
}

.piano-key.black.pressed {
    background: #ff6b35;
}

.piano-key:hover {
    filter: brightness(1.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .juno-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .juno-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .controls-row {
        gap: 15px;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .piano-key.white {
        width: 30px;
        height: 100px;
    }
    
    .piano-key.black {
        width: 18px;
        height: 65px;
        margin-left: 12px;
        margin-right: 12px;
    }
    
    .black-key-spacer {
        width: 42px;
    }
}

@media (max-width: 480px) {
    .juno-60-container {
        padding: 10px;
    }
    
    .juno-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .control-section {
        padding: 15px;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
}