/* ── Reset & Base ── */
html, body {
    height: 100%;
    margin: 0;
}

@font-face {
    font-family: "Neon";
    src: url('https://raw.githubusercontent.com/InjectionSoftwareandSecurityLLC/jonesrx/refs/heads/main/fonts/neon_font.ttf') format("truetype");
}

body {
    background-color: black;
    background-image: url('https://raw.githubusercontent.com/InjectionSoftwareandSecurityLLC/jonesrx/refs/heads/main/img/background.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    font-family: 'Neon', cursive;
}

/* ── Neon Sign ── */
.neon-sign-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 2px solid;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 350px;
    max-width: 90vw;
}

.neon-sign-container:hover {
    animation: sway 0.5s infinite alternate;
}

.neon-sign-container.sign-wiggle {
    animation: sway 0.5s infinite alternate;
}

@keyframes sway {
    0% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

.neon-sign {
    font-family: 'Neon', cursive;
    font-size: 5rem;
    color: white;
    text-shadow:
        0 0 5px cyan,
        0 0 10px cyan,
        0 0 20px cyan,
        0 0 30px cyan;
    transform: rotate(-10deg);
}

/* ── Triangles ── */
.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    animation: rotate 3s infinite linear;
}
.triangle.tl {
    top: -20px; left: -20px;
    border-width: 0 30px 30px 0;
    border-color: transparent cyan transparent transparent;
}
.triangle.tr {
    top: -20px; right: -20px;
    border-width: 30px 0 0 30px;
    border-color: transparent transparent transparent cyan;
}
.triangle.bl {
    bottom: -20px; left: -20px;
    border-width: 30px 30px 0 0;
    border-color: cyan transparent transparent transparent;
}
.triangle.br {
    bottom: -20px; right: -20px;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent cyan transparent;
}

.inner-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.5;
    animation: rotate 3s infinite linear;
}
.inner-triangle.tl {
    top: -10px; left: -10px;
    border-width: 0 20px 20px 0;
    border-color: transparent cyan transparent transparent;
}
.inner-triangle.tr {
    top: -10px; right: -10px;
    border-width: 20px 0 0 20px;
    border-color: transparent transparent transparent cyan;
}
.inner-triangle.bl {
    bottom: -10px; left: -10px;
    border-width: 20px 20px 0 0;
    border-color: cyan transparent transparent transparent;
}
.inner-triangle.br {
    bottom: -10px; right: -10px;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent cyan transparent;
}

@keyframes rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ── Layout ── */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: .75;
    width: 100%;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.primary-button {
    font-family: 'Neon', cursive;
    text-align: center;
    padding: 20px 40px;
    border: 2px solid;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    text-decoration: none;
    transition: 0.3s;
    margin: 10px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    min-width: 200px;
    width: 150px;
}

.primary-button:hover, .primary-button:focus {
    filter: brightness(1.5);
    animation: glow 0.8s infinite alternate;
    text-decoration: none;
}

/* ── Dropdowns ── */
.dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.dropdown-item {
    font-family: 'Neon', cursive;
    color: white;
    text-align: center;
    padding: 15px 30px;
    border: 2px solid;
    margin: 5px 0;
    transition: 0.3s;
    display: block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.85);
}

.dropdown-item:hover {
    filter: brightness(1.5);
    animation: glow 0.8s infinite alternate;
    background-color: rgba(0, 0, 0, 0.85);
}

/* ── Animations ── */
.flicker {
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    20% { opacity: 0.8; }
    40% { opacity: 0.5; }
    60% { opacity: 0.6; }
    80% { opacity: 0.9; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px, 0 0 10px; }
    50% { box-shadow: 0 0 15px, 0 0 30px; }
    100% { box-shadow: 0 0 10px, 0 0 20px; }
}

/* ── Footer & Social ── */
footer {
    padding: 20px;
    text-align: center;
    margin-bottom: -50px;
}

