/* KROWNED KUEENS Virtual Instruments Styling */

:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --accent-orange: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --card-border: #ff6b35;
    --hover-bg: #2a2a4e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--secondary-bg);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-orange);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-orange);
    font-weight: 500;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--accent-orange);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Instrument Cards Grid */
.instruments-grid {
    margin-bottom: 4rem;
}

.instrument-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.instrument-card {
    background: var(--secondary-bg);
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instrument-card:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.instrument-card.active {
    background: var(--hover-bg);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Instrument Container */
.instrument-container {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--accent-orange);
    min-height: 400px;
    display: none;
    position: relative;
}

.instrument-container.active {
    display: block;
}

/* Character GIF Styles */
.character-gif {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.character-gif:hover {
    transform: scale(1.1);
}

.character-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.character-info {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-gif:hover .character-info {
    opacity: 1;
}

/* Common Instrument Styles */
.instrument {
    width: 100%;
    max-width: 100%;
}

.instrument-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.instrument-title {
    font-size: 1.8rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.instrument-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent-orange);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn.secondary:hover {
    background: var(--accent-orange);
    color: var(--text-primary);
}

/* Piano Styles */
.piano-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.piano {
    display: flex;
    position: relative;
    background: #333;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.piano-key.white {
    width: 40px;
    height: 200px;
    background: white;
    border: 1px solid #ccc;
    color: #333;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.piano-key.white:hover {
    background: #f0f0f0;
}

.piano-key.white.active {
    background: var(--accent-orange);
    color: white;
}

.piano-key.black {
    width: 25px;
    height: 120px;
    background: #222;
    color: white;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0 0 3px 3px;
}

.piano-key.black:hover {
    background: #444;
}

.piano-key.black.active {
    background: var(--accent-orange);
}

/* Fretboard Styles (Guitar, Bass, Ukulele) */
.fretboard {
    background: #8B4513;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.fretboard-container {
    min-width: 800px;
    position: relative;
}

.string {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.string-label {
    width: 40px;
    text-align: center;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1.2rem;
}

.frets {
    display: flex;
    flex: 1;
    border-top: 2px solid #666;
    border-bottom: 2px solid #666;
}

.fret {
    flex: 1;
    height: 40px;
    border-right: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.fret:hover {
    background: rgba(255, 107, 53, 0.3);
}

.fret.active {
    background: var(--accent-orange);
    color: white;
}

/* Drum Kit Styles */
.drum-kit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.drum {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 3px solid var(--accent-orange);
    background: var(--secondary-bg);
}

.drum:hover {
    background: var(--accent-orange);
    transform: scale(1.05);
}

.drum.active {
    background: var(--accent-orange);
    animation: drumHit 0.2s ease;
}

@keyframes drumHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Drum Machine Styles */
.drum-machine {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.sequencer {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.sequencer-row {
    display: grid;
    grid-template-columns: 120px repeat(16, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.track-label {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.step {
    aspect-ratio: 1;
    background: var(--primary-bg);
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step:hover {
    border-color: var(--accent-orange);
}

.step.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.step.playing {
    box-shadow: 0 0 10px var(--accent-orange);
}

/* Percussion Instruments (Glockenspiel, Xylophone) */
.percussion-bars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.percussion-bar {
    width: 60px;
    height: 200px;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 600;
    padding-bottom: 10px;
    border: 2px solid var(--accent-orange);
}

.percussion-bar.glockenspiel {
    background: linear-gradient(to bottom, #c0c0c0, #808080);
}

.percussion-bar.xylophone {
    background: linear-gradient(to bottom, #8B4513, #654321);
}

.percussion-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.percussion-bar.active {
    background: var(--accent-orange) !important;
    animation: barHit 0.3s ease;
}

@keyframes barHit {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Google Translate Widget Positioning */
.gtranslate_wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .instrument-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instrument-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .piano-key.white {
        width: 30px;
        height: 150px;
    }
    
    .piano-key.black {
        width: 20px;
        height: 90px;
    }
    
    .drum-kit {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .percussion-bars {
        gap: 0.3rem;
    }
    
    .percussion-bar {
        width: 40px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .instrument-container {
        padding: 1rem;
    }
    
    .sequencer-row {
        grid-template-columns: 80px repeat(8, 1fr);
    }
}

