/* ═══════════════════════════════════════════════════════════════
   OMNI-SONG TOOL 2001 - Y2K AESTHETIC STYLESHEET
   ~*~ best viewed in netscape navigator ~*~
   ═══════════════════════════════════════════════════════════════ */

/* CSS Custom Properties */
:root {
    --primary-purple: #9933ff;
    --primary-pink: #ff33cc;
    --primary-blue: #3366ff;
    --accent-cyan: #00ffff;
    --accent-lime: #99ff00;
    --accent-yellow: #ffff00;
    
    --bg-dark: #1a0033;
    --bg-panel: rgba(20, 0, 40, 0.85);
    --bg-panel-light: rgba(60, 20, 100, 0.7);
    
    --text-light: #ffffff;
    --text-glow: #ff99ff;
    --text-cyan: #00ffff;
    
    --border-light: #cc99ff;
    --border-bright: #ff66cc;
    
    --shadow-glow: 0 0 10px rgba(153, 51, 255, 0.5);
    --shadow-pink: 0 0 15px rgba(255, 51, 204, 0.4);
}

/* Font imports - Y2K favorites */
@font-face {
    font-family: 'Y2K Pixel';
    src: local('Press Start 2P'), local('VT323');
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES & RESET
   ═══════════════════════════════════════════════════════════════ */

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

body {
    font-family: 'Trebuchet MS', 'Comic Sans MS', 'Arial', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('images/bg4.png');
    background-repeat: repeat;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SPARKLE DECORATIONS
   ═══════════════════════════════════════════════════════════════ */

.sparkle {
    position: fixed;
    font-size: 24px;
    color: var(--accent-yellow);
    animation: sparkle-float 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 0 0 10px var(--accent-yellow);
}

.sparkle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 8%; animation-delay: 0.5s; }
.sparkle-3 { top: 50%; left: 3%; animation-delay: 1s; }
.sparkle-4 { top: 70%; right: 5%; animation-delay: 1.5s; }
.sparkle-5 { top: 85%; left: 10%; animation-delay: 2s; }

@keyframes sparkle-float {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-10px) rotate(180deg); 
    }
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════
   HEADER STYLES
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(153, 51, 255, 0.3), transparent);
    border: 3px ridge var(--border-light);
    border-radius: 10px;
}

/* Marquee Animation */
.marquee-container {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink), var(--primary-blue));
    padding: 8px;
    margin-bottom: 15px;
    border: 2px inset var(--border-bright);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 12px;
    color: var(--accent-yellow);
    text-shadow: 1px 1px 0 #000;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hit-counter {
    font-family: 'Courier New', monospace;
    background: #000;
    padding: 2px 6px;
    border: 1px inset #666;
    color: #0f0;
}

