/* style.css: Theme variables, layered background animations, and layout styles for the OTG link hub. */
:root {
    --bg: #02030a;
    --accent: #ffe800;
    --accent-soft: rgba(255, 232, 0, 0.1);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --card-bg: rgba(0, 0, 0, 0.7);
    --glow: rgba(255, 232, 0, 0.45);
    --orb: rgba(255, 255, 255, 0.04);
    --max-width: 500px;
    --content-padding: clamp(22px, 3vw, 28px);
    --radius: 18px;
    --blur: 18px;
    --anim-speed: 28s; /* Adjust this value to speed up/slow down background movement for the full scene. */
    --entry-duration: 600ms;
    --flare-opacity: 0.55;
    --flare-size: 420px;
    --flare-blur: 36px;
    --supernova-opacity: 0.65;
}

/* Animation intensity note: To reduce motion overall, lower --anim-speed (higher value slows motion) and use the .reduce-motion helper on body. */

/* Scrolling vs fixed background: html/body allow vertical scrolling; background layers use fixed positioning with pointer-events: none so they sit behind content without affecting flow. */

html {
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 20% 20%, rgba(255, 232, 0, 0.05), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 232, 0, 0.05), transparent 30%),
        var(--bg);
    overflow-y: auto;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

.glow-layer {
    position: fixed;
    inset: -10%;
    background: radial-gradient(55% 55% at 20% 30%, rgba(255, 232, 0, 0.15), transparent 60%),
        radial-gradient(45% 45% at 80% 50%, rgba(0, 255, 255, 0.08), transparent 60%),
        radial-gradient(65% 65% at 40% 80%, rgba(255, 0, 255, 0.06), transparent 70%);
    filter: blur(var(--blur));
    z-index: 1;
    animation: slow-shift var(--anim-speed) ease-in-out infinite alternate;
    pointer-events: none;
}

.space-flares {
    /* Space flares/comets: tweak --flare-opacity/--flare-size/--flare-blur/--supernova-opacity and animation durations/delays below to strengthen or soften the effect. */
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.flare {
    position: absolute;
    width: var(--flare-size);
    height: var(--flare-size);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 0, 0.18), rgba(255, 232, 0, 0.07), transparent 70%);
    filter: blur(var(--flare-blur));
    opacity: 0;
    animation: flare-pulse 22s ease-in-out infinite;
    mix-blend-mode: screen;
}

.flare.one { top: 18%; left: 12%; animation-delay: 4s; }
.flare.two { top: 55%; left: 70%; animation-delay: 12s; }
.flare.three { top: 72%; left: 30%; animation-delay: 16s; }
.flare.four { top: 38%; left: 48%; animation-delay: 8s; }

.supernova {
    position: absolute;
    width: calc(var(--flare-size) * 1.2);
    height: calc(var(--flare-size) * 1.2);
    border-radius: 50%;
    opacity: 0;
    filter: blur(calc(var(--flare-blur) * 0.8));
    background: radial-gradient(circle, rgba(255, 241, 120, 0.8), rgba(255, 191, 64, 0.25), transparent 70%);
    mix-blend-mode: screen;
    animation: supernova-burst 18s ease-in-out infinite;
}

.supernova.alpha { top: 12%; left: 66%; animation-delay: 6s; }
.supernova.beta { bottom: 10%; left: 24%; animation-delay: 14s; }
.supernova.dynamic { animation-iteration-count: 1; animation-fill-mode: forwards; }

.orb {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 70%);
    filter: blur(16px);
    opacity: 0.4;
    mix-blend-mode: screen;
    z-index: 3;
    animation: float var(--anim-speed) ease-in-out infinite;
    pointer-events: none;
}

.orb-one { top: 20%; left: 12%; animation-duration: calc(var(--anim-speed) * 1.1); }
.orb-two { bottom: 18%; right: 10%; animation-duration: calc(var(--anim-speed) * 0.9); }
.orb-three { top: 60%; left: 55%; animation-duration: calc(var(--anim-speed) * 1.3); }

.page {
    position: relative;
    z-index: 4;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 4vh, 48px) clamp(18px, 4vw, 28px) clamp(68px, 8vh, 96px);
}

.content-column {
    width: min(100%, var(--max-width));
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vh, 20px);
}

.hero,
.links,
.feature {
    width: 100%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: clamp(4px, 1vh, 8px);
}

.logo {
    width: min(54vw, 210px);
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
    mix-blend-mode: screen;
}

.artist-name {
    /* Primary SYMR header: adjust font-size/spacing here for prominence under the logo. */
    margin: 12px auto 6px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 2vw + 1rem, 2.4rem);
    text-shadow: 0 0 18px rgba(255, 232, 0, 0.28), 0 0 40px rgba(255, 232, 0, 0.14);
}

