/* =====================================
   BLAZE-LACE LINKS PAGE — STYLES
   Mobile-optimized bio link hub
   ===================================== */

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ROOT & BODY ===== */
:root {
    /* Color Palette */
    --color-crimson: #ff3333;
    --color-blue: #00BFFF;
    --color-silver: #B0B0C8;
    --color-violet: #4B0082;
    --color-white: #FFFFFF;
    --color-gray-light: #888899;
    --color-gray-dark: #444455;
    --color-bg: #000000;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Cinzel', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen-reader-only text (the page's H1). This page doesn't load css/site.css, which defines it elsewhere. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ===== MEMBER COLOUR ATMOSPHERE =====
   Replaces the 2 MB photo background (retired to _not-used/). The same member-colour art as the Music page
   edges (assets/effects/, about 26 KB in all), painted on black so its own black edges disappear. Fixed to
   the screen, so the colours stay behind the links while a phone scrolls. */
.links-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Longhands, not the background shorthand: this rule outranks the per-colour rules below, and the shorthand
   would reset their background-image. */
.links-atmosphere .atmo {
    position: absolute;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .7;
}

.atmo-crystals { top: -8px; left: 50%; width: min(640px, 130vw); aspect-ratio: 1130 / 195; transform: translateX(-50%); background-image: url('../assets/effects/atmo-crystals.webp'); }
.atmo-red { top: 24%; left: -110px; width: min(420px, 78vw); aspect-ratio: 600 / 355; background-image: url('../assets/effects/atmo-red.webp'); }
.atmo-blue { top: 44%; right: -130px; width: min(480px, 82vw); aspect-ratio: 765 / 324; background-image: url('../assets/effects/atmo-blue.webp'); }
.atmo-violet { top: 64%; left: -130px; width: min(460px, 82vw); aspect-ratio: 630 / 280; background-image: url('../assets/effects/atmo-violet.webp'); }
.atmo-ember { bottom: -2%; right: -120px; width: min(480px, 82vw); aspect-ratio: 705 / 245; background-image: url('../assets/effects/atmo-ember.webp'); }

/* Four-colour energy divider under the logo (assets/effects/divider.webp: Ara, Yuri, Minji, Hana). */
.links-divider {
    display: block;
    width: 100%;
    height: auto;
    margin: var(--spacing-md) auto 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Subtle scanline texture */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.015) 0px,
        transparent 2px,
        transparent 4px
    );
}

/* ===== MAIN CONTAINER ===== */
.links-container {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-xxl);
    min-height: 100vh;
}

/* ===== HEADER SECTION ===== */
.links-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.icon-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--spacing-md);
    display: block;
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.2));
}

.text-logo {
    width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
    filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.3));
}

.descriptor {
    font-size: 12px;
    color: var(--color-gray-light);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ===== SOCIAL ICONS SECTION ===== */
.social-icons-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.06s forwards;
}

.social-icon {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-white);
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-gray-light);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.section-label.center {
    text-align: center;
}

/* ===== RELEASES SECTION ===== */
.releases-section {
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.12s forwards;
}

.release-card {
    /* Dark backing keeps the links readable over the colour atmosphere. */
    background: rgba(6, 6, 12, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: border-color var(--transition-normal);
    position: relative;
}

.release-card:hover {
    border-color: rgba(255, 51, 51, 0.4);
}

.release-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 8px;
    margin-bottom: var(--spacing-xs);
    border-radius: 3px;
}

.release-badge.latest {
    color: var(--color-crimson);
    background: rgba(255, 51, 51, 0.1);
}

.release-badge.incoming {
    color: var(--color-blue);
    background: rgba(0, 191, 255, 0.1);
}

.release-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 4px;
}