.main-title {
    font-size: 2.5em;
    background: linear-gradient(180deg, var(--accent-cyan), var(--primary-pink), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 0 var(--primary-purple));
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.title-star {
    -webkit-text-fill-color: var(--accent-yellow);
    animation: star-pulse 1s ease-in-out infinite alternate;
}

@keyframes star-pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.tagline {
    font-style: italic;
    color: var(--text-glow);
    font-size: 1.1em;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-badge {
    background: var(--bg-panel);
    border: 2px outset var(--primary-purple);
    padding: 5px 15px;
    font-size: 12px;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-badge:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    border-style: inset;
}

/* ═══════════════════════════════════════════════════════════════
   PANEL STYLES (The classic Y2K box look)
   ═══════════════════════════════════════════════════════════════ */

.panel {
    background: var(--bg-panel);
    border: 4px ridge var(--border-light);
    margin-bottom: 20px;
    box-shadow: 
        var(--shadow-glow),
        inset 0 0 30px rgba(153, 51, 255, 0.2);
}

.panel-header {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    padding: 10px 15px;
    border-bottom: 2px groove var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.2em;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
}

.panel-content {
    padding: 20px;
}

.help-btn {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 11px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit;
}

.help-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* ═══════════════════════════════════════════════════════════════
   GENRE SELECTION PANEL
   ═══════════════════════════════════════════════════════════════ */

.genre-panel {
    background-image: url('images/bg6.png');
    background-blend-mode: overlay;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.genre-btn {
    background: linear-gradient(145deg, rgba(60, 20, 100, 0.9), rgba(30, 10, 60, 0.9));
    border: 3px outset var(--primary-purple);
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.genre-btn:hover {
    border-style: inset;
    background: linear-gradient(145deg, rgba(100, 40, 150, 0.9), rgba(60, 20, 100, 0.9));
    transform: scale(1.02);
}

.genre-btn.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), inset 0 0 20px rgba(0, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(0, 100, 100, 0.5), rgba(60, 20, 100, 0.9));
}

.genre-icon {
    font-size: 28px;
}

.genre-name {
    color: var(--text-light);
    font-weight: bold;
    font-size: 14px;
}

.genre-mood {
    color: var(--text-glow);
    font-size: 11px;
    font-style: italic;
}

/* Generation Controls */
.generation-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-label {
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-toggle {
    display: flex;
    gap: 10px;
}

.mode-btn {
    background: var(--bg-panel);
    border: 2px outset var(--border-light);
    color: var(--text-light);
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.mode-btn:hover {
    background: var(--bg-panel-light);
}

.mode-btn.active {
    border-style: inset;
    background: linear-gradient(145deg, var(--primary-purple), var(--primary-pink));
    color: var(--accent-yellow);
}

.generate-btn {
    background: linear-gradient(180deg, var(--primary-pink), var(--primary-purple));
    border: 4px outset var(--border-bright);
    color: var(--text-light);
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 2px;
    transition: all 0.2s;
    text-shadow: 2px 2px 0 #000;
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-pink);
}

.generate-btn:active {
    border-style: inset;
    transform: scale(0.98);
}

.btn-star {
    color: var(--accent-yellow);
    animation: star-pulse 0.5s ease-in-out infinite alternate;
}

/* ═══════════════════════════════════════════════════════════════
   OUTPUT CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.output-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .output-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   CHORD PROGRESSION PANEL
   ═══════════════════════════════════════════════════════════════ */

.chord-panel {
    background-image: url('images/bg1.png');
    background-blend-mode: overlay;
}

@media (min-width: 768px) {
    .chord-panel {
        grid-column: span 2;
    }
}

.key-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px inset var(--border-light);
}

.key-label {
    color: var(--accent-cyan);
    font-size: 14px;
    margin-right: 10px;
}

.key-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-yellow);
    text-shadow: 0 0 10px var(--accent-yellow);
}

.key-mood {
    color: var(--text-glow);
    font-size: 14px;
    margin-left: 10px;
    font-style: italic;
}

.chord-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.chord-card {
    background: linear-gradient(145deg, rgba(40, 10, 80, 0.9), rgba(20, 5, 40, 0.9));
    border: 3px ridge var(--primary-purple);
    padding: 15px;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s;
}

.chord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(153, 51, 255, 0.5);
}

.chord-number {
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.chord-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary-pink);
}

.chord-type {
    font-size: 11px;
    color: var(--text-glow);
    margin-top: 5px;
}

.chord-feeling {
    font-size: 10px;
    color: var(--accent-lime);
    font-style: italic;
    margin-top: 3px;
}

/* Chord function colors */
.chord-card.tonic { border-color: var(--accent-cyan); }
.chord-card.subdominant { border-color: var(--accent-lime); }
.chord-card.dominant { border-color: var(--primary-pink); }

.progression-instructions {
    text-align: center;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px dashed var(--accent-cyan);
}

.instruction-text {
    color: var(--text-light);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   OMNICHORD PANEL
   ═══════════════════════════════════════════════════════════════ */

.omnichord-panel {
    background-image: url('images/bg2.png');
    background-blend-mode: overlay;
}

.omnichord-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.omnichord-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border: 2px inset var(--border-light);
}