.social-icon {
    color: white;
    font-size: 30px;
    margin: 0 10px;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-icon:hover {
    filter: brightness(1.5);
    animation: glow 0.8s infinite alternate;
    background-color: white;
    color: black;
}

/* ── Spotify Embed ── */
.spotify-wrapper {
    max-width: 800px;
    width: 100%;
}

/* ── TV Overlay ── */
#tvOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        180deg,
        white,
        black,
        cyan,
        white,
        purple,
        black,
        pink
    );
    display: none;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    transform-origin: center center;
}

@keyframes tvTurnOff {
    0% {
        opacity: 0.5;
        filter: brightness(100%);
    }
    50% {
        opacity: 0.2;
        filter: brightness(200%);
    }
    100% {
        opacity: 0;
    }
}

/* ── Neon Loader ── */
.neon-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 24px;
}

.loader-text {
    font-family: 'Neon', cursive;
    font-size: 1.6rem;
    color: white;
    text-shadow:
        0 0 5px cyan,
        0 0 15px cyan,
        0 0 30px cyan,
        0 0 50px magenta;
    animation: loaderFlicker 2s ease-in-out infinite;
    letter-spacing: 4px;
}

@keyframes loaderFlicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px cyan, 0 0 15px cyan, 0 0 30px cyan, 0 0 50px magenta; }
    8% { opacity: 0.3; text-shadow: none; }
    10% { opacity: 1; text-shadow: 0 0 5px cyan, 0 0 15px cyan, 0 0 30px cyan, 0 0 50px magenta; }
    50% { opacity: 1; text-shadow: 0 0 5px magenta, 0 0 15px magenta, 0 0 30px magenta, 0 0 50px cyan; }
    58% { opacity: 0.4; text-shadow: none; }
    60% { opacity: 1; text-shadow: 0 0 5px magenta, 0 0 15px magenta, 0 0 30px magenta, 0 0 50px cyan; }
}

/* Neon bar track */
.loader-bar-track {
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.loader-bar-fill {
    height: 100%;
    width: 30%;
    border-radius: 3px;
    background: linear-gradient(90deg, cyan, magenta, cyan);
    background-size: 200% 100%;
    box-shadow:
        0 0 8px cyan,
        0 0 18px magenta,
        0 0 30px cyan;
    animation: loaderSlide 1.5s ease-in-out infinite, loaderGlow 2s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes loaderSlide {
    0%   { left: -30%; }
    100% { left: 100%; }
}

@keyframes loaderGlow {
    0%   { background-position: 0% 0%; box-shadow: 0 0 8px cyan, 0 0 18px magenta, 0 0 30px cyan; }
    50%  { background-position: 100% 0%; box-shadow: 0 0 8px magenta, 0 0 18px cyan, 0 0 30px magenta; }
    100% { background-position: 0% 0%; box-shadow: 0 0 8px cyan, 0 0 18px magenta, 0 0 30px cyan; }
}

/* Equalizer bars */
.loader-eq {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 40px;
}

.loader-eq-bar {
    width: 6px;
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.loader-eq-bar:nth-child(1) { height: 15px; background: cyan; box-shadow: 0 0 6px cyan; animation-delay: 0s; }
.loader-eq-bar:nth-child(2) { height: 25px; background: magenta; box-shadow: 0 0 6px magenta; animation-delay: 0.1s; }
.loader-eq-bar:nth-child(3) { height: 35px; background: yellow; box-shadow: 0 0 6px yellow; animation-delay: 0.2s; }
.loader-eq-bar:nth-child(4) { height: 20px; background: lime; box-shadow: 0 0 6px lime; animation-delay: 0.3s; }
.loader-eq-bar:nth-child(5) { height: 30px; background: cyan; box-shadow: 0 0 6px cyan; animation-delay: 0.15s; }
.loader-eq-bar:nth-child(6) { height: 18px; background: hotpink; box-shadow: 0 0 6px hotpink; animation-delay: 0.25s; }
.loader-eq-bar:nth-child(7) { height: 28px; background: magenta; box-shadow: 0 0 6px magenta; animation-delay: 0.05s; }

@keyframes eqBounce {
    0%   { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    .primary-button {
        width: 300px;
    }
}
