﻿
/* ===== ROOT ===== */
:root {
    --lo-accent: #06b6d4;
}

/* ===== BODY ===== */
body {
    background-color: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    transition: background-color 0.4s, color 0.4s;
}

    body.theme-light {
        background-color: #f0f4f8;
        color: #0f172a;
    }

/* ===== NAVBAR ===== */
.navbar {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b;
    transition: background-color 0.4s, border-color 0.4s;
}

body.theme-light .navbar {
    background-color: #ffffff !important;
    border-bottom-color: #e2e8f0;
}

/* ===== BRAND NAME ===== */
.brand-word-listing {
    color: #ffffff;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
    text-shadow: 0 0 10px rgba(255,255,255,0.25), 0 0 22px rgba(255,255,255,0.1);
    transition: color 0.4s, text-shadow 0.4s;
}

body.theme-light .brand-word-listing {
    color: #0f172a;
    text-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.brand-word-optimization {
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 55%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(6,182,212,0.5)) drop-shadow(0 0 10px rgba(163,230,53,0.18));
}
body.theme-light .brand-word-optimization {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 55%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(220,38,38,0.4));
}

/* POINT 2 FIX: bigger logo on desktop without expanding navbar height */
.brand-icon-mark {
    width: 48px;
    height: 48px;
    margin-right: 6px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px #22d3ee) drop-shadow(0 0 10px #22d3ee);
    transition: filter 0.4s;
}

.brand-icon-line {
    stroke: #22d3ee;
    transition: stroke 0.4s;
}

.brand-icon-dot {
    fill: #a3e635;
    transition: fill 0.4s;
}

