/* =========================================================
   Hypno University — Mock B
   Neutral dark + feminine accent
   ========================================================= */

/* ---------- Tokens ---------- */

:root {
    /* Fonts */
    --hu-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --hu-font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Neutral dark palette */
    --hu-bg: #121212;          /* page background */
    --hu-bg-elevated: #121212; /* keep flat, no purple cast */

    --hu-surface: #282828;     /* main card/window */
    --hu-surface-soft: #323232;/* subtle alt surface */

    --hu-border-subtle: #363636; /* slightly darker than before */
    --hu-border-strong: #3c3c3c;

    /* Accent colors */
    --hu-accent-main: #cf1c9e;       /* primary button + main accent */
    --hu-accent-soft: rgba(207, 28, 158, 0.16);
    --hu-accent-secondary: #f08bc7;  /* lighter magenta for details */
    --hu-accent-gold: #f7d27c;       /* optional tiny highlights */

    /* Text */
    --hu-text-main: #f5f5f5;
    --hu-text-soft: #d0d0d0;
    --hu-text-muted: #aaaaaa;

    /* Shapes / shadow */
    --hu-radius-lg: 10px;   /* was 18px */
    --hu-radius-md: 6px;    /* was 12px */
    --hu-radius-pill: 999px;/* unchanged: buttons stay pill-shaped */

    --hu-nav-height: 72px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.hu {
    min-height: 100vh;
    font-family: var(--hu-font-body);
    color: var(--hu-text-main);
    background: var(--hu-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Background container (kept, but subtle) ---------- */

.hu-bg {
	display: none;
}

/* Keep these present for structure, but visually neutral */

.hu-bg__layer {
    position: absolute;
    inset: 0;
}

.hu-bg__layer--gradient {
    background: none;
}

.hu-bg__layer--noise {
    background-image: url("../../images/bg-noise.png");
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

.hu-bg__layer--vignette {
    background: radial-gradient(circle at 50% 10%, transparent 0, rgba(0, 0, 0, 0.8) 70%);
}

/* ---------- Shell & layout ---------- */

.hu-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hu-main {
    flex: 1;
    padding: 1.8rem 0 2.6rem;
}

.hu-container {
    width: min(1080px, 100% - 2.5rem);
    margin: 0 auto;
}

/* ---------- Header & nav ---------- */

.hu-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: #121212;
    border-bottom: 1px solid #4a4a4a;
}

.hu-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--hu-nav-height);
    gap: 1.5rem;
}

/* Brand */

.hu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.hu-brand__mark {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #282828;
    border: 1px solid #4a4a4a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hu-brand__glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 0, rgba(207, 28, 158, 0.3), transparent 55%);
    opacity: 0.5;
}

.hu-brand__sigil {
    position: relative;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hu-text-main);
}

.hu-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.hu-brand__title {
    font-family: var(--hu-font-heading);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav */

.hu-nav {
    display: flex;
    align-items: center;
}

.hu-nav__list {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hu-nav__link {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--hu-text-muted);
    padding: 0.32rem 0.7rem;
    border-radius: var(--hu-radius-pill);
    border: 1px solid transparent;
    transition:
        background 150ms ease-out,
        color 150ms ease-out,
        border-color 150ms ease-out,
        transform 120ms ease-out;
}

.hu-nav__link:hover {
    color: var(--hu-text-main);
    border-color: #4a4a4a;
    background: #1d1d1d;
    transform: translateY(-1px);
}

.hu-nav__link.is-active {
    color: var(--hu-accent-secondary);
    border-color: #4a4a4a;
    background: #202020;
}

/* Top-right user: simple, no pill or glow */

.hu-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    padding: 0;          /* no pill padding */
    border: none;        /* no border */
    background: none;    /* no gradient/pill */
    box-shadow: none;    /* no glow */
}

.hu-user__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    object-fit: cover;
}

.hu-user__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hu-user__name {
    font-size: 0.78rem;
    font-weight: 600;
}

.hu-user__stats {
    font-size: 0.7rem;
    color: var(--hu-text-muted);
}

/* Nav toggle (mobile) */

.hu-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.25rem;
    cursor: pointer;
}

.hu-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--hu-text-main);
    margin-bottom: 4px;
}

/* ---------- Footer ---------- */

.hu-footer {
    border-top: 1px solid #4a4a4a;
    background: #121212;
    padding: 0.7rem 0;
    font-size: 0.74rem;
}