.section-title {
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.omnichord-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.omni-btn {
    background: linear-gradient(145deg, #444, #222);
    border: 2px outset #666;
    padding: 10px 15px;
    color: var(--text-light);
    font-weight: bold;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.omni-btn.major { background: linear-gradient(145deg, #4a3080, #2a1050); }
.omni-btn.minor { background: linear-gradient(145deg, #304080, #102050); }
.omni-btn.seventh { background: linear-gradient(145deg, #804030, #501020); }

.omni-btn.active {
    border-style: inset;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.strum-pattern {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
}

.strum-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strum-arrow .arrow {
    font-size: 30px;
    color: var(--accent-yellow);
}

.strum-arrow .beat {
    font-size: 10px;
    color: var(--text-glow);
}

.voice-recommendation {
    text-align: center;
}

.voice-name {
    font-size: 20px;
    color: var(--accent-lime);
    font-weight: bold;
}

/* Chord Progression Variations */
.variations-section {
    margin-top: 10px;
    border-top: 2px dashed var(--border-light);
    padding-top: 15px;
}

.variations-intro {
    color: var(--text-glow);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-purple);
    border-radius: 5px;
    padding: 12px;
    transition: all 0.2s;
}

.variation-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.variation-name {
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 14px;
}

.variation-difficulty {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.variation-difficulty.easy {
    background: var(--accent-lime);
    color: #000;
}

.variation-difficulty.medium {
    background: var(--accent-yellow);
    color: #000;
}

.variation-difficulty.advanced {
    background: var(--primary-pink);
    color: #fff;
}

.variation-pattern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.variation-chord {
    background: linear-gradient(145deg, rgba(60, 20, 100, 0.8), rgba(30, 10, 60, 0.8));
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: bold;
    border-radius: 3px;
}

.variation-chord.repeat {
    opacity: 0.7;
}

.variation-chord.passing {
    background: linear-gradient(145deg, rgba(100, 50, 50, 0.8), rgba(60, 30, 30, 0.8));
    border-color: var(--primary-pink);
    font-style: italic;
}

.variation-arrow {
    color: var(--accent-cyan);
    font-size: 16px;
    display: flex;
    align-items: center;
}

.variation-description {
    color: var(--text-glow);
    font-size: 11px;
    font-style: italic;
    padding-left: 5px;
    border-left: 2px solid var(--primary-purple);
}

/* ═══════════════════════════════════════════════════════════════
   SYNTH PANEL
   ═══════════════════════════════════════════════════════════════ */

.synth-panel {
    background-image: url('images/bg3.png');
    background-blend-mode: overlay;
}

.synth-recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.synth-setting {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border: 2px inset var(--border-light);
}

.setting-label {
    color: var(--accent-cyan);
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.setting-value {
    color: var(--accent-yellow);
    font-size: 18px;
    font-weight: bold;
}

.setting-explain {
    display: block;
    color: var(--text-glow);
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

.synth-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.synth-note {
    background: linear-gradient(145deg, var(--primary-purple), var(--primary-pink));
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: bold;
    color: var(--text-light);
}

.note-hint {
    color: var(--text-glow);
    font-size: 11px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   DRUM PATTERN PANEL
   ═══════════════════════════════════════════════════════════════ */

.drum-panel {
    background-image: url('images/bg5.png');
    background-blend-mode: overlay;
}

.tempo-display {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px inset var(--border-light);
}

.tempo-label {
    color: var(--accent-cyan);
    font-size: 12px;
    margin-right: 10px;
}

.tempo-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-yellow);
}

.tempo-feel {
    color: var(--text-glow);
    font-size: 12px;
    margin-left: 10px;
    font-style: italic;
}

.drum-grid-container {
    overflow-x: auto;
    padding: 10px 0;
}

.drum-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: fit-content;
}

.drum-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drum-label {
    width: 60px;
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: bold;
    text-align: right;
}

.drum-steps {
    display: flex;
    gap: 4px;
}

.drum-step {
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px outset #444;
    transition: all 0.2s;
}

.drum-step.active {
    background: linear-gradient(145deg, var(--accent-lime), var(--primary-purple));
    border-style: inset;
    box-shadow: 0 0 8px var(--accent-lime);
}

.drum-step.beat-marker {
    border-top: 2px solid var(--accent-yellow);
}

.drum-instructions {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px dashed var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   SAVE PANEL
   ═══════════════════════════════════════════════════════════════ */

.save-panel {
    background-image: url('images/bg7.png');
    background-blend-mode: overlay;
}

.save-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.song-name-input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px inset var(--border-light);
    color: var(--text-light);
    font-family: inherit;
    font-size: 14px;
}

.song-name-input::placeholder {
    color: var(--text-glow);
    font-style: italic;
}

.save-btn {
    background: linear-gradient(180deg, var(--accent-lime), #339900);
    border: 3px outset #66cc00;
    color: #000;
    font-weight: bold;
    padding: 12px 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-lime);
}

.save-btn:active {
    border-style: inset;
}

.saved-songs h3 {
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.songs-list {
    background: rgba(0, 0, 0, 0.3);
    border: 2px inset var(--border-light);
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.saved-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px dotted var(--border-light);
    transition: background 0.2s;
}

.saved-song-item:hover {
    background: rgba(153, 51, 255, 0.2);
}

.saved-song-item:last-child {
    border-bottom: none;
}

.song-info {
    flex: 1;
}

.song-title {
    color: var(--text-light);
    font-weight: bold;
}

.song-genre {
    color: var(--text-glow);
    font-size: 11px;
}

.song-actions {
    display: flex;
    gap: 5px;
}

.song-action-btn {
    background: var(--bg-panel);
    border: 1px outset var(--border-light);
    color: var(--accent-cyan);
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.song-action-btn:hover {
    background: var(--primary-purple);
}

.song-action-btn.delete {
    color: #ff6666;
}

.empty-state {
    text-align: center;
    color: var(--text-glow);
    font-style: italic;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   HELP MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 4px ridge var(--border-bright);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.modal-close:hover {
    color: var(--primary-pink);
}

.modal-title {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    padding: 15px;
    color: var(--accent-yellow);
    text-align: center;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--accent-cyan);
    margin: 15px 0 10px;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body .tip {
    background: rgba(153, 51, 255, 0.3);
    padding: 10px;
    border-left: 3px solid var(--accent-lime);
    margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border: 3px ridge var(--border-light);
    background: var(--bg-panel);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(145deg, var(--primary-purple), var(--primary-pink));
    border: 2px outset var(--border-bright);
    padding: 5px 12px;
    font-size: 11px;
    color: var(--text-light);
}

.webring {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px inset var(--border-light);
    display: inline-flex;
    gap: 15px;
    align-items: center;
}

.webring span {
    color: var(--accent-cyan);
    cursor: pointer;
}

.webring-name {
    color: var(--accent-yellow) !important;
}

.copyright {
    color: var(--text-glow);
    font-size: 11px;
    margin: 15px 0;
}

.under-construction {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--accent-yellow);
    font-size: 12px;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border: 1px inset var(--border-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-purple), var(--primary-pink));
    border: 2px outset var(--border-light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-pink), var(--primary-purple));
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .main-title {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    
    .marquee-text {
        font-size: 10px;
    }
    
    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chord-name {
        font-size: 22px;
    }
    
    .drum-step {
        width: 18px;
        height: 18px;
    }
    
    .generate-btn {
        font-size: 14px;
        padding: 12px 25px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS FOR GENERATION
   ═══════════════════════════════════════════════════════════════ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chord-card {
    animation: fade-in-up 0.5s ease-out forwards;
}

.chord-card:nth-child(1) { animation-delay: 0.1s; }
.chord-card:nth-child(2) { animation-delay: 0.2s; }
.chord-card:nth-child(3) { animation-delay: 0.3s; }
.chord-card:nth-child(4) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════════
   PIANO CHEAT SHEET (Sticky)
   ═══════════════════════════════════════════════════════════════ */

.piano-panel {
    background-image: url('images/bg3.png');
    background-blend-mode: overlay;
    transition: all 0.3s ease;
}

.piano-panel.sticky {
    position: sticky;
    top: 10px;
    z-index: 100;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.cheatsheet-header {
    cursor: pointer;
}

.toggle-btn {
    background: linear-gradient(145deg, var(--primary-purple), var(--primary-pink));
    border: 2px outset var(--border-bright);
    color: var(--text-light);
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.toggle-btn:hover {
    transform: scale(1.05);
}

.toggle-btn.active {
    border-style: inset;
}

.toggle-icon {
    transition: transform 0.3s;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.cheatsheet-content {
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cheatsheet-intro {
    text-align: center;
    color: var(--text-glow);
    font-style: italic;
    margin-bottom: 20px;
}

/* Piano Keyboard Styles */
.piano-keyboard {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow-x: auto;
    padding: 10px;
}

.piano-octave {
    position: relative;
    display: flex;
    height: 150px;
}

.white-key {
    width: 45px;
    height: 150px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 90%, #ddd 100%);
    border: 2px solid #333;
    border-radius: 0 0 5px 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    z-index: 1;
}

.white-key:hover {
    background: linear-gradient(180deg, #e0ffff 0%, #b0e0e0 90%, #90c0c0 100%);
}

.white-key.highlight {
    background: linear-gradient(180deg, var(--accent-cyan) 0%, #00cccc 90%, #009999 100%);
}

.white-key .key-note {
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-shadow: none;
}

.black-key {
    position: absolute;
    width: 30px;
    height: 95px;
    background: linear-gradient(180deg, #333 0%, #111 90%, #000 100%);
    border: 2px solid #000;
    border-radius: 0 0 4px 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.1s;
}

.black-key:hover {
    background: linear-gradient(180deg, #555 0%, #333 90%, #222 100%);
}

.black-key.highlight {
    background: linear-gradient(180deg, var(--primary-pink) 0%, #cc0099 90%, #990066 100%);
}

.black-key .key-note {
    color: #fff;
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
}

/* Position black keys */
.black-key-1 { left: 30px; }   /* C# between C and D */
.black-key-2 { left: 75px; }   /* D# between D and E */
.black-key-3 { left: 165px; }  /* F# between F and G */
.black-key-4 { left: 210px; }  /* G# between G and A */
.black-key-5 { left: 255px; }  /* A# between A and B */

/* Note Legend */
.note-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 25px;
    height: 25px;
    border: 2px solid var(--border-light);
    border-radius: 3px;
}

.white-sample {
    background: linear-gradient(180deg, #fff, #ddd);
}

.black-sample {
    background: linear-gradient(180deg, #333, #000);
}

.cyan-sample {
    background: linear-gradient(180deg, var(--accent-cyan), #009999);
}

/* Compact legend for sticky mode */
.note-legend.compact {
    gap: 20px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.note-legend.compact .legend-item {
    font-size: 12px;
}

.note-legend.compact .legend-color {
    width: 18px;
    height: 18px;
}

.note-legend.compact strong {
    color: var(--accent-lime);
}

.legend-text {
    color: var(--text-light);
    font-size: 13px;
}

/* Quick Reference */
.quick-reference {
    background: rgba(0, 0, 0, 0.3);
    border: 2px inset var(--border-light);
    padding: 15px;
    margin-top: 15px;
}

.quick-reference h3 {
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.quick-reference ul {
    list-style: none;
    padding: 0;
}

.quick-reference li {
    color: var(--text-light);
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.quick-reference li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-size: 10px;
}

.quick-reference li strong {
    color: var(--accent-lime);
}

/* Responsive piano */
@media (max-width: 600px) {
    .white-key {
        width: 35px;
        height: 120px;
    }
    
    .black-key {
        width: 24px;
        height: 75px;
    }
    
    .black-key-1 { left: 23px; }
    .black-key-2 { left: 58px; }
    .black-key-3 { left: 128px; }
    .black-key-4 { left: 163px; }
    .black-key-5 { left: 198px; }
    
    .white-key .key-note {
        font-size: 12px;
    }
    
    .black-key .key-note {
        font-size: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AUDIO CONTROLS - PLAY BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed var(--border-light);
}

.play-btn, .stop-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn {
    background: linear-gradient(180deg, #00cc66, #009933);
    border: 3px outset #00ff66;
    color: #000;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.play-btn:active {
    border-style: inset;
    transform: scale(0.98);
}

.play-btn.playing {
    background: linear-gradient(180deg, #ffaa00, #cc8800);
    border-color: #ffcc00;
    animation: pulse-glow 1s ease-in-out infinite;
}

.stop-btn {
    background: linear-gradient(180deg, #ff3333, #cc0000);
    border: 3px outset #ff6666;
    color: #fff;
}

.stop-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

.stop-btn:active {
    border-style: inset;
    transform: scale(0.98);
}

.play-icon, .stop-icon {
    font-size: 16px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 170, 0, 0.7);
    }
}

.now-playing {
    color: var(--accent-lime);
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
    text-shadow: 0 0 10px var(--accent-lime);
}

/* Drum playhead indicator */
.drum-step.playhead {
    position: relative;
}

.drum-step.playhead::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent-cyan);
    animation: playhead-bounce 0.2s ease-out;
}

@keyframes playhead-bounce {
    0% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* Currently playing chord highlight */
.chord-card.playing {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 30px var(--accent-cyan), 0 0 60px var(--primary-pink);
    border-color: var(--accent-cyan);
}

/* Disabled state for buttons before generation */
.play-btn:disabled, .stop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Rainbow text effect for special elements */
.rainbow-text {
    background: linear-gradient(
        90deg,
        #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 3s linear infinite;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}
