:root {
	/* Hetzelfde thema als de login pagina */
	--glass-bg: rgba(20, 20, 20, 0.85);
	--glass-panel: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.1);
	--accent-gold: #ffd700;
	--accent-red: #e74c3c;
	--accent-green: #2ecc71;
	--accent-blue: #3498db;
	--text-main: #e0e0e0;
	--text-muted: #999;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: 'Roboto', sans-serif;
	background-image: url('http://images.unsplash.com/photo-1486006920555-c77dcf18193c?q=80&w=1992&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	min-height: 100vh;
	color: var(--text-main);
	padding-bottom: 40px; /* Ruimte voor footer */
}

/* --- LAYOUT GRID --- */
.app-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* --- HEADER --- */
.game-header {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo h1 {
	font-family: 'Rajdhani', sans-serif;
	font-size: 2rem;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	letter-spacing: 2px;
}
.logo span { color: var(--accent-gold); }

.top-actions {
	display: flex;
	gap: 15px;
}

.action-btn {
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--glass-border);
	color: #fff;
	padding: 8px 15px;
	border-radius: 6px;
	text-decoration: none;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 600;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
}
.action-btn:hover {
	background: var(--accent-gold);
	color: #000;
	border-color: var(--accent-gold);
}
.action-btn.logout:hover {
	background: var(--accent-red);
	color: #fff;
	border-color: var(--accent-red);
}

/* --- MAIN GRID (3 Kolommen) --- */
.game-grid {
	display: grid;
	grid-template-columns: 240px 1fr 240px; /* Links, Midden, Rechts */
	gap: 20px;
	align-items: start;
}

/* Algemene Panel Styling */
.panel {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
}
.panel:last-child { margin-bottom: 0; }

