/* DJ Rise membership page — tokens pulled from the site's existing gold/black identity. */

:root {
    --ink: #0b0b0c;
    --panel: #141412;
    --panel-raised: #1a1917;
    --paper: #f4eee6;
    --smoke: #9c9686;
    --line: rgba(244, 238, 230, 0.12);
    --line-strong: rgba(244, 238, 230, 0.22);
    --gold-1: #f6e7c1;
    --gold-2: #e3b04b;
    --gold-3: #b97a2a;
    --gold-flat: #d9a74a;
    --radius: 10px;
    --gap: clamp(1.1rem, 3vw, 2rem);
}

body {
    background: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- buttons ---------- */

.btn {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.3rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
    color: #221505;
}

.btn-gold:hover {
    filter: brightness(1.06);
}

.btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--paper);
}

.btn-outline:hover {
    border-color: var(--gold-2);
    color: var(--gold-1);
}

.btn-ghost {
    background: transparent;
    color: var(--smoke);
}

.btn-ghost:hover {
    color: var(--paper);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- top bar ---------- */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(11, 11, 12, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.top-bar.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(11, 11, 12, 0.95);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.02rem;
}

.brand img {
    border-radius: 50%;
    display: block;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-actions .btn-ghost {
    display: none;
}

@media (min-width: 560px) {
    .top-bar-actions .btn-ghost {
        display: inline-block;
    }
}

.user-menu {
    position: relative;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--panel-raised);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--paper);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
    border-color: var(--gold-2);
}

.user-chip img {
    border-radius: 50%;
    display: block;
}

.member-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #221505;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 50;
    width: 220px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.9rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.user-dropdown[hidden] {
    display: none;
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid var(--line);
}

.user-dropdown-head img {
    border-radius: 50%;
    flex: none;
}

.user-dropdown-head strong {
    display: block;
    font-size: 0.88rem;
}

.user-dropdown-role {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: var(--smoke);
    margin-top: 0.15rem;
}

.user-dropdown-role.is-active {
    color: var(--gold-1);
}

.user-dropdown-role svg {
    color: var(--gold-2);
    flex: none;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.55rem 0.3rem;
    margin: 0;
    border: 0;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 0.85rem;
    color: var(--paper);
    cursor: pointer;
    border-radius: 6px;
}

.user-dropdown-item:hover,
.user-dropdown-item:focus-visible {
    background: var(--panel-raised);
    color: var(--gold-1);
}

/* ---------- cover + profile ---------- */

.cover {
    position: relative;
    height: clamp(140px, 24vw, 260px);
    overflow: hidden;
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0) 40%, var(--ink) 100%);
}

.profile {
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 0;
    max-width: 1120px;
    margin: 0 auto;
}

.profile-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.1rem;
    row-gap: 0.9rem;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid var(--ink);
    object-fit: cover;
    grid-row: 1 / 3;
}

.profile-live {
    font-size: 0.78rem;
    color: var(--gold-2);
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.profile-id h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.profile-by {
    margin: 0.15rem 0 0;
    color: var(--smoke);
    font-size: 0.95rem;
}

.profile-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.profile-tagline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    color: var(--paper);
    max-width: 46ch;
    margin: 1.2rem 0 0;
    line-height: 1.35;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.1rem 0 1.6rem;
}

.profile-socials {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--smoke);
}

.profile-socials a:hover {
    color: var(--gold-1);
}

@media (min-width: 640px) {
    .profile-row {
        grid-template-columns: auto 1fr auto;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
    }

    .profile-actions {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        margin-top: 0;
    }

    .profile-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ---------- section tabs ---------- */

.section-tabs {
    position: sticky;
    top: 57px;
    z-index: 30;
    display: flex;
    gap: clamp(1rem, 3vw, 1.6rem);
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    margin: 0 auto;
    max-width: 1120px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    overflow-x: auto;
    scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
    display: none;
}

.tab-link {
    position: relative;
    padding: 0.85rem 0.1rem;
    margin: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font: inherit;
    font-size: 0.92rem;
    color: var(--smoke);
    flex: none;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-link.is-active,
.tab-link:hover,
.tab-link:focus-visible {
    color: var(--paper);
}

.tab-link.is-active {
    border-bottom-color: var(--gold-2);
}

/* ---------- page panels ---------- */

.page-panel[hidden] {
    display: none;
}

/* ---------- layout: feed + rail ---------- */

.layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--gap) clamp(1rem, 4vw, 2.5rem) 0;
    display: grid;
    gap: var(--gap);
}

@media (min-width: 900px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }
}

.feed {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-width: 0;
}

.post {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
}

.post-empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--smoke);
    font-size: 0.9rem;
}

.post-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media.is-locked {
    background: radial-gradient(120% 120% at 30% 15%, #2c2820, var(--ink));
}

.post-media.is-locked img {
    filter: blur(16px) saturate(0.8) brightness(0.8);
    transform: scale(1.08);
    opacity: 0.85;
}

/* ---------- video trigger ---------- */

.post-watch {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.post-watch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, 0.18);
    transition: background 0.15s ease;
}