.hu-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hu-footer__label {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.68rem;
    color: var(--hu-accent-main);
}

.hu-footer__text {
    color: var(--hu-text-muted);
}

/* ---------- Sections / general ---------- */

.hu-section {
    margin-bottom: 1.9rem;
}

/* ---------- Cards ---------- */

.hu-card {
    background: var(--hu-surface);
    border-radius: var(--hu-radius-lg);
    border: 1px solid var(--hu-border-subtle);
    padding: 1rem 1rem 0.95rem;
}

.hu-card--soft {
    background: var(--hu-surface-soft);
}

.hu-card--outline {
    background: #282828;
    border-style: dashed;
}

.hu-card__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hu-text-muted);
}

.hu-card__title {
    margin: 0 0 0.28rem;
    font-family: var(--hu-font-heading);
    font-size: 0.98rem;
}

.hu-card__body {
    margin: 0 0 0.6rem;
    font-size: 0.86rem;
    color: var(--hu-text-soft);
}

.hu-card__body--small {
    font-size: 0.78rem;
}

.hu-card__meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--hu-text-muted);
}

.hu-card__footer {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--hu-text-muted);
}

/* ---------- Buttons & chips ---------- */

.hu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: var(--hu-radius-pill);
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 550;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 180ms ease-out,
        border-color 180ms ease-out,
        transform 120ms ease-out,
}

/* Primary button = #cf1c9e */

.hu-btn--primary {
    background: #cf1c9e;
    color: #ffffff;              /* ← white text */
    border-color: #cf1c9e;
}

.hu-btn--primary:hover {
    background: #e526b0;
    color: #ffffff;              /* keep white on hover */
    border-color: #e526b0;
    transform: translateY(-1px);
}

.hu-btn--ghost {
    background: #1b1b1b;
    border-color: #4a4a4a;
    color: var(--hu-text-main);
}

.hu-btn--ghost:hover {
    background: #252525;
    border-color: #777777;
}

.hu-btn--small {
    padding: 0.38rem 0.9rem;
    font-size: 0.72rem;
}

.hu-btn--full {
    width: 100%;
    justify-content: center;
}

.hu-pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--hu-radius-pill);
    border: 1px solid var(--hu-border-subtle);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--hu-text-soft);
}

.hu-pill--accent {
    border-color: var(--hu-border-strong);
    color: var(--hu-accent-secondary);
}

/* Chips (avatar options) */

.hu-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hu-chip {
    border-radius: var(--hu-radius-pill);
    border: 1px solid var(--hu-border-subtle);
    padding: 0.24rem 0.75rem;
    font-size: 0.76rem;
    background: #202020;
    color: var(--hu-text-soft);
    cursor: pointer;
}

.hu-chip.is-active {
    border-color: var(--hu-accent-main);
    background: #2d1a29;
    color: var(--hu-accent-main);
}

/* ---------- Grids & lists ---------- */

.hu-grid {
    display: grid;
    gap: 1.1rem;
}

.hu-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hu-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hu-list {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--hu-text-soft);
}

.hu-list--bullets {
    list-style: disc;
    padding-left: 1.1rem;
}

.hu-list--leaderboard li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.hu-rank {
    width: 1.3rem;
    font-weight: 600;
    color: var(--hu-accent-secondary);
}

.hu-name {
    flex: 1;
}

.hu-value {
    color: var(--hu-text-muted);
}

/* Statline */

.hu-statline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--hu-text-soft);
}

.hu-statline span strong {
    color: var(--hu-accent-main);
}

/* ---------- Hero (landing) ---------- */

.hu-section--hero {
    margin-top: 1.5rem;
}

.hu-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.7rem;
    align-items: center;
}

.hu-hero__title {
    margin: 0 0 0.4rem;
    font-family: var(--hu-font-heading);
    font-size: 2rem;
}

.hu-hero__body {
    margin: 0 0 1rem;
    font-size: 0.94rem;
    color: var(--hu-text-soft);
    max-width: 29rem;
}

.hu-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.hu-hero__hint {
    margin: 0;
    font-size: 0.76rem;
    color: var(--hu-text-muted);
}

.hu-hero__panel {
    display: flex;
    justify-content: flex-end;
}

.hu-login {
    max-width: 340px;
}

.hu-login__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hu-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
}

.hu-field label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hu-text-muted);
}

