@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, Segoe UI, sans-serif; background: #e8dcc4; color: #2b2118; }
a { color: inherit; text-decoration: none; }

.portal-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.portal-sidebar {
  background: linear-gradient(180deg, #1a1410, #3d2b1f);
  color: #fff;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.portal-brand { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.portal-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.portal-brand strong { display: block; font-size: 0.9rem; }
.portal-brand span { font-size: 0.72rem; opacity: 0.7; }
.portal-sidebar nav { display: grid; gap: 6px; }
.portal-sidebar nav a {
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
}
.portal-sidebar nav a:hover, .portal-sidebar nav a.active { background: rgba(255,255,255,0.12); }
.portal-sidebar nav a.logout { margin-top: 10px; background: rgba(122,59,40,0.45); }

.portal-content { min-width: 0; }
.portal-head {
  background: #fff;
  border-bottom: 1px solid #d8dce0;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.portal-head h1 { font-size: 1.35rem; font-weight: 800; }
.portal-main { padding: 24px 28px 40px; }

.card {
  background: #fff;
  border: 1px solid #d8dce0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(16,18,20,0.05);
}
.card h2, .card h3 { margin-bottom: 8px; }
.meta { font-size: 0.82rem; color: #5e6469; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}
.btn-primary { background: #7a3b28; color: #fff; }
.btn-secondary { background: #eef0f2; color: #1f2326; }

.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
label { font-weight: 700; font-size: 0.8rem; }
input, select, textarea {
  width: 100%;
  border: 1.5px solid #d8dce0;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 120px; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.alert-error { background: #f2e4d8; color: #7a3b28; }
.alert-ok { background: #eaf8ef; color: #166534; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-wait { background: #fff4e5; color: #9a6700; }
.badge-info { background: #e8f0ff; color: #1d4ed8; }
.badge-ok { background: #eaf8ef; color: #166534; }
.badge-danger { background: #f2e4d8; color: #7a3b28; }
.badge-muted { background: #eef0f2; color: #5e6469; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid #d8dce0; border-radius: 12px; padding: 18px; }
.stat strong { display: block; font-size: 1.8rem; color: #7a3b28; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #1a1410, #4a2a1e);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #faf6ee;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.login-logo { text-align: center; margin-bottom: 20px; }
.login-logo img {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}
.hint { font-size: 0.78rem; color: #5e6469; margin-top: 6px; }

.nav-badge {
  display: inline-block;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.bildirim-kart.yeni { border-left: 4px solid #7a3b28; }
.bildirim-kart.okundu { opacity: 0.75; }

.portal-hizli-butonlar { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.portal-alt-baslik { color: #7a3b28; margin-bottom: 12px; }

.duyuru-kart { margin-bottom: 16px; }
.duyuru-ust { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.duyuru-ust h2 { margin: 0; font-size: 1.1rem; color: #7a3b28; }
.duyuru-icerik { line-height: 1.6; color: #3d2b1f; }
.duyuru-dosya { margin-top: 12px; }
.duyuru-liste-portal { margin-top: 16px; }

.roleplay-uyari {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 9999;
  max-width: 240px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(26, 20, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

@media (max-width: 800px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: relative; height: auto; }
  .portal-main { padding: 20px 16px; }
}
