/* ============================================================================
   MMA.SOCIAL — /hub/ (personal dashboard)

   EVERY class here is prefixed .mh-*.  The page used to use .hub-card /
   .hub-grid, which css/arena-overhaul.css also owns for the unrelated icon-hub
   tiles.  Its phone rule is !important:

       @media (max-width:720px){ .hub-card{ display:grid !important;
           grid-template-columns:52px minmax(0,1fr) !important; } }

   …so every panel on this page was squeezed into a 52px first column and the
   headings stacked one letter per line.  Do not reintroduce a .hub-* class.

   Palette: interaction is cyan (--accent-gold is remapped to #4DD8E6).
   --belt is used exactly once, for the Champion fantasy tier.
   ========================================================================= */

.mh-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 14px 56px;
}

/* ---- Header ------------------------------------------------------------- */
.mh-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
}

.mh-head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary, #E6E8EF);
}

.mh-head p {
    margin: 4px 0 0;
    color: var(--text-muted, #8A8FA0);
    font-size: 0.86rem;
    line-height: 1.5;
}

.mh-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: var(--radius-sm, 5px);
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--border, #1D1E28);
}

.mh-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #0E0E14);
    color: var(--accent-gold, #4DD8E6);
    font-family: var(--f-display, 'Oswald', sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
}

/* Logged-out header: a real intro, not a login wall */
.mh-head-out {
    display: block;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border, #1D1E28);
    margin-bottom: 20px;
}

.mh-head-out p {
    max-width: 54ch;
    margin: 8px 0 16px;
    font-size: 0.92rem;
    color: var(--text-secondary, #B6BAC6);
}

/* ---- Grid + panels ------------------------------------------------------ */
.mh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mh-full { grid-column: 1 / -1; }

.mh-card {
    min-width: 0;
    background: var(--bg-card, #0E0E14);
    border: 1px solid var(--border, #1D1E28);
    border-radius: var(--radius-md, 7px);
    padding: 15px 16px 16px;
}

.mh-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    font-family: var(--f-display, 'Oswald', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary, #E6E8EF);
}

.mh-card h2 > i { color: var(--accent-gold, #4DD8E6); font-size: 1.05em; }

.mh-see {
    margin-left: auto;
    padding: 6px 0 6px 10px;
    font-family: system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--accent-gold, #4DD8E6);
    text-decoration: none;
    white-space: nowrap;
}

.mh-see:hover { text-decoration: underline; }
.mh-see-plain { color: var(--text-muted, #8A8FA0); }

/* ---- Primary action ------------------------------------------------------ */
.mh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;                 /* was 39px */
    padding: 0 20px;
    border: 1px solid var(--accent-gold, #4DD8E6);
    border-radius: var(--radius-sm, 5px);
    background: rgba(77, 216, 230, 0.13);
    color: var(--accent-gold, #4DD8E6);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.mh-cta:hover { background: rgba(77, 216, 230, 0.22); }

.mh-cta-lg { min-height: 48px; padding: 0 26px; font-size: 0.88rem; }

/* ---- Next event --------------------------------------------------------- */
.mh-event {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mh-poster {
    width: 64px;
    height: 90px;
    flex: none;
    object-fit: cover;
    border-radius: var(--radius-sm, 5px);
    border: 1px solid var(--border, #1D1E28);
    background: var(--bg-tertiary, #0E0E14);
}

.mh-poster-empty { display: block; }

.mh-event-txt { min-width: 0; }

.mh-event-name {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
    color: var(--text-primary, #E6E8EF);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mh-event-name:hover { color: var(--accent-gold, #4DD8E6); }

.mh-event-meta {
    margin: 4px 0 12px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted, #8A8FA0);
}

.mh-when { color: var(--accent-gold, #4DD8E6); font-weight: 700; }

/* ---- Fantasy standing --------------------------------------------------- */
.mh-fantasy {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mh-tier { min-width: 92px; }

.mh-tier-name {
    display: block;
    font-family: var(--f-display, 'Oswald', sans-serif);
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent-gold, #4DD8E6);
}

/* The ONE place --belt is allowed on this page: the Champion tier. */
.mh-tier-name.is-champ { color: var(--belt, #E8B830); }
.mh-tier-hidden { color: var(--text-muted, #8A8FA0); }

.mh-tier-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #8A8FA0);
}

.mh-fstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    flex: 1 1 200px;
}

.mh-fstat b {
    display: block;
    font-family: var(--f-data, ui-monospace, monospace);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #E6E8EF);
}

.mh-fstat span {
    display: block;
    margin-top: 2px;
    font-size: 0.63rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #8A8FA0);
}

.mh-locked .mh-fstat b { color: var(--text-muted, #8A8FA0); }

.mh-note {
    margin: 14px 0 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted, #8A8FA0);
}

/* ---- Fighter rows ------------------------------------------------------- */
.mh-list { display: flex; flex-direction: column; }

.mh-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 6px;
    border-bottom: 1px solid var(--border, #1D1E28);
    border-radius: var(--radius-sm, 5px);
    text-decoration: none;
    color: inherit;
    min-height: 44px;
}

.mh-row:last-child { border-bottom: none; }
.mh-row:hover { background: var(--bg-hover, #171822); }

.mh-rank {
    flex: none;
    width: 22px;
    font-family: var(--f-data, ui-monospace, monospace);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted, #8A8FA0);
}

/* Rank #1 is the only rank that gets belt gold, site-wide. */
.mh-rank.is-first { color: var(--belt, #E8B830); }

.mh-face {
    width: 40px;
    height: 40px;
    flex: none;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-sm, 5px);
    border: 1px solid var(--border, #1D1E28);
    background: var(--bg-tertiary, #0E0E14);
}

.mh-face-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted, #8A8FA0);
}

.mh-row-txt { flex: 1 1 auto; min-width: 0; }

.mh-row-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #E6E8EF);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-row:hover .mh-row-name { color: var(--accent-gold, #4DD8E6); }

.mh-row-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.73rem;
    color: var(--text-muted, #8A8FA0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-row-elo {
    flex: none;
    text-align: right;
    font-family: var(--f-data, ui-monospace, monospace);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #E6E8EF);
}

.mh-row-elo small {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: var(--text-muted, #8A8FA0);
}

.mh-next {
    flex: none;
    max-width: 44%;
    text-align: right;
    font-size: 0.72rem;
    line-height: 1.35;
}

.mh-next-lbl {
    display: block;
    font-family: var(--f-data, ui-monospace, monospace);
    font-weight: 700;
    color: var(--accent-gold, #4DD8E6);
}

.mh-next-opp {
    display: block;
    color: var(--text-muted, #8A8FA0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Activity ----------------------------------------------------------- */
.mh-act { display: flex; flex-direction: column; }

.mh-act-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 40px;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border, #1D1E28);
    border-radius: var(--radius-sm, 5px);
    font-size: 0.84rem;
    color: var(--text-secondary, #B6BAC6);
    text-decoration: none;
}

.mh-act-item:last-child { border-bottom: none; }
a.mh-act-item:hover { background: var(--bg-hover, #171822); }

.mh-act-when {
    flex: none;
    width: 44px;
    font-family: var(--f-data, ui-monospace, monospace);
    font-size: 0.72rem;
    color: var(--text-muted, #8A8FA0);
}

.mh-act-txt { min-width: 0; overflow-wrap: anywhere; }
.mh-act-txt > i { color: var(--accent-gold, #4DD8E6); margin-right: 3px; vertical-align: -0.12em; }
.mh-act-txt .af-target { color: var(--text-primary, #E6E8EF); font-weight: 700; }
a.mh-act-item:hover .af-target { color: var(--accent-gold, #4DD8E6); }
.mh-act-txt .af-score { font-family: var(--f-data, ui-monospace, monospace); color: var(--accent-gold, #4DD8E6); font-weight: 700; }

/* ---- Empty states + counters -------------------------------------------- */
.mh-empty {
    padding: 14px 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-muted, #8A8FA0);
}

.mh-empty a { color: var(--accent-gold, #4DD8E6); }

.mh-counters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #1D1E28);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #8A8FA0);
}

.mh-counters b {
    font-family: var(--f-data, ui-monospace, monospace);
    font-size: 0.95rem;
    color: var(--text-primary, #E6E8EF);
    margin-right: 5px;
}

/* ---- Phone -------------------------------------------------------------- */
@media (max-width: 760px) {
    .mh-grid { grid-template-columns: minmax(0, 1fr); }
    .mh-wrap { padding: 16px 12px 52px; }
    .mh-card { padding: 14px 13px 15px; }
    .mh-fantasy { gap: 12px; }
    .mh-fstats { flex-basis: 100%; }
    .mh-next { max-width: 40%; }
    .mh-cta { width: 100%; }
    .mh-cta-lg { width: 100%; }
}