.hu-field input {
    border-radius: 9px;
    border: 1px solid var(--hu-border-strong);
    background: #1b1b1b;
    padding: 0.45rem 0.6rem;
    color: var(--hu-text-main);
}

.hu-field input[disabled] {
    opacity: 0.9;
}

.hu-login__note {
    margin: 0.45rem 0 0;
    font-size: 0.76rem;
    color: var(--hu-text-muted);
}

/* ---------- Feed layout ---------- */

.hu-feed {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
}

.hu-feed__sidebar {
    align-self: flex-start;
    position: sticky;
    top: calc(var(--hu-nav-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hu-feed__stream {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hu-feed-card__title {
    margin: 0.1rem 0 0.25rem;
    font-family: var(--hu-font-heading);
    font-size: 1rem;
}

.hu-feed-card__body {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    color: var(--hu-text-soft);
}

.hu-feed-card__meta {
    font-size: 0.78rem;
    color: var(--hu-text-muted);
    margin-bottom: 0.5rem;
}

.hu-feed-card__footer {
    display: flex;
    justify-content: flex-start;
}

.hu-feed-more {
    margin: 0.7rem auto 0;
    padding: 0.4rem 1rem;
    border-radius: var(--hu-radius-pill);
    border: 1px dashed var(--hu-border-strong);
    background: transparent;
    color: var(--hu-text-muted);
    font-size: 0.76rem;
    cursor: pointer;
}

/* ---------- Profile / avatar combined ---------- */

.hu-profile {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
}

.hu-profile__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.hu-profile__avatar {
    width: 170px;
    height: 170px;
    border-radius: 16px;
    border: none;
    object-fit: cover;
}

.hu-profile__name {
    margin: 0;
    font-family: var(--hu-font-heading);
    font-size: 1.02rem;
}

.hu-profile__role {
    margin: 0;
    font-size: 0.82rem;
    color: var(--hu-text-muted);
}

.hu-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--hu-text-soft);
}

.hu-profile__stats strong {
    color: var(--hu-accent-main);
}

.hu-profile__quote {
    font-style: italic;
    font-size: 0.84rem;
    color: var(--hu-text-soft);
}

.hu-avatar-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hu-avatar-group__label {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hu-text-muted);
}

/* ---------- Achievements ---------- */

.hu-achievements {
    margin-top: 0.4rem;
}

.hu-achievement {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.hu-achievement__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--hu-border-strong);
    object-fit: cover;
    flex-shrink: 0;
}

.hu-achievement__body {
    flex: 1;
}

.hu-achievement__status {
    margin: 0 0 0.18rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hu-text-muted);
}

.hu-achievement__status--unlocked {
    color: var(--hu-accent-secondary);
}

.hu-achievement--locked {
    opacity: 0.45;
    filter: grayscale(1);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hu-container {
        width: min(100% - 1.6rem, 1080px);
    }

    .hu-nav {
        position: absolute;
        inset-inline: 0;
        top: var(--hu-nav-height);
        background: #121212;
        border-bottom: 1px solid #4a4a4a;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 180ms ease-out, opacity 180ms ease-out;
    }

    .hu-nav.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .hu-nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem;
    }

    .hu-nav-toggle {
        display: inline-flex;
    }

    .hu-user {
        display: none;
    }

    .hu-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hu-hero__panel {
        justify-content: flex-start;
    }

    .hu-feed {
        grid-template-columns: minmax(0, 1fr);
    }

    .hu-feed__sidebar {
        position: static;
        order: -1;
    }

    .hu-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .hu-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Top nav: flat text links, magenta active/hover */

.hu-nav__list {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* a little breathing room between links */
    list-style: none;
    margin: 0;
    padding: 0;
}

.hu-nav__link {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--hu-text-muted);

    /* remove “button” styling */
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;

    transition: color 150ms ease-out;
}

/* Hover: just magenta text */
.hu-nav__link:hover,
.hu-nav__link:focus-visible {
    color: #cf1c9e;
}

/* Active page: magenta text, no background/border */
.hu-nav__link.is-active {
    color: #cf1c9e;
    background: transparent;
    border: none;
}


@media (max-width: 600px) {
    .hu-main {
        padding-top: 1.4rem;
    }

    .hu-container {
        width: min(100% - 1.2rem, 1080px);
    }

    .hu-hero__title {
        font-size: 1.7rem;
    }
}
