:root{
  /* Weazel News Light Theme */
  --bg:#f3f4f6;          /* page background */
  --card:#ffffff;        /* card background */
  --muted:#5b6472;       /* muted text */
  --text:#0b1220;        /* main text (black-ish) */
  --accent:#c9171f;      /* Weazel red */
  --line:#d6d9df;        /* borders */
  --ok:#138a4b;          /* success green */

  --navText:#ffffff;     /* navbar text */
  --navTextMuted:#ffe5e6;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial;
}

a{color:inherit;text-decoration:none}

.container{max-width:980px;margin:24px auto;padding:0 16px}
.container.narrow{max-width:520px}

/* NAVBAR (ROT) */
.topbar{
  position:sticky;
  top:0;
  background:var(--accent);
  border-bottom:1px solid rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  z-index:10;
}

.brand a{
  font-weight:900;
  letter-spacing:.08em;
  color:var(--navText);
}
.brand span{color:var(--navText)}

.nav{display:flex;gap:14px;align-items:center}
.nav a{color:var(--navTextMuted)}
.nav a.active{color:var(--navText);font-weight:800}
.nav a.danger{color:#ffffff;text-decoration:underline}

/* GENERIC CARD */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

h1,h2{margin:0 0 12px}

.row{display:flex;align-items:center}
.row.between{justify-content:space-between}
.row.gap{gap:10px}

.field{display:flex;flex-direction:column;gap:6px;margin:10px 0}
label{color:var(--muted);font-size:13px}

/* INPUTS (HELL) */
input,textarea{
  width:100%;
  background:#ffffff;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  outline:none;
}
input:focus,textarea:focus{border-color:rgba(201,23,31,.55)}

/* BUTTONS */
button{
  border:0;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
}
button.primary{background:var(--accent);color:white}
button.primary:hover{filter:brightness(.95)}
button.ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
}
button.full{width:100%}

.muted{color:var(--muted)}
.small{font-size:12px}
.error{color:#b00020;margin-top:10px}
.hidden{display:none !important}

/* SEGMENT (MENÜ) */
.seg{
  display:flex;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  overflow:hidden;
  background:#ffffff;
}
.segbtn{
  background:transparent;
  color:var(--muted);
  padding:10px 12px;
  font-weight:800;
}
.segbtn.active{
  background:var(--accent);
  color:white;
}

/* FEED + POST CARDS (WEISS) */
.feed{display:flex;flex-direction:column;gap:12px}

.post{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#ffffff;
}

.posthead{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start
}

.postuser{font-weight:900}
.postmeta{color:var(--muted);font-size:12px}
.postcontent{white-space:pre-wrap;margin:10px 0}

.postimg{
  width:100%;
  max-height:460px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}

.actions{display:flex;gap:10px;align-items:center;margin-top:10px}

.link{
  color:var(--accent);
  cursor:pointer;
  font-weight:800;
}
.link:hover{text-decoration:underline}

.pill{
  border:1px solid var(--line);
  background:#f7f7f9;
  border-radius:999px;
  padding:8px 12px;
  color:var(--muted);
  font-weight:700;
}

.commentbox{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.comment{padding:8px 0;border-bottom:1px dashed rgba(0,0,0,.12)}
.comment:last-child{border-bottom:0}
.hint{color:var(--muted);font-size:12px;margin-bottom:8px}

/* NOTIFICATIONS (ROT/WEISS) */
.iconbtn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:12px;
  background:rgba(255,255,255,.12);
  color:var(--navText);
}
.iconbtn:hover{background:rgba(255,255,255,.18)}

.badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ffffff;
  color:var(--accent);
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--accent);
  font-weight:900;
}
.badge.hidden{display:none !important}

.drawer{
  position:fixed;
  right:16px;
  top:72px;
  width:min(420px, calc(100vw - 32px));
  max-height:70vh;
  overflow:auto;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
  padding:12px;
  z-index:50
}
.drawer h3{margin:0 0 10px}

.notif{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  padding:10px;
  margin-bottom:10px
}
.notif.unread{border-color:rgba(201,23,31,.55)}

/* VERIFIED (BLAUER HAKEN) */
.verified{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#1f6feb;
  color:white;
  font-size:12px;
  margin-left:6px
}