.panel-header {
	background: rgba(255, 255, 255, 0.05);
	padding: 12px 15px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--accent-gold);
	border-bottom: 1px solid var(--glass-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* --- LINKER KOLOM (NAVIGATIE) --- */
.nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nav-list li {
	border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav-list a {
	display: block;
	padding: 10px 15px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nav-list a i { width: 20px; text-align: center; }
.nav-list a:hover {
	background: rgba(255, 215, 0, 0.1);
	color: #fff;
	padding-left: 20px;
	border-left: 3px solid var(--accent-gold);
}
.badge {
	background: var(--accent-red);
	color: #fff;
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: auto;
}

/* --- MIDDEN KOLOM (CONTENT) --- */
.content-area {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.welcome-banner {
	background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0,0,0,0));
	border-left: 4px solid var(--accent-gold);
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 0.95rem;
}

/* Cooldown Bars in Table */
.mini-progress {
	width: 100px;
	height: 6px;
	background: rgba(255,255,255,0.1);
	border-radius: 3px;
	overflow: hidden;
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}
.mini-fill { height: 100%; border-radius: 3px; }

/* --- RECHTER KOLOM (STATS) --- */

/* Profile Box */
.profile-header {
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid var(--glass-border);
	background: rgba(0,0,0,0.2);
}
.avatar-circle {
	width: 80px;
	height: 80px;
	background: #222;
	border: 2px solid var(--accent-gold);
	border-radius: 50%;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--accent-gold);
	box-shadow: 0 0 15px rgba(255,215,0,0.2);
}
.player-name {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
}
.player-rank {
	color: var(--accent-gold);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Stats List */
.stats-list {
	padding: 15px;
}
.stat-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 0.9rem;
}
.stat-item span:first-child { color: var(--text-muted); }
.stat-item span:last-child { color: #fff; font-weight: 600; font-family: 'Rajdhani', sans-serif; }

/* Progress Bars */
.bar-container {
	margin-bottom: 15px;
}
.bar-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	margin-bottom: 5px;
	color: #ccc;
}
.progress-track {
	height: 8px;
	background: rgba(0,0,0,0.4);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.05);
}
.progress-bar {
	height: 100%;
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Kleuren */
.bg-red { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.bg-green { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.bg-blue { background: linear-gradient(90deg, #2980b9, #3498db); }
.bg-gold { background: linear-gradient(90deg, #b7950b, #f1c40f); }

.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }

/* Footer */
.footer {
	text-align: center;
	margin-top: 30px;
	color: #fff;
	font-size: 0.8rem;
	font-family: 'Rajdhani', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
	.game-grid {
		grid-template-columns: 1fr; /* Alles onder elkaar op mobiel/tablet */
	}
	.app-container { padding: 10px; }
	.nav-list { display: flex; flex-wrap: wrap; }
	.nav-list a { border-bottom: none; border-right: 1px solid var(--glass-border); flex: 1; justify-content: center;}
	.panel { margin-bottom: 15px; }
}

/* =========================
PANEL 50% LAYOUT
========================= */

/* =========================================
FIX: layout mag NIET door 50/50 panels breken
-> Forceer normale flow voor de hoofdcontent
========================================= */
#page-content,
.content-area{
display: block !important;
}

/* =========================================
50/50 panels: enkel deze naast elkaar
Gebruik: <div class="panel panel-half">...</div>
========================================= */
.panel-row{
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.panel-row .panel.panel-half{
box-sizing: border-box;
flex: 1 1 calc(50% - 10px); /* 2 kolommen + gap */
margin: 0;
vertical-align: top;
}

/* mobiel: onder elkaar */
@media (max-width: 768px){
.panel-row .panel.panel-half{
flex-basis: 100%;
}
}

.panel .content p{
padding: 10px 14px 5px 14px;
color: #999;
}

.stats-header {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.4rem;
	text-transform: uppercase;
	border-bottom: 1px solid var(--glass-border);
	padding-bottom: 10px;
	margin-bottom: 20px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
}

.stat-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 0.9rem;
	border-bottom: 1px solid rgba(255,255,255,0.03);
	padding-bottom: 4px;
}

.stat-label { color: var(--text-muted); }
.stat-value { font-weight: bold; color: #fff; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; }

a { color: #DDD; }
a:hover { color: var(--accent-gold); }
p.space { margin-top: 10px; margin-bottom: 10px; }

.mm-panel{
background: rgba(10,10,12,.72);
border: 1px solid rgba(255,255,255,.08);
box-shadow: 0 18px 40px rgba(0,0,0,.55);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 10px;
overflow: hidden;
color: #fff;
}

.mm-panel__head{
padding: 14px 16px;
font-weight: 900;
border-bottom: 1px solid rgba(255,255,255,.08);
background: rgba(255, 255, 255, 0.05);
color: var(--accent-gold);
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
}

.mm-panel__inner{ padding: 12px 10px; }

.mm-playername{
font-weight: 900;
font-size: 15px;
margin-bottom: 10px;
color: rgba(255,255,255,.92);
}

.mm-barblock{ margin-bottom: 12px; }

.mm-barblock__top{
display:flex;
justify-content: space-between;
align-items: baseline;
font-size: 12px;
color: rgba(255,255,255,.75);
margin-bottom: 6px;
}

.mm-barblock__top a{
color: rgba(255,255,255,.65);
text-decoration: none;
}
.mm-barblock__top a:hover{
color: rgba(255,255,255,.9);
}

.mm-barblock__bar img{
width: 100%;
height: 16px;
display:block;
border-radius: 999px;
box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.mm-stats{
margin-top: 8px;
border-top: 1px solid rgba(255,255,255,.08);
padding-top: 10px;
display:grid;
gap: 8px;
}

.mm-stat{
display:flex;
justify-content: space-between;
align-items: center;
padding: 5px 5px;
border-radius: 14px;
background: rgba(255,255,255,.04);
border: 1px solid rgba(255,255,255,.06);
}

.mm-stat a{ color: inherit; text-decoration:none; }

.mm-stat__left{
display:flex;
gap: 10px;
align-items:center;
font-size: 13px;
font-weight: 800;
color: rgba(255,255,255,.80);
}

.mm-stat__right{
font-size: 13px;
font-weight: 900;
letter-spacing: .2px;
}

.mm-icon{
width: 28px;
height: 28px;
border-radius: 10px;
display:grid;
place-items:center;
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.08);
}

.mm-green{ color: #34d399; }
.mm-gold{ color: #fbbf24; }

/* small tweak for header alignment */
.mm-panel__head--left{
text-align:left;
display:flex;
align-items:center;
justify-content:flex-start;
}


/* tighter inner spacing for compact card */
.mm-panel__inner--tight{ padding: 5px 6px 6px; }

.mm-statlist{
display:grid;
gap: 8px;
}

.mm-statrow{
display:flex;
align-items:center;
justify-content:space-between;
gap: 10px;
padding: 6px 6px;
cursor: pointer;
user-select:none;
transition: transform .08s ease, background .12s ease, border-color .12s ease;
color: var(--text-muted);
}
.mm-statrow:hover{
background: rgba(255,255,255,.06);
border-color: rgba(255,255,255,.10);
transform: translateY(-1px);
}

.mm-statrow:active{ transform: translateY(0px); }

.mm-statrow__label{
font-size: 13px;
font-weight: 900;
color: rgba(255,255,255,.90);
color: var(--text-muted);
}

/* right side pill */
.mm-pill{
display:inline-flex;
align-items:center;
justify-content:center;
min-width: 44px;
padding: 5px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 900;
letter-spacing: .2px;
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.10);
color: rgba(255,255,255,.90);
}

/* colored pills */
.mm-pill--green{
background: rgba(52,211,153,.12);
border-color: rgba(52,211,153,.25);
color: #34d399;
}
.mm-pill--blue{
background: rgba(59,130,246,.12);
border-color: rgba(59,130,246,.25);
color: #60a5fa;
}


/* =========================
   FORUM TOPIC (NIEUW)
   ========================= */
/* =========================
   FORUM TOPIC UI (GLASS)
   ========================= */

.forum-wrap{
  background: rgba(10,10,12,.72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
}

.forum-breadcrumbs{
  padding: 12px 16px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.forum-breadcrumbs a{ color: rgba(255,255,255,.78); text-decoration:none; }
.forum-breadcrumbs a:hover{ color: var(--accent-gold); }
.forum-breadcrumbs .sep{ opacity:.5; padding: 0 6px; }

.forum-stack{ padding: 16px; display:flex; flex-direction:column; gap: 14px; }

.forum-card{
  display:grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow:hidden;
}

.forum-card__side{
  padding: 14px;
  background: rgba(0,0,0,.18);
  border-right: 1px solid rgba(255,255,255,.06);
}

.forum-userbox{ display:flex; flex-direction:column; gap: 10px; }

.forum-avatar{
position: relative;
  width: 126px;
  height: 126px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 12px 30px rgba(0,0,0,.55),
    0 0 0 2px rgba(255,215,0,.08);
flex-shrink: 0;
}

.forum-username{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  line-height: 1.1;
}

.forum-usermeta{ display:flex; flex-wrap:wrap; gap:6px; margin-top: 6px;}

.forum-pill{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 900;
  letter-spacing: .2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}
.forum-pill--gold{
  background: rgba(255,215,0,.10);
  border-color: rgba(255,215,0,.22);
  color: #ffd700;
}
.forum-pill--red{
  background: rgba(231,76,60,.12);
  border-color: rgba(231,76,60,.25);
  color: #ff9b90;
}
.forum-pill--muted{ color: rgba(255,255,255,.70); }

.forum-card__body{ padding: 14px 16px 16px; }

.forum-meta{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 12px;
}

.forum-date{ color: rgba(255,255,255,.70); font-size: .85rem; }

.forum-actions{
  display:flex; gap: 8px; align-items:center;
}
.forum-actions a{
  display:inline-flex;
  align-items:center; justify-content:center;
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.forum-actions a:hover{
  border-color: rgba(255,215,0,.25);
  background: rgba(255,215,0,.08);
}

.forum-actions img{
  width: 18px; height: 18px;
  opacity: .9;
}

.forum-content{
  color: rgba(255,255,255,.92);
  line-height: 1.55;
  font-size: .98rem;
}
.forum-content p{ margin: 0 0 10px; }
.forum-content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.forum-replywrap{
  margin-top: 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
}

/* Mobile */
@media (max-width: 900px){
  .forum-card{ grid-template-columns: 1fr; }
  .forum-card__side{
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}


.avatar-admin{
  box-shadow:
    0 0 0 2px rgba(255,215,0,.35),
    0 0 25px rgba(255,215,0,.35),
    0 14px 34px rgba(0,0,0,.6);
}
.avatar-mod{
  box-shadow:
    0 0 0 2px rgba(59,130,246,.35),
    0 0 20px rgba(59,130,246,.35),
    0 14px 34px rgba(0,0,0,.6);
}
.avatar-player{
  box-shadow:
    0 14px 34px rgba(0,0,0,.6);
}
.avatar-special{
  box-shadow:
    0 0 0 2px rgba(168,85,247,.35),
    0 0 22px rgba(168,85,247,.35),
    0 14px 34px rgba(0,0,0,.6);
}
.forum-avatar-wrap{
  position: relative;
  width: 96px;
}

.forum-status{
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e; /* online */
  border: 2px solid rgba(15,15,18,.95); /* snijdt mooi uit avatar */
  box-shadow:
    0 0 6px rgba(34,197,94,.9),
    0 0 0 1px rgba(255,255,255,.15);
  z-index: 3;
}

.forum-status.offline{
  background: #6b7280;
  box-shadow: none;
}

.forum-status.offline{
  background: #6b7280;
}
