/* public/css/style.css — NPC Gamers — Tema Visual Completo */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─── VARIÁVEIS ─────────────────────────────────────────────── */
:root {
  --bg:          #0A0812;
  --bg2:         #100E1A;
  --bg3:         #16132A;
  --bg4:         #1E1B30;
  --card:        #12101F;
  --card2:       #1A1730;
  --border:      #2A2545;
  --border2:     #352F5A;
  --primary:     #7C3AED;
  --primary2:    #6D28D9;
  --primary3:    #5B21B6;
  --glow:        rgba(124,58,237,0.35);
  --accent:      #F59E0B;
  --accent2:     #D97706;
  --green:       #10B981;
  --red:         #EF4444;
  --blue:        #3B82F6;
  --pink:        #EC4899;
  --text:        #EDE9FE;
  --text2:       #A89EC9;
  --text3:       #6B5E8A;
  --link:        #A78BFA;
  --font:        'Exo 2', sans-serif;
  --font-head:   'Rajdhani', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      10px;
  --radius2:     16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow2:     0 8px 40px rgba(0,0,0,0.7);
  --trans:       all 0.2s ease;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124,58,237,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 60%, rgba(245,158,11,0.06) 0%, transparent 60%);
}
a { color: var(--link); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font); }
ul { list-style: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary3); border-radius: 3px; }

/* ─── TIPOGRAFIA ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5px; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.mono { font-family: var(--font-mono); }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }
.layout-3col { display: grid; grid-template-columns: 260px 1fr 280px; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.layout-2col { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.layout-full { margin-top: 1.5rem; }

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,8,18,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.navbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; height: 60px; }
.navbar-logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.navbar-logo span { color: var(--primary); }
.logo-badge { background: var(--primary); color: #fff; font-size: .6rem; padding: 1px 5px; border-radius: 4px; font-family: var(--font-mono); margin-left: 4px; vertical-align: middle; }
.navbar-nav { display: flex; align-items: center; gap: .25rem; flex: 1; margin-left: 1rem; }
.navbar-nav a { padding: .4rem .75rem; border-radius: var(--radius); color: var(--text2); font-size: .9rem; font-weight: 500; transition: var(--trans); display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.navbar-nav a:hover, .navbar-nav a.active { background: var(--bg3); color: var(--text); }
.navbar-nav a.active { color: var(--primary); }
.navbar-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.notif-btn { position: relative; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); width: 38px; height: 38px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: var(--trans); }
.notif-btn:hover { border-color: var(--primary); color: var(--text); }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: .65rem; font-family: var(--font-mono); padding: 1px 5px; border-radius: 10px; min-width: 18px; text-align: center; }
.user-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.btn-login { background: var(--primary); color: #fff; padding: .4rem 1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 600; transition: var(--trans); border: none; cursor: pointer; }
.btn-login:hover { background: var(--primary2); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius2); min-width: 200px; padding: .5rem 0; box-shadow: var(--shadow2); z-index: 200; display: none; }
.dropdown:hover .dropdown-menu, .dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; color: var(--text2); font-size: .875rem; width: 100%; background: none; border: none; cursor: pointer; text-align: left; transition: var(--trans); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg3); color: var(--text); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: .3rem 0; }

/* ─── XP BAR NAVBAR ────────────────────────────────────────── */
.xp-mini { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.xp-mini-label { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text3); font-family: var(--font-mono); }
.xp-mini-bar { height: 4px; background: var(--bg4); border-radius: 4px; overflow: hidden; }
.xp-mini-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 1s ease; }

