/* ==========================================================================
   CHIBA.DK CENTRAL STUDIO STILARK
   ========================================================================== */

/* Globale indstillinger */
body { 
    font-family: 'Segoe UI', sans-serif; 
    line-height: 1.6; 
    background-color: #121214; 
    color: #e2e8f0; 
    margin: 0; 
    padding: 30px; 
    padding-top: 70px !important; /* Forhindrer at indhold gemmer sig bag top-navbar */
    text-align: center; 
}

h1 { 
    color: #00adb5; 
    font-size: 32px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,173,181,0.3);
    border-bottom: 2px solid #2d3748; 
    padding-bottom: 15px; 
    margin-bottom: 5px; 
}

h2 { 
    color: #ff9f43; 
    font-size: 1.3em; 
    border-bottom: 1px solid #2d3748; 
    padding-bottom: 8px; 
    margin-top: 0; 
}

.subtitle { 
    color: #a0aec0; 
    margin-top: 0;
    margin-bottom: 40px; 
    font-size: 1.1em; 
}

.footer-note { 
    color: #4a5568; 
    font-size: 0.85em; 
    margin-top: 60px; 
}

.sub-note { 
    font-size: 0.85em; 
    color: #718096; 
    margin-left: 5px; 
}

/* Fastlåst Top-Menubjælke */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #00adb5;
}

.top-navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    padding: 6px 12px;
    border-radius: 4px;
    background: #162447;
    transition: all 0.2s ease;
    border-left: 3px solid #00adb5;
}

.top-navbar a:hover {
    background: #e43f5a;
    border-left-color: #fff;
}

/* Navigations-specifikke highlights (Inline-styles flyttet til klasser) */
.nav-active {
    background: #00adb5 !important;
}

.nav-orange {
    border-color: #ff9f43 !important; 
    color: #ff9f43 !important;
}

/* Grid System */
.grid-container { 
    max-width: 1400px; 
    margin: 0 auto; /* 👈 Centrerer selve rammen på skærmen */
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 25px; 
    justify-content: center; /* 👈 Centrerer boksene internt i griddet */
}

/* Kategori-bokse */
.category-box { 
    background: #1a1a2e; 
    padding: 25px; 
    border-radius: 10px; 
    border: 1px solid #2d3748; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.4); 
    text-align: left; 
}

/* Synth Links / Knapper */
.synth-link { 
    display: block; 
    background: #162447; 
    color: #fff; 
    text-decoration: none; 
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 6px; 
    font-weight: bold; 
    border-left: 4px solid #00adb5; 
    transition: all 0.2s ease; 
}

.synth-link:hover { 
    background: #e43f5a; 
    border-left-color: #fff; 
    transform: translateX(5px); 
}

/* Badges / Mærkater */
.badge { 
    background: #ff2e63; 
    color: #fff; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 0.75em; 
    float: right; 
    font-weight: bold; 
}

/* ==========================================================================
   DYNAMISKE FARVE-TEMAER (Flyttet fra inline-styles til genanvendelige klasser)
   ========================================================================== */