.artist-subtitle {
    margin: 0 auto;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-size: clamp(0.85rem, 0.4vw + 0.8rem, 0.95rem);
}

.feature {
    background: var(--card-bg);
    border: 1px solid rgba(255, 232, 0, 0.25);
    border-radius: var(--radius);
    padding: var(--content-padding);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 232, 0, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 232, 0, 0.55);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 232, 0, 0.12), 0 0 25px rgba(255, 232, 0, 0.08);
}

.embed-frame iframe {
    border: none;
    border-radius: 12px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    margin-top: clamp(4px, 1vh, 10px);
}

.link-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(255, 232, 0, 0.08), rgba(255, 232, 0, 0.02));
    border: 1px solid rgba(255, 232, 0, 0.35);
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    isolation: isolate;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.link-card::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 0, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.link-card:hover,
.link-card:focus-visible {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 232, 0, 0.15);
    background: linear-gradient(120deg, rgba(255, 232, 0, 0.15), rgba(255, 232, 0, 0.05));
}

.link-card:hover::after,
.link-card:focus-visible::after {
    opacity: 1;
}

.link-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.link-card.primary {
    padding: 18px 20px;
    border-width: 1.5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 232, 0, 0.25);
    background: linear-gradient(135deg, rgba(255, 232, 0, 0.22), rgba(255, 232, 0, 0.08));
}

.link-card.primary .link-label {
    font-size: 1.05rem;
}

.link-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    background: radial-gradient(circle, rgba(255, 232, 0, 0.3) 0%, rgba(255, 232, 0, 0.05) 40%, transparent 70%);
    opacity: 0.85;
    animation: ripple-glow 520ms ease-out forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: rise var(--entry-duration) ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.links .link-card {
    opacity: 0;
    transform: translateY(12px);
    animation: rise var(--entry-duration) ease-out forwards;
}

.links .link-card:nth-child(1) { animation-delay: 0.25s; }
.links .link-card:nth-child(2) { animation-delay: 0.3s; }
.links .link-card:nth-child(3) { animation-delay: 0.35s; }
.links .link-card:nth-child(4) { animation-delay: 0.4s; }
.links .link-card:nth-child(5) { animation-delay: 0.45s; }
.links .link-card:nth-child(6) { animation-delay: 0.5s; }
.links .link-card:nth-child(7) { animation-delay: 0.55s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slow-shift {
    from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
    to { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes flare-pulse {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.8); }
    25% { opacity: var(--flare-opacity); transform: translate3d(2%, -2%, 0) scale(1.05); }
    50% { opacity: calc(var(--flare-opacity) * 0.6); transform: translate3d(6%, -4%, 0) scale(1.2); }
    100% { opacity: 0; transform: translate3d(10%, -6%, 0) scale(1.5); }
}

@keyframes supernova-burst {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
    15% { opacity: var(--supernova-opacity); transform: translate3d(-2%, 2%, 0) scale(1.1); }
    30% { opacity: calc(var(--supernova-opacity) * 0.65); transform: translate3d(2%, -2%, 0) scale(1.4); }
    60% { opacity: calc(var(--supernova-opacity) * 0.35); transform: translate3d(4%, -6%, 0) scale(1.8); }
    100% { opacity: 0; transform: translate3d(8%, -12%, 0) scale(2.4); }
}

@keyframes ripple-glow {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.85; }
    70% { opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@media (max-width: 768px) {
    :root { --max-width: 520px; }
    .page { padding-top: clamp(22px, 5vh, 42px); }
    .logo { width: min(64vw, 185px); }
    .artist-name { font-size: clamp(1.3rem, 1.6vw + 1rem, 2rem); }
    .artist-subtitle { font-size: clamp(0.82rem, 0.7vw + 0.78rem, 0.92rem); }
}

@media (max-width: 520px) {
    :root { --content-padding: 20px; --radius: 16px; }
    .page { padding: clamp(22px, 4vh, 36px) clamp(16px, 6vw, 22px) clamp(70px, 10vh, 90px); }
    .content-column { gap: clamp(12px, 2vh, 16px); }
    .logo { width: min(68vw, 170px); }
    .feature { padding: 18px; }
    .link-card { padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    body { overflow-y: auto; }
    .glow-layer, .orb, .flare, .supernova { animation: none; }
    .links .link-card, .fade-in { animation-duration: 320ms; }
    #starfield { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%); }
    .link-ripple { animation-duration: 0.01ms; opacity: 0; }
    .flare { opacity: 0.08; }
    .supernova { opacity: 0.08; }
}