/* ─── CARD ──────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; display: flex; align-items: center; gap: .4rem; color: var(--text); }
.card-body { padding: 1.25rem; }
.card-glow { box-shadow: 0 0 30px var(--glow); border-color: rgba(124,58,237,0.4); }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: .875rem; cursor: pointer; transition: var(--trans); border: none; font-family: var(--font); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary2); color: #fff; box-shadow: 0 0 16px var(--glow); }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); }
.btn-secondary:hover { border-color: var(--primary); color: var(--text); }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: var(--accent2); color: #000; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon { padding: .45rem; width: 36px; height: 36px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; color: var(--text2); margin-bottom: .4rem; font-weight: 500; }
.form-control {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  padding: .6rem .9rem; border-radius: var(--radius); font-size: .9rem; font-family: var(--font);
  transition: var(--trans); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-control::placeholder { color: var(--text3); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--text3); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--red); margin-top: .3rem; }

/* ─── BADGE CHIPS ───────────────────────────────────────────── */
.badge-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; font-family: var(--font-mono); }
.badge-common   { background: rgba(107,114,128,.2); color: #9CA3AF; border: 1px solid rgba(107,114,128,.3); }
.badge-rare     { background: rgba(59,130,246,.2);  color: #60A5FA; border: 1px solid rgba(59,130,246,.3); }
.badge-epic     { background: rgba(139,92,246,.2);  color: #A78BFA; border: 1px solid rgba(139,92,246,.3); }
.badge-legendary{ background: rgba(245,158,11,.2);  color: #FCD34D; border: 1px solid rgba(245,158,11,.4); box-shadow: 0 0 8px rgba(245,158,11,.2); }

/* ─── LEVEL BADGE ───────────────────────────────────────────── */
.level-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 20px; font-size: .75rem; font-weight: 700; font-family: var(--font-head); border: 1px solid; }

/* ─── AVATAR ────────────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs  { width: 28px; height: 28px; border: 2px solid var(--border2); }
.avatar-sm  { width: 40px; height: 40px; border: 2px solid var(--border2); }
.avatar-md  { width: 56px; height: 56px; border: 3px solid var(--primary); }
.avatar-lg  { width: 80px; height: 80px; border: 3px solid var(--primary); }
.avatar-xl  { width: 120px; height: 120px; border: 4px solid var(--primary); box-shadow: 0 0 20px var(--glow); }

/* ─── THREAD CARD ───────────────────────────────────────────── */
.thread-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); padding: 1rem 1.25rem; transition: var(--trans); display: flex; gap: 1rem; }
.thread-card:hover { border-color: var(--border2); background: var(--card2); }
.thread-votes { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 40px; }
.vote-btn { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 1.1rem; transition: var(--trans); padding: .15rem; line-height: 1; border-radius: 4px; }
.vote-btn:hover, .vote-btn.active { color: var(--accent); }
.vote-count { font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--text2); }
.thread-content { flex: 1; min-width: 0; }
.thread-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-title a { color: inherit; }
.thread-title a:hover { color: var(--primary); }
.thread-meta { display: flex; align-items: center; gap: .75rem; font-size: .78rem; color: var(--text3); flex-wrap: wrap; }
.thread-meta a { color: var(--text3); }
.thread-meta a:hover { color: var(--link); }
.thread-cat { background: rgba(124,58,237,.15); color: var(--link); border: 1px solid rgba(124,58,237,.25); padding: .15rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.thread-stats { display: flex; align-items: center; gap: 1rem; font-size: .78rem; color: var(--text3); }

/* ─── XP BAR GRANDE ────────────────────────────────────────── */
.xp-bar-wrap { background: var(--bg3); border-radius: 20px; overflow: hidden; position: relative; height: 10px; }
.xp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 20px; transition: width 1.2s cubic-bezier(.4,0,.2,1); position: relative; }
.xp-bar-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,.5); border-radius: 2px; animation: xp-pulse 2s infinite; }
@keyframes xp-pulse { 0%,100% { opacity:.5 } 50% { opacity:1 } }

/* ─── SIDEBAR CARDS ─────────────────────────────────────────── */
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; margin-bottom: 1rem; }
.sidebar-card-header { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.sidebar-card-body { padding: .75rem 1rem; }

/* ─── RANKING ITEM ──────────────────────────────────────────── */
.rank-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--text3); min-width: 20px; text-align: center; }
.rank-num.gold   { color: var(--accent); }
.rank-num.silver { color: #9CA3AF; }
.rank-num.bronze { color: #CD7C32; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: .875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-xp { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }

/* ─── PROFILE CARD ──────────────────────────────────────────── */
.profile-banner { background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%); border: 1px solid var(--border); border-radius: var(--radius2); padding: 2rem; position: relative; overflow: hidden; }
.profile-banner::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: radial-gradient(circle, var(--glow) 0%, transparent 70%); pointer-events: none; }
.profile-top { display: flex; align-items: flex-end; gap: 1.25rem; }
.profile-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.profile-stat { text-align: center; }
.profile-stat-val { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.profile-stat-lbl { font-size: .75rem; color: var(--text3); }

/* ─── GAME CARD ─────────────────────────────────────────────── */
.game-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--trans); }
.game-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.2); }
.game-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg3); }
.game-info { padding: .75rem; }
.game-title { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { font-size: .75rem; color: var(--text3); }
.game-rating { display: flex; align-items: center; gap: .25rem; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }

/* ─── STATUS PILLS ──────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.status-playing   { background: rgba(59,130,246,.15);  color: #60A5FA; border: 1px solid rgba(59,130,246,.3); }
.status-completed { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.3); }
.status-want      { background: rgba(245,158,11,.15); color: #FCD34D; border: 1px solid rgba(245,158,11,.3); }
.status-dropped   { background: rgba(239,68,68,.15);  color: #FCA5A5; border: 1px solid rgba(239,68,68,.3); }
.status-platinum  { background: rgba(139,92,246,.2);  color: #C4B5FD; border: 1px solid rgba(139,92,246,.4); box-shadow: 0 0 6px rgba(139,92,246,.2); }

/* ─── ALERTS ────────────────────────────────────────────────── */
.alert { padding: .85rem 1rem; border-radius: var(--radius); font-size: .875rem; display: flex; align-items: flex-start; gap: .6rem; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #34D399; }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #FCA5A5; }
.alert-info    { background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.3); color: var(--link); }
.alert-warn    { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--accent); }