/* Cyan Tema */
.theme-cyan { border-color: #00adb5; }
.theme-cyan h2 { color: #00adb5; }
.theme-cyan .synth-link { border-left-color: #00adb5; background: #222831; }
.theme-cyan .badge { background: #00adb5; }

/* Orange Tema */
.theme-orange { border-color: #ff9f43; }
.theme-orange h2 { color: #ff9f43; }
.theme-orange .synth-link { border-left-color: #ff9f43; background: #222831; }
.theme-orange .badge { background: #ff9f43; }

/* Pink / Rød Tema */
.theme-pink { border-color: #ff2e63; }
.theme-pink h2 { color: #ff2e63; }
.theme-pink .synth-link { border-left-color: #ff2e63; background: #222831; }
.theme-pink .badge { background: #ff2e63; }

/* Lilla Tema */
.theme-purple { border-color: #9b59b6; }
.theme-purple h2 { color: #9b59b6; }
.theme-purple .synth-link { border-left-color: #9b59b6; background: #222831; }
.theme-purple .badge { background: #9b59b6; }

/* Rød Panic Tema */
.theme-panic { border-color: #e43f5a; }
.theme-panic h2 { color: #e43f5a; }
.theme-panic .synth-link { border-left-color: #e43f5a; background: #222831; }
.theme-panic .badge { background: #e43f5a; }

/* ==========================================================================
   MIXER & RUTING CENTRAL SPECIFIKKE KLASSER
   ========================================================================== */

/* Mixer Grid Layout */
.mixer-strip-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
    max-width: 1400px;
    overflow-x: auto;
    padding-bottom: 15px;
}

/* Enkelte kanalstriber (f.eks. Ch 1-16) */
.mixer-strip {
    background: #161626;
    border: 1px solid #2d3748;
    border-radius: 6px;
    width: 75px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mixer-strip.active-input {
    border-color: #00adb5;
    box-shadow: 0 0 10px rgba(0,173,181,0.2);
}

/* Knapper og potmetre på mixeren */
.fader-track {
    width: 6px;
    height: 150px;
    background: #0b0b12;
    border-radius: 3px;
    margin: 15px 0;
    position: relative;
}

.fader-knob {
    width: 20px;
    height: 10px;
    background: #ff9f43;
    border-radius: 2px;
    position: absolute;
    left: -7px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.fader-knob.cyan-knob { background: #00adb5; }
.fader-knob.pink-knob { background: #ff2e63; }

.pan-pot {
    width: 16px;
    height: 16px;
    background: #22223b;
    border: 2px solid #8b8ba7;
    border-radius: 50%;
    margin-bottom: 10px;
}

.channel-num {
    font-family: monospace;
    font-size: 11px;
    color: #8b8ba7;
    margin-bottom: 5px;
}

/* ==========================================================================
   INTERAKTIV MIXER-MATRIX & INTERFACE ELEMENTER
   ========================================================================== */

/* Kapitel-knapper */
.chapter-nav { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.chapter-btn { 
    background: #141423; 
    border: 1px solid #2d2d44; 
    color: #8b8ba7; 
    padding: 12px 24px; 
    font-weight: bold; 
    font-size: 14px; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.3s; 
    letter-spacing: 0.5px; 
}

.chapter-btn:hover { 
    color: #fff; 
    border-color: #00adb5; 
    background: rgba(0,173,181,0.1); 
}

.chapter-btn.active { 
    background: #00adb5; 
    color: #fff; 
    border-color: #00adb5; 
    box-shadow: 0 0 15px rgba(0,173,181,0.4); 
}

/* Stor Matrix Tabel til signal-routing */
.matrix-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #141423; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    margin-bottom: 40px; 
}

.matrix-table th { 
    background: #1a1a2e; 
    color: #00adb5; 
    text-align: left; 
    padding: 15px 20px; 
    font-size: 12px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    border-bottom: 2px solid #2d2d44; 
}

.matrix-table td { 
    padding: 15px 20px; 
    border-bottom: 1px solid #1a1a2e; 
    font-size: 14px; 
    line-height: 1.6; 
    text-align: left; /* Sikrer at ruting-teksterne læses flot fra venstre */
}

/* Specifikke tekst-fremhævninger i din mixer-matrix */
.val-text { 
    color: #00adb5; 
    font-weight: bold; 
}

.fun-text { 
    color: #ff2e63; 
    font-weight: bold; 
}
/* Kontrolpanel til farveskift */
.theme-switcher {
    margin: 20px auto 30px auto;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.theme-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease;
}
.theme-btn:active { transform: scale(0.95); }
.btn-cyan { background: #00adb5; }
.btn-orange { background: #ff9f43; color: #121214; }
.btn-pink { background: #ff2e63; }
.btn-purple { background: #9b59b6; }
.btn-panic { background: #e43f5a; }