.release-subtitle {
    font-size: 12px;
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

/* DSP Buttons */
.dsp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dsp-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dsp-button:hover {
    background: rgba(255, 51, 51, 0.15);
    border-color: var(--color-crimson);
}

.dsp-button svg {
    flex-shrink: 0;
}

/* Platform glyphs are drawn once (scripts/sync-links.mjs) and reused with <use>. */
.dsp-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.release-note {
    font-size: 13px;
    color: var(--color-silver);
}

/* Album songs: native <details> opens and closes without JavaScript, matching the Music page. */
.tracklist {
    margin-top: var(--spacing-sm);
}

.tracklist > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--color-silver);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.tracklist > summary::-webkit-details-marker {
    display: none;
}

.tracklist > summary:hover {
    border-color: var(--color-crimson);
}

.tracklist > summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 1.5px solid;
    border-bottom: 1.5px solid;
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
}

.tracklist[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.tracklist-hide,
.tracklist[open] .tracklist-show {
    display: none;
}

.tracklist[open] .tracklist-hide {
    display: inline;
}

.track-list {
    list-style: none;
}

.track-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-row:last-child {
    border-bottom: 0;
}

.track-name {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.track-num {
    display: inline-block;
    min-width: 2.2em;
    color: var(--color-gray-light);
}

.track-note {
    margin-left: 6px;
    color: var(--color-crimson);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Seven 36px icon links fit one row from a 360px-wide phone; narrower screens wrap to a second row. */
.track-dsps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.track-dsp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.track-dsp:hover,
.track-dsp:focus-visible {
    background: rgba(255, 51, 51, 0.15);
    border-color: var(--color-crimson);
}

.release-lore {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--color-silver);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.release-lore:hover {
    color: var(--color-white);
}

/* Standalone Pre-save Button */
.standalone-presave {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2), rgba(255, 100, 100, 0.15));
    border: 1px solid var(--color-crimson);
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.standalone-presave:hover {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.3), rgba(255, 100, 100, 0.25));
    border-color: #ff6464;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
}

/* CTA Button (Pre-save) */
.cta-button {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    background: transparent;
    border: 1px solid var(--color-crimson);
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-button:hover {
    background: rgba(255, 51, 51, 0.15);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

/* ===== NAVIGATION SECTION ===== */
.navigation-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.18s forwards;
}

.nav-button {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(6, 6, 12, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.nav-button:hover {
    background: rgba(255, 51, 51, 0.15);
    border-color: rgba(255, 51, 51, 0.6);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

/* ===== EMBERS SECTION ===== */
.embers-section {
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.24s forwards;
}

.embers-subline {
    font-size: 12px;
    color: var(--color-gray-light);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.embers-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.embers-input {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(6, 6, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.embers-input::placeholder {
    color: #555566;
}

.embers-input:focus {
    outline: none;
    border-color: var(--color-crimson);
}

/* Honeypot field (hidden from users, visible to bots) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.embers-submit {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-crimson);
    border: none;
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.embers-submit:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.embers-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.embers-message {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-height: 20px;
}

.embers-message.success {
    color: var(--color-blue);
}

.embers-message.error {
    color: var(--color-crimson);
}

/* ===== FOOTER ===== */
.links-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.footer-link {
    font-size: 12px;
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-white);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    25% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    50% {
        transform: translate(2px, -2px);
        opacity: 0.9;
    }
    75% {
        transform: translate(-1px, -1px);
        opacity: 0.7;
    }
}

.icon-logo.glitch {
    animation: glitch 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile First - base styles above are for mobile */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .links-container {
        max-width: 600px;
        padding: var(--spacing-xxl) var(--spacing-xl);
    }
    
    .icon-logo {
        width: 112px;
        height: 112px;
    }
    
    .text-logo {
        width: 240px;
    }
    
    .descriptor {
        font-size: 13px;
    }
    
    .release-title {
        font-size: 20px;
    }
    
    .dsp-buttons {
        gap: 10px;
    }
    
    .dsp-button {
        font-size: 12px;
        padding: 9px 14px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .links-container {
        max-width: 680px;
    }
    
    .social-icons-section {
        gap: 32px;
    }
    
    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .links-container {
        max-width: 720px;
    }
}