/* ─── TABS ──────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: .25rem; margin-bottom: 1.25rem; }
.tab { padding: .6rem 1rem; font-size: .875rem; font-weight: 600; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; transition: var(--trans); background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── PAGINAÇÃO ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .4rem; justify-content: center; padding: 1.5rem 0; flex-wrap: wrap; }
.page-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--trans); cursor: pointer; font-family: var(--font-mono); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius2); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow2); }
.modal-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }
.modal-close { background: none; border: none; color: var(--text3); font-size: 1.2rem; cursor: pointer; transition: var(--trans); }
.modal-close:hover { color: var(--text); }

/* ─── NOTIFICATION DROPDOWN ─────────────────────────────────── */
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius2); box-shadow: var(--shadow2); z-index: 300; display: none; overflow: hidden; }
.notif-panel.open { display: block; }
.notif-panel-header { padding: .75rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: .875rem; font-weight: 600; }
.notif-item { display: flex; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); transition: var(--trans); }
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.notif-text { font-size: .8rem; color: var(--text2); line-height: 1.4; flex: 1; }
.notif-time { font-size: .7rem; color: var(--text3); font-family: var(--font-mono); margin-top: .2rem; }

/* ─── LEVEL UP OVERLAY ──────────────────────────────────────── */
.levelup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn .3s ease; }
.levelup-card { background: var(--card2); border: 2px solid var(--accent); border-radius: 24px; padding: 2.5rem; text-align: center; box-shadow: 0 0 60px rgba(245,158,11,.4); animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1); }
.levelup-card h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--accent); letter-spacing: 3px; }
.levelup-card p { color: var(--text2); margin: .5rem 0; }
.levelup-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); font-weight: 700; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes scaleIn { from { transform:scale(.6); opacity:0 } to { transform:scale(1); opacity:1 } }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 5000; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: .8rem 1.1rem; font-size: .875rem; display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow); min-width: 260px; animation: slideUp .3s ease; }
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--primary); }
@keyframes slideUp { from { transform:translateY(20px); opacity:0 } to { transform:translateY(0); opacity:1 } }

/* ─── FORUM POST ────────────────────────────────────────────── */
.post-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; }
.post-sidebar { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 80px; text-align: center; }
.post-author-name { font-size: .75rem; font-weight: 600; color: var(--text2); }
.post-body { flex: 1; min-width: 0; }
.post-text { color: var(--text2); font-size: .925rem; line-height: 1.7; }
.post-actions { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.post-vote-btn { background: none; border: none; color: var(--text3); cursor: pointer; font-size: .8rem; display: flex; align-items: center; gap: .2rem; padding: .2rem .4rem; border-radius: 4px; transition: var(--trans); }
.post-vote-btn:hover { background: var(--bg3); color: var(--text); }
.post-vote-btn.active { color: var(--accent); }

/* ─── GAME GRID ─────────────────────────────────────────────── */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.game-grid-lg { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: 3rem; font-family: var(--font-head); letter-spacing: 2px; margin-bottom: .75rem; }
.hero h1 span { color: var(--primary); text-shadow: 0 0 30px var(--glow); }
.hero p { color: var(--text2); max-width: 560px; margin: 0 auto 1.5rem; font-size: 1.05rem; }

/* ─── STATS ROW ─────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); padding: 1.25rem; text-align: center; }
.stat-box-val { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.stat-box-lbl { font-size: .8rem; color: var(--text3); margin-top: .25rem; }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text3); }
.empty-state-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state p { font-size: .9rem; }

/* ─── ADMIN ─────────────────────────────────────────────────── */
.admin-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius2); padding: .5rem 0; }
.admin-nav-item { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; color: var(--text2); font-size: .875rem; transition: var(--trans); }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--bg3); color: var(--text); }
.admin-nav-item.active { color: var(--primary); border-left: 3px solid var(--primary); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .layout-3col { grid-template-columns: 220px 1fr; }
  .layout-3col .sidebar-right { display: none; }
}
@media (max-width: 768px) {
  .layout-3col, .layout-2col { grid-template-columns: 1fr; }
  .layout-3col .sidebar-left, .layout-2col .sidebar-left { display: none; }
  .navbar-nav { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .xp-mini { display: none; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .thread-card { flex-direction: column; }
  .thread-votes { flex-direction: row; }
  .profile-top { flex-direction: column; align-items: center; text-align: center; }
}

/* ─── UTILITIES ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text3); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.font-mono { font-family: var(--font-mono); }
.font-head { font-family: var(--font-head); }
.bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