body.theme-light .brand-icon-mark {
    filter: drop-shadow(0 0 4px #dc2626) drop-shadow(0 0 10px #dc2626);
}

body.theme-light .brand-icon-line {
    stroke: #dc2626;
}

body.theme-light .brand-icon-dot {
    fill: #ea580c;
}

@media (max-width: 768px) {
    .brand-icon-mark {
        width: 34px;
        height: 34px;
        margin-right: 4px;
    }
}

/* ===== NAV LINKS ===== */
.navbar .nav-link {
    color: #94a3b8 !important;
    border-radius: 6px;
    padding: 4px 12px !important;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* POINT 1 FIX: light theme base text is dark slate */
body.theme-light .navbar .nav-link {
    color: #475569 !important;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.06);
}

body.theme-light .navbar .nav-link:hover {
    background: rgba(0,0,0,0.05);
}

/*
                    POINT 1 FIX: active-nav styling is entirely handled by the
                    JS-injected "lo-nav-accent-style" tag so it always matches
                    the currently selected accent on BOTH themes.
                    The CSS here is a fallback only.
                */
.navbar .nav-link.active-nav {
    color: var(--lo-accent) !important;
}

/* Hamburger */
.navbar-toggler {
    background-color: transparent !important;
    border: 1px solid #334155;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2306b6d4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: #020617;
    color: #94a3b8;
    width: 100%;
    margin-top: auto;
    transition: background-color 0.4s;
}

body.theme-light footer {
    background-color: #e2e8f0;
    color: #64748b;
}

/* =================================================
                   THEME SWITCHER BOX
                   ================================================= */
.theme-switcher-box {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    overflow: visible;
    position: relative;
    transition: background 0.4s, border-color 0.4s;
    flex-shrink: 0;
}

body.theme-light .theme-switcher-box {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.theme-toggle-pill {
    display: flex;
    align-items: center;
    padding: 5px 8px 5px 7px;
    cursor: pointer;
    height: 36px;
    user-select: none;
}

.theme-toggle-track {
    width: 52px;
    height: 26px;
    border-radius: 999px;
    position: relative;
    border: 1px solid #334155;
    background: #0f172a;
    transition: background 0.4s, border-color 0.4s;
    flex-shrink: 0;
}

body.theme-light .theme-toggle-track {
    background: #cbd5e1;
    border-color: #94a3b8;
}

.track-icon-sun {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    opacity: 0.25;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.track-icon-moon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

body.theme-light .track-icon-sun {
    opacity: 0;
}

body.theme-light .track-icon-moon {
    opacity: 0.25;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 28px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e293b;
    box-shadow: 0 0 8px 2px rgba(6,182,212,0.7), 0 0 16px 4px rgba(6,182,212,0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    transition: left 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.3s, box-shadow 0.3s;
    pointer-events: none;
}

body.theme-light .theme-toggle-thumb {
    left: 2px;
    background: #ffffff;
    box-shadow: 0 0 8px 2px rgba(245,158,11,0.7), 0 0 16px 4px rgba(245,158,11,0.3);
}

.theme-toggle-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-left: 8px;
    min-width: 34px;
    text-align: center;
    color: #06b6d4;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

body.theme-light .theme-toggle-label {
    color: #f59e0b;
}

.theme-box-divider {
    width: 1px;
    height: 22px;
    background: #334155;
    flex-shrink: 0;
    transition: background 0.4s;
}

body.theme-light .theme-box-divider {
    background: #cbd5e1;
}

.theme-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 36px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0 9px 9px 0;
    padding: 0;
    transition: background 0.2s;
}

    .theme-dropdown-btn:hover {
        background: #273548;
    }

body.theme-light .theme-dropdown-btn:hover {
    background: #d1d9e0;
}

.dropdown-arrow-svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    display: block;
}

    .dropdown-arrow-svg.open {
        transform: rotate(180deg);
    }

    .dropdown-arrow-svg path {
        stroke: #64748b;
        transition: stroke 0.2s;
    }

.theme-dropdown-btn:hover .dropdown-arrow-svg path {
    stroke: #94a3b8;
}

body.theme-light .dropdown-arrow-svg path {
    stroke: #94a3b8;
}

body.theme-light .theme-dropdown-btn:hover .dropdown-arrow-svg path {
    stroke: #475569;
}

.theme-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 244px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 1100;
    transition: background 0.4s, border-color 0.4s;
}

    .theme-dropdown-panel.open {
        display: flex;
    }

body.theme-light .theme-dropdown-panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dp-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

body.theme-light .dp-label {
    color: #94a3b8;
}

.dp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dp-row-label {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

body.theme-light .dp-row-label {
    color: #475569;
}

.dp-reset-btn {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #475569;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 2px 7px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

    .dp-reset-btn:hover {
        color: var(--lo-accent);
        border-color: var(--lo-accent);
    }

body.theme-light .dp-reset-btn {
    border-color: #cbd5e1;
    color: #94a3b8;
}

.swatch-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.swatches-dark {
    display: flex;
}

.swatches-light {
    display: none;
}

body.theme-light .swatches-dark {
    display: none;
}

body.theme-light .swatches-light {
    display: flex;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

    .color-swatch:hover {
        transform: scale(1.2);
    }

    .color-swatch.active {
        border-color: #ffffff;
    }

body.theme-light .color-swatch.active {
    border-color: #0f172a;
}

.dp-select {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    cursor: pointer;
    outline: none;
    width: 112px;
    font-family: 'Inter', sans-serif;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
}

.dp-select-sm {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    cursor: pointer;
    outline: none;
    width: 88px;
    font-family: 'Inter', sans-serif;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
}

body.theme-light .dp-select,
body.theme-light .dp-select-sm {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dp-thin-divider {
    height: 1px;
    background: #334155;
    margin: 0 -14px;
    transition: background 0.4s;
}

body.theme-light .dp-thin-divider {
    background: #f1f5f9;
}

@media (max-width: 768px) {
    .theme-dropdown-panel {
        right: -10px;
        width: 210px;
    }
}

/* =================================================
                   POINT 3 — AUDIO PLAYER
                   Desktop: fixed top-left circle button with dropdown song list
                   Mobile: hidden fixed button; instead shown inside navbar collapse
                   ================================================= */

/* ── Desktop audio button (fixed top-left) ── */
/*.audio-btn {
    position: fixed;
    top: 100px;*/ /* just below the navbar */
    /*left: 20px;
    width: 44px;
    height: auto;
    flex-direction: column;
    padding: 6px 0;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: transform .2s;
}*/

/* Arrow chevron below the audio icon */
/*.audio-arrow-btn {
    position: fixed;
    top: 118px;*/ /* 72 + 44 + 2px gap */
    /*left: 20px;
    width: 44px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 800;
}

    .audio-arrow-btn svg {
        width: 14px;
        height: 14px;
        transition: transform 0.3s;
    }

        .audio-arrow-btn svg.open {
            transform: rotate(180deg);
        }

    .audio-arrow-btn path {
        stroke: #64748b;
        transition: stroke 0.2s;
    }

    .audio-arrow-btn:hover path {
        stroke: var(--lo-accent);
    }

.audio-btn:hover {
    background: #273548;
    border-color: var(--lo-accent);
    transform: translateY(-2px);
}*/

/* Glowing accent ring when playing */
/*.audio-btn.playing {
    border-color: var(--lo-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lo-accent) 25%, transparent), 0 0 14px color-mix(in srgb, var(--lo-accent) 20%, transparent), 0 2px 10px rgba(0,0,0,0.4);
}

body.theme-light .audio-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

    body.theme-light .audio-btn:hover {
        background: #f1f5f9;
        border-color: var(--lo-accent);
    }

    body.theme-light .audio-btn.playing {
        border-color: var(--lo-accent);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--lo-accent) 20%, transparent), 0 2px 8px rgba(0,0,0,0.1);
    }

.audio-btn svg {
    width: 20px;
    height: 20px;
}*/

/* Animated bars when playing */
/*.audio-btn.playing .bar-1 {
    animation: audioPulse 0.9s ease-in-out infinite;
}

.audio-btn.playing .bar-2 {
    animation: audioPulse 0.9s ease-in-out infinite 0.15s;
}

.audio-btn.playing .bar-3 {
    animation: audioPulse 0.9s ease-in-out infinite 0.3s;
}

@keyframes audioPulse {
    0%, 100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}*/

/*
                    Diagonal mute line — drawn via a pseudo-element on the button.
                    Shown only when NOT playing (paused state).
                */
/*.audio-btn:not(.playing)::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 28px;
    background: var(--lo-accent);
    border-radius: 2px;
    transform: rotate(45deg);
    opacity: 0.7;
    pointer-events: none;
}*/

/* ── Song dropdown panel (attached to audio button) ── */
/*.audio-dropdown {
    position: fixed;
    top: 110px;
    left: 20px;*/ /* right of the audio button */
    /*width: 220px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: background 0.4s, border-color 0.4s;
}

    .audio-dropdown.open {
        display: flex;
    }

body.theme-light .audio-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}*/

/* Dropdown header row */
/*.audio-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 14px 10px;
    border-bottom: 1px solid #334155;
    margin-bottom: 4px;
}

body.theme-light .audio-dropdown-header {
    border-bottom-color: #e2e8f0;
}

.audio-dropdown-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    font-family: 'Inter', sans-serif;
}

body.theme-light .audio-dropdown-title {
    color: #94a3b8;
}*/

/* Each song item */
/*.audio-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
}

    .audio-song-item:hover {
        background: rgba(255,255,255,0.05);
    }

body.theme-light .audio-song-item:hover {
    background: rgba(0,0,0,0.04);
}*/

/* Active song highlight */
/*.audio-song-item.active-song {
    background: color-mix(in srgb, var(--lo-accent) 12%, transparent);
}*/

/* Song number badge */
/*.song-num {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    min-width: 16px;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.audio-song-item.active-song .song-num {
    color: var(--lo-accent);
}*/

/* Song name */
/*.song-name {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.audio-song-item.active-song .song-name {
    color: var(--lo-accent);
    font-weight: 600;
}

body.theme-light .song-name {
    color: #475569;
}*/

/* Playing indicator dot */
/*.song-playing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lo-accent);
    flex-shrink: 0;
    display: none;
}

.audio-song-item.active-song .song-playing-dot {
    display: block;
}*/

/*
                    MOBILE: hide the fixed audio button on small screens.
                    The mobile version is embedded inside the navbar collapse,
                    shown as an item in the nav list.
                *//*
@media (max-width: 575px) {
    .audio-btn {
        display: none;
    }

    .audio-dropdown {
        display: none !important;
    }

    .audio-mobile-section {
        display: block;
    }
}

@media (min-width: 576px) {
    .audio-mobile-section {
        display: none;
    }
}*/

/* ── Mobile audio section inside navbar collapse ── *//*
.audio-mobile-section {
    border-top: 1px solid #334155;
    padding: 12px 0 6px;
    margin-top: 6px;
}

body.theme-light .audio-mobile-section {
    border-top-color: #e2e8f0;
}

.audio-mobile-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    padding: 0 4px 8px;
    font-family: 'Inter', sans-serif;
}

body.theme-light .audio-mobile-label {
    color: #94a3b8;
}*/

/* Mobile play/pause button row *//*
.audio-mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 10px;
}

.audio-mobile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

    .audio-mobile-btn:hover, .audio-mobile-btn.playing {
        border-color: var(--lo-accent);
    }

body.theme-light .audio-mobile-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.audio-mobile-btn svg {
    width: 16px;
    height: 16px;
}

.audio-mobile-status {
    font-size: 12px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.audio-mobile-btn.playing ~ .audio-mobile-status {
    color: var(--lo-accent);
}
*/
/* Mobile song list *//*
.audio-mobile-songs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audio-mobile-song {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

    .audio-mobile-song:hover {
        background: rgba(255,255,255,0.05);
    }

body.theme-light .audio-mobile-song:hover {
    background: rgba(0,0,0,0.04);
}

.audio-mobile-song.active-song {
    background: color-mix(in srgb, var(--lo-accent) 12%, transparent);
}

.audio-mobile-song .song-num {
    color: #334155;
    font-size: 10px;
    min-width: 14px;
}

.audio-mobile-song.active-song .song-num {
    color: var(--lo-accent);
}

.audio-mobile-song .song-name {
    font-size: 12px;
    color: #94a3b8;
}

.audio-mobile-song.active-song .song-name {
    color: var(--lo-accent);
    font-weight: 600;
}

body.theme-light .audio-mobile-song .song-name {
    color: #475569;
}

.audio-mobile-song .song-playing-dot {
    display: none;
}

.audio-mobile-song.active-song .song-playing-dot {
    display: block;
}*/

/* Active nav link in light theme */
body.theme-light .navbar .nav-link.active-nav {
    color: var(--lo-accent) !important;
    background: rgba(--lo-accent) !important; /* Light accent color with reduced opacity */
}

/* Hover state in light theme */
body.theme-light .navbar .nav-link:hover {
    color: var(--lo-accent) !important;
}
