/* spartanlounge.gg/Trinity shared look (header, nav, game badges, game selector, empty states).
   Loaded after /styles.css; uses its tokens. Owner: architect (SPEC.md section 4). */

.tri-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--unsc-blue);
    text-transform: uppercase;
    margin-top: 6px;
    text-shadow: 0 0 12px rgba(168, 212, 255, 0.45);
}
.tri-title a { color: inherit; text-decoration: none; }
body.tri header#mainHeader { margin-bottom: 0; padding-bottom: 10px; }

/* nav: same language as .main-tab-btn, sized for 6 items and wrapping on phones */
.tri-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    margin: 18px 0 30px 0;
    border-bottom: 3px solid rgba(168, 212, 255, 0.2);
}
.tri-nav a {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 4px solid transparent;
    margin-bottom: -3px;
    transition: color .2s ease, text-shadow .2s ease, border-color .2s ease;
}
.tri-nav a:hover { color: var(--unsc-blue); text-shadow: 0 0 10px rgba(168, 212, 255, 0.5); }
.tri-nav a.active { color: var(--unsc-blue); border-bottom-color: var(--unsc-blue); text-shadow: 0 0 15px rgba(168, 212, 255, 0.8); }
@media (max-width: 720px) {
    .tri-nav { gap: 0 2px; margin: 12px 0 22px; }
    .tri-nav a { font-size: 11px; letter-spacing: 1.5px; padding: 10px 9px; }
    .tri-title { font-size: 12px; letter-spacing: 4px; }
}

/* game badges: same shape as the LIVE widget's H2TRINITY / OGH3 badges */
.tri-badge {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    text-transform: uppercase;
}
.tri-badge-ce { border: 1px solid rgba(168, 212, 255, 0.45); background: rgba(168, 212, 255, 0.12); color: var(--unsc-blue); } /* [site-badges-blue] one Halo blue for every game */
.tri-badge-h2 { border: 1px solid rgba(168, 212, 255, 0.45); background: rgba(168, 212, 255, 0.12); color: var(--unsc-blue); }
.tri-badge-h3 { border: 1px solid rgba(168, 212, 255, 0.45); background: rgba(168, 212, 255, 0.12); color: var(--unsc-blue); }
a.tri-badge { text-decoration: none; }
a.tri-badge:hover { filter: brightness(1.25); }

/* game selector (games list, leaderboards, appearance) */
.tri-gamesel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.tri-gamesel-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(168, 212, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.tri-gamesel-btn:hover { color: var(--unsc-blue); border-color: rgba(168, 212, 255, 0.55); }
.tri-gamesel-btn.active { color: var(--unsc-blue); border-color: var(--unsc-blue); background: rgba(168, 212, 255, 0.10); box-shadow: 0 0 12px rgba(168, 212, 255, 0.18); }
.tri-gamesel-btn[disabled], .tri-gamesel-btn.disabled { opacity: .5; cursor: default; }
.tri-gamesel-btn .tri-soon { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); }

/* empty / loading states */
.tri-empty {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 44px 20px; margin: 10px 0;
    border: 1px dashed rgba(168, 212, 255, 0.22); border-radius: 8px;
    background: rgba(0, 217, 255, 0.02);
    text-align: center; color: var(--text-secondary);
}
.tri-empty b { font-family: 'Orbitron', sans-serif; font-size: 15px; letter-spacing: 2px; color: var(--unsc-blue); text-transform: uppercase; }
.tri-empty span { font-size: 14px; }

/* landing page */
.tri-hero { text-align: center; margin: 0 auto 34px; max-width: 760px; }
.tri-hero h1 { font-family: 'Orbitron', sans-serif; font-size: 34px; letter-spacing: 6px; color: var(--text-primary); margin-bottom: 10px; text-transform: uppercase; }
.tri-hero p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.tri-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 34px; }
.tri-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.tri-card h2 { font-family: 'Orbitron', sans-serif; font-size: 19px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tri-card .tri-card-stat { font-family: 'Share Tech Mono', monospace; color: var(--text-secondary); font-size: 14px; }
.tri-card .tri-card-stat b { color: var(--unsc-blue); font-weight: 400; }
.tri-card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tri-card-links a {
    font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--unsc-blue); text-decoration: none; padding: 7px 11px; border: 1px solid var(--border-color); border-radius: 4px;
}
.tri-card-links a:hover { border-color: var(--unsc-blue); background: rgba(168, 212, 255, 0.08); }
.tri-card.tri-off { opacity: .72; }
.tri-section-title { font-family: 'Orbitron', sans-serif; font-size: 18px; letter-spacing: 3px; color: var(--unsc-blue); text-transform: uppercase; margin: 6px 0 14px; }
.tri-recent { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.tri-recent a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 12px 14px; background: var(--card-bg); border: 1px solid rgba(168, 212, 255, 0.15); border-radius: 6px;
    color: var(--text-primary); text-decoration: none; min-width: 0;
}
.tri-recent a:hover { border-color: var(--border-color); background: rgba(168, 212, 255, 0.05); }
.tri-recent .tri-r-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-recent .tri-r-main small { color: var(--text-secondary); margin-left: 8px; }
.tri-recent .tri-r-time { font-family: 'Share Tech Mono', monospace; color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.tri-more { text-align: center; }
.tri-more a { color: var(--unsc-blue); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 2px; text-decoration: none; }
@media (max-width: 720px) {
    .tri-hero h1 { font-size: 24px; letter-spacing: 3px; }
    .tri-recent a { grid-template-columns: auto 1fr; }
    .tri-recent .tri-r-time { grid-column: 2; }
}
/* phones: the 420px banner is wider than a 390px screen and pushed every Trinity page sideways */
body.tri .logo { max-width: min(420px, 86vw); }
body.tri .tri-recent a > * { min-width: 0; }
@media (max-width: 720px) { body.tri .container { padding: 24px 16px; } }