.post-watch:hover::after,
.post-watch:focus-visible::after {
    background: rgba(11, 11, 12, 0.38);
}

.post-watch:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: -2px;
}

.post-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: auto;
    border-radius: 50%;
    background: rgba(11, 11, 12, 0.55);
    border: 1.5px solid rgba(244, 238, 230, 0.6);
    color: var(--paper);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.post-watch:hover .post-play,
.post-watch:focus-visible .post-play {
    transform: scale(1.08);
    border-color: var(--gold-1);
    color: var(--gold-1);
}

.post-play svg {
    margin-left: 2px;
}

.post-play--lock {
    color: var(--gold-1);
    border-color: var(--gold-2);
    background: rgba(28, 22, 10, 0.65);
}

.post-play--lock svg {
    margin-left: 0;
}

.post-watch:hover .post-play--lock,
.post-watch:focus-visible .post-play--lock {
    border-color: var(--gold-1);
    color: var(--gold-1);
}

.post-watch-label {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--paper);
}

.post-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.post-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.post-kind {
    font-size: 0.74rem;
    color: var(--gold-1);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.post-date,
.post-length {
    font-size: 0.78rem;
    color: var(--smoke);
}

.post-length::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--smoke);
    margin-right: 0.55rem;
    vertical-align: middle;
}

.post-title {
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
}

.post-teaser {
    color: var(--smoke);
    line-height: 1.55;
    font-size: 0.95rem;
    margin: 0;
}

.post-teaser.is-faded {
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
    max-height: 5.4em;
    overflow: hidden;
}

.post-unlock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.85rem;
    color: var(--smoke);
    cursor: pointer;
}

.post-unlock svg {
    color: var(--gold-2);
    flex: none;
}

.post-unlock strong {
    color: var(--gold-1);
    font-weight: 600;
}

.post-unlock:hover,
.post-unlock:focus-visible {
    color: var(--paper);
}

.post-unlock:hover strong,
.post-unlock:focus-visible strong {
    text-decoration: underline;
}

/* ---------- rail ---------- */

.rail {
    display: none;
}

@media (min-width: 900px) {
    .rail {
        display: block;
        position: sticky;
        top: 130px;
    }
}

.rail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 1.3rem;
}

.rail-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rail-card > p {
    color: var(--smoke);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

.rail-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--smoke);
    margin: 0.9rem 0 0;
}

/* ---------- characters ---------- */

.characters,
.about,
.faq {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.characters h2,
.about-copy h2,
.faq h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.section-lede {
    color: var(--smoke);
    max-width: 52ch;
    margin: 0.6rem 0 2.2rem;
    line-height: 1.5;
}

.character-grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 760px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.character {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}

.character-portrait {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.character-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character h3 {
    font-size: 1.15rem;
    margin: 1.3rem 1.3rem 0.4rem;
}

.character-tagline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-1);
    margin: 0 1.3rem 0.8rem;
    line-height: 1.35;
}

.character-body {
    color: var(--smoke);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 1.3rem 1.4rem;
}

/* ---------- about ---------- */

.about-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
}

.about-portrait img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
}

.about-lead {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-1);
    line-height: 1.4;
    margin: 0.8rem 0 1.1rem;
}

.about-copy p:not(.about-lead) {
    color: var(--smoke);
    line-height: 1.65;
    max-width: 62ch;
}

@media (min-width: 760px) {
    .about-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
    }

    .about-portrait img {
        width: 220px;
        height: 220px;
    }
}

/* ---------- faq ---------- */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 0.2rem 1.2rem;
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex: none;
    color: var(--smoke);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--smoke);
    line-height: 1.55;
    margin: 0 0 1.1rem;
    max-width: 62ch;
}

/* ---------- footer ---------- */

.site-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
    border-top: 1px solid var(--line);
    color: var(--smoke);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--paper);
    font-weight: 600;
}

.footer-brand img {
    border-radius: 50%;
}

/* ---------- membership modal ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 5, 6, 0.72);
    backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    transform: scale(0.96);
    opacity: 0;
    animation: modal-in 0.18s ease forwards;
}

@keyframes modal-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--smoke);
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: var(--paper);
    border-color: var(--gold-2);
}

.modal-steps {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.modal-step {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--line-strong);
}

.modal-step.is-active {
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--panel-raised);
    border: 1px solid var(--line-strong);
    color: var(--gold-1);
}

.modal-icon--discord {
    color: #5865f2;
}

.modal-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-2);
    margin: 0 0 0.5rem;
}

.modal-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.modal-copy {
    color: var(--smoke);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
}

.modal-secondary {
    display: block;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.5rem;
    border: 0;
    background: none;
    color: var(--smoke);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.modal-secondary:hover,
.modal-secondary:focus-visible {
    color: var(--gold-1);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
}

.btn-discord:hover {
    filter: brightness(1.08);
}

.modal-note {
    margin: 0.7rem 0 0;
    font-size: 0.78rem;
    color: var(--smoke);
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .top-bar,
    .tab-link,
    .faq-chevron,
    .post-watch::after,
    .post-play {
        transition: none;
    }

    .modal {
        animation: none;
        transform: none;
        opacity: 1;
    }
}
