@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Cinzel:wght@400;600&display=swap');

/* =====================================
   NEBULA TINT — MEMBER PAGES ONLY
   Each page's --member-accent color casts over the nebula
   ===================================== */
.nebula-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 10%, var(--member-accent) 0%, transparent 60%);
    opacity: 0.18;
    pointer-events: none;
}

/* =====================================
   MEMBER PAGE — CENTERED DARK PANEL
   Nebula shows in the gutters on wide screens.
   Panel gives text a clean readable surface.
   ===================================== */
.member-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(8, 8, 18, 0.93);
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.95);
}

/* =====================================
   BACK NAVIGATION
   ===================================== */
.back-link {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* =====================================
   TWO-COLUMN LAYOUT
   Left: image + identity | Right: all content
   ===================================== */
.member-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 70px;
    padding: 100px 60px 100px;
    align-items: start;
}

/* =====================================
   LEFT COLUMN — IMAGE + IDENTITY
   ===================================== */
.member-left {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.member-image-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.member-image-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 55%;
    background: radial-gradient(ellipse at bottom, var(--member-accent) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.member-hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--member-accent)) drop-shadow(0 0 60px var(--member-accent));
    animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

.glitch-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #fff;
    text-shadow:
        0 0 30px var(--member-accent),
        0 0 70px var(--member-accent),
        0 0 130px var(--member-accent);
    animation: memberNameGlow 3s ease-in-out infinite alternate;
    line-height: 1;
    margin: 0;
}

@keyframes memberNameGlow {
    0% {
        text-shadow:
            0 0 30px var(--member-accent),
            0 0 70px var(--member-accent),
            0 0 130px var(--member-accent);
    }
    100% {
        text-shadow:
            0 0 50px var(--member-accent),
            0 0 100px var(--member-accent),
            0 0 180px var(--member-accent);
    }
}

.glitch-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--member-accent);
    opacity: 0.8;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.6;
}

/* =====================================
   RIGHT COLUMN — ALL CONTENT
   ===================================== */
.member-right {
    display: flex;
    flex-direction: column;
    gap: 55px;
    padding-top: 8px;
}

/* =====================================
   ARCHIVE CLASSIFICATION BLOCK
   ===================================== */
.archive-block {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding: 26px 30px;
    font-family: 'Courier New', 'Lucida Console', monospace;
}

.archive-header {
    font-size: 0.88rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    line-height: 1.8;
}

.archive-row {
    display: flex;
    gap: 16px;
    margin-bottom: 9px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.archive-label {
    color: rgba(255, 255, 255, 0.45);
    min-width: 210px;
    flex-shrink: 0;
}

.archive-value {
    color: rgba(255, 255, 255, 0.9);
}

.archive-status-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.archive-status {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: rgba(210, 65, 65, 0.95);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.archive-classification {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 2.1;
}

/* =====================================
   SECTION LABEL
   ===================================== */
.section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 22px;
    text-transform: uppercase;
}

/* =====================================
   ORIGIN FRAGMENT
   ===================================== */
.origin-fragment {
    width: 100%;
}

.origin-timestamp {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: rgba(255, 100, 100, 0.55);
    text-transform: uppercase;
    margin-bottom: 1.6em;
}

.origin-link {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
    margin-top: 1.8em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.origin-link:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.origin-text {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.origin-text p {
    margin-bottom: 1.5em;
}

.origin-text p:last-child {
    margin-bottom: 0;
}

/* =====================================
   SIGNAL PROFILE
   ===================================== */
.signal-profile {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-header {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.signal-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 24px;
    align-items: flex-start;
}

.signal-row:last-child {
    border-bottom: none;
}

.signal-key {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 180px;
    flex-shrink: 0;
    text-transform: uppercase;
    padding-top: 2px;
}

.signal-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.92rem;
    letter-spacing: 1px;
    color: var(--member-accent);
    opacity: 0.9;
    line-height: 1.7;
}

/* =====================================
   TRANSMISSION LINE
   ===================================== */
.transmission-line {
    width: 100%;
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.transmission-text {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-style: italic;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 20px;
}

.transmission-doctrine {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

/* =====================================
   RESPONSIVE — TABLET
   ===================================== */
@media (max-width: 900px) {
    .member-layout {
        grid-template-columns: 1fr;
        padding: 80px 35px 70px;
        gap: 45px;
    }

    .member-left {
        position: static;
    }

    .member-hero-image {
        max-width: 220px;
    }

    .glitch-name {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

/* =====================================
   RESPONSIVE — MOBILE
   ===================================== */
@media (max-width: 480px) {
    .member-layout {
        padding: 70px 20px 60px;
        gap: 35px;
    }

    .archive-label {
        min-width: 130px;
    }

    .archive-row {
        font-size: 0.76rem;
    }

    .signal-key {
        min-width: 110px;
        font-size: 0.68rem;
    }

    .signal-value {
        font-size: 0.73rem;
    }
}

/* =====================================
   REDUCED MOTION
   ===================================== */
@media (prefers-reduced-motion: reduce) {
    .glitch-name      { animation: none; }
    .member-hero-image { animation: none; }
}
