/*
Theme Name: Bayou Board
Author: Woitzi
Description: Dunkles, gritty One-Page Theme (Hunt-Showdown-inspiriertes UI Feeling, ohne Originalassets).
Version: 1.0
Text Domain: bayou-board
*/

:root{
  --bg:#070707;
  --bg2:#0c0c0c;
  --panel:rgba(18,18,18,.78);
  --panel2:rgba(12,12,12,.55);
  --line:rgba(208,180,105,.24);
  --text:#e8e2d6;
  --muted:rgba(232,226,214,.72);
  --gold:#d0b469;
  --gold2:#a98b3a;
  --danger:#9b2d2d;
  --shadow: 0 18px 55px rgba(0,0,0,.65);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 35% 12%, rgba(208,180,105,.12), transparent 55%),
    radial-gradient(900px 500px at 80% 40%, rgba(155,45,45,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), #050505 60%, #040404);
  overflow-x:hidden;
}

.grain{
  position:fixed; inset:0;
  pointer-events:none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.18;
}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 22px;
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.72));
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand{display:flex; align-items:center; gap:12px; letter-spacing:.12em}

.sigil{
  width:28px; height:28px; border-radius:6px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(208,180,105,.55), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(208,180,105,.18), transparent 55%),
    linear-gradient(180deg, rgba(16,16,16,.8), rgba(6,6,6,.9));
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset;
}

.brand-title{
  font-family: Cinzel, serif;
  font-weight:700;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

.nav{display:flex; gap:18px}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-family: Cinzel, serif;
  font-weight:700;
  letter-spacing:.08em;
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: var(--line);
  background: rgba(208,180,105,.06);
}

.meta{display:flex; align-items:center; gap:10px}

.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(12,12,12,.55);
}

.iconbtn{
  border:1px solid var(--line);
  background: rgba(12,12,12,.55);
  color:var(--text);
  width:34px; height:34px; border-radius:10px;
  cursor:pointer;
}

.wrap{
  max-width:1150px;
  margin:0 auto;
  padding:26px 20px 60px;
  position: relative;
}

/* Optionales dunkles Overlay hinter Content für bessere Lesbarkeit */
.wrap:before{
  content:"";
  position:absolute;
  inset:-10px;
  background: radial-gradient(800px 380px at 50% 15%, rgba(0,0,0,.35), rgba(0,0,0,.65));
  pointer-events:none;
  z-index:-1;
  border-radius:24px;
}

/* HERO BEREICH ZENTRIEREN */
.hero{
  min-height: 50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-bottom: 18px;
}

/* LINKER BLOCK */
.hero-left{
  max-width: 800px;
  margin: 0 auto;
}

/* ÜBERSCHRIFT GRÖSSER */
.hero-left h1{
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
}

/* BESCHREIBUNG GRÖSSER & LUFTIGER */
.hero-left .lead{
  font-size: 1.25rem;
  max-width: 650px;
  margin: 3rem auto 0;
}

/* BUTTONS MITTE + MEHR ABSTAND */
.hero-left .cta{
  justify-content:center;
  margin-top: 2rem;
}

.kicker{
  font-family: Cinzel, serif;
  letter-spacing:.22em;
  color: var(--gold);
  opacity:.9;
  font-weight:700;
  font-size:15px;
  margin-bottom:8px;
}

h1{
  font-family: Cinzel, serif;
  margin:0 0 10px;
  font-size:44px;
  line-height:1.05;
  text-shadow: 0 2px 0 rgba(0,0,0,.6);
}

.lead{
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
  max-width:62ch;
}

/* CTA Buttons */
.cta{display:flex; gap:10px; margin-top:18px; flex-wrap:wrap}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid var(--line);
  font-family: Cinzel, serif;
  letter-spacing:.12em;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}

.btn-primary{
  background: linear-gradient(180deg, rgba(208,180,105,.22), rgba(208,180,105,.06));
  color:var(--text);
}
.btn-primary:hover{
  background: linear-gradient(180deg, rgba(208,180,105,.32), rgba(208,180,105,.09));
}

.btn-ghost{
  background: rgba(12,12,12,.55);
  color:var(--muted);
}
.btn-ghost:hover{
  color:var(--text);
  background: rgba(208,180,105,.06);
}

/* PANELS: mehr Kontrast + Blur */
.panel{
  background: linear-gradient(180deg, rgba(10,10,10,.88), rgba(6,6,6,.92));
  border: 1px solid rgba(208,180,105,.28);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Kopf */
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(208,180,105,.18);
  background: rgba(8,8,8,.35);
}

.panel-title{
  font-family: Cinzel, serif;
  font-weight:700;
  letter-spacing:.12em;
  font-size:13px;
  color: var(--gold);
}

/* Badge */
.badge{
  font-size:11px;
  letter-spacing:.12em;
  border:1px solid rgba(208,180,105,.35);
  padding:4px 8px;
  border-radius:999px;
  color:var(--text);
  background: rgba(208,180,105,.08);
}

/* Panel Body */
.panel-body{
  padding:18px;
}

/* Links im Panel */
.panel-body a{
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}

/* WICHTIG: Standard-Text in Panels LINKS (damit Updates nicht scheiße aussehen) */
.panel-body,
.panel-body p,
.panel-body li{
  text-align:left;
  line-height:1.75;
  font-size:14px;
}

/* Welcome: darf zentriert sein, aber nicht endlos breit */
#welcome .panel-body{
  text-align:center;
}
#welcome .panel-body p{
  text-align:center;
  max-width:72ch;
  margin: 0 auto 12px;
}

/* Updates: Headline/Body sauber */
#updates{
  margin-top: 16px;
}
#updates .update{
  padding: 10px 2px;
}
#updates .update h3{
  margin: 0 0 8px;
  font-family: Cinzel, serif;
  letter-spacing:.06em;
  font-size:18px;
  line-height:1.2;
}
#updates .update p{
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
}

.link-underline{
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding-bottom:1px;
}

.divider{
  height:1px;
  background: rgba(208,180,105,.18);
  margin:14px 0;
}

/* Footer / Lists / Chips / Grid */
.grid{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.list{margin:0; padding:0; list-style:none; display:grid; gap:10px}

.dot{
  display:inline-block; width:8px; height:8px; border-radius:999px;
  background: rgba(208,180,105,.55);
  box-shadow: 0 0 0 3px rgba(208,180,105,.10);
  margin-right:10px;
}

.muted{color:var(--muted)}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}

.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(208,180,105,.22);
  background: rgba(208,180,105,.06);
  color:var(--muted);
}

.footer{
  margin-top:26px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  color:var(--muted);
  border-top:1px solid rgba(208,180,105,.18);
  padding-top:16px;
  font-size:12px;
}

/* Autoren-Bar */
.authors-bar{
  margin-top: 18px;
  padding-top: 14px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:10px 12px;
  border-top: 1px solid rgba(208,180,105,.18);
}

.authors-label{
  width:100%;
  text-align:center;
  margin-bottom:6px;
}

.authors-items{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* ============================================================
   Twitch Header UI (im gleichen Bayou-Board-Stil)
   ============================================================ */

.bayou-twitch-header{
  display:flex;
  align-items:center;
  min-width:0;
}

.bayou-twitch-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  min-width:0;
}

.bayou-twitch-box > div{
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}

/* Buttons exakt wie .pill/.iconbtn */
.bayou-twitch-box button{
  font: inherit;
  font-size:12px;
  letter-spacing:.08em;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(12,12,12,.55);
  color: var(--text);
  cursor:pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bayou-twitch-box button:hover{
  background: rgba(208,180,105,.06);
  border-color: rgba(208,180,105,.35);
}

.bayou-twitch-box button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Twitch Icon Button */
.bayou-twitch-mini{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.bayou-twitch-mini .twitch-status{
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}

.twitchbtn{
  border:1px solid var(--line);
  background: rgba(12,12,12,.55);
  color: var(--text);
  width:34px;
  height:34px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.twitchbtn:hover{
  background: rgba(208,180,105,.06);
  border-color: rgba(208,180,105,.35);
}

.twitchbtn:active{
  transform: translateY(1px);
}

.twitchbtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.twitchbtn svg{
  width:18px;
  height:18px;
  display:block;
}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  h1{font-size:38px}
  .nav{display:none}

  /* Status im Header ausblenden, damit nix quetscht */
  .bayou-twitch-box > div{ display:none; }
  .bayou-twitch-mini .twitch-status{ display:none; }
}

/* Auf großen Screens Panels etwas kompakter */
@media (min-width: 1100px){
  #welcome, #updates{
    max-width: 980px;
    margin-left:auto;
    margin-right:auto;
  }
}
/* =========================================
   UPDATES: centered layout, readable text
========================================= */

#updates .panel-body{
  padding: 18px;
}

/* Liste mittig, aber nicht endlos breit */
.updates-list{
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* Jede Update-Card */
.update{
  border: 1px solid rgba(208,180,105,.18);
  background: rgba(8,8,8,.28);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Kopf: Titel + Datum */
.update-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208,180,105,.14);
  margin-bottom: 10px;
}

.update-title{
  margin: 0;
  font-family: Cinzel, serif;
  letter-spacing: .06em;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
}

/* Datum klein, goldig, aber ruhig */
.update-meta{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .9;
  white-space: nowrap;
}

/* Excerpt: der wichtigste Teil -> gut lesbar */
.update-excerpt{
  max-width: 78ch;          /* Lesebreite */
  margin: 0 auto;           /* mittig im Card */
  text-align: left;         /* Lesen bleibt angenehm */
  line-height: 1.8;
  font-size: 14px;
}

/* Weiterlesen Button mittig */
.update-actions{
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.update-readmore{
  padding: 10px 14px;
  border-radius: 14px;
}

/* Mobile: Titel/Datum untereinander */
@media (max-width: 700px){
  .update-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .update-excerpt{
    text-align: left;
  }
}
/* Single Post Layout */
.single-post .post-body{
  max-width: 82ch;
  margin: 0 auto;
  text-align: left;
  line-height: 1.85;
  font-size: 15px;
}

.single-post .post-body p,
.single-post .post-body li{
  text-align: left;
}

.single-post .post-footer{
  display:flex;
  justify-content:center;
  margin-top: 12px;
}
/* Nur auf Startseite: erster Update-Post darf lang sein, aber nicht unendlich */
#updates .update:first-child .update-excerpt{
  max-height: 520px;
  overflow: hidden;
  position: relative;
}

/* Fade-Out unten */
#updates .update:first-child .update-excerpt:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:80px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85));
  pointer-events:none;
}

/* /* /* =========================================================
   UPDATES (Startseite) – FINAL LOOK
========================================================= */

#updates .panel-body{
  padding: 18px;
}

.updates-list{
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* ===== Neuester Beitrag (Featured Card) ===== */
.update.update-latest{
  border: 1px solid rgba(208,180,105,.18);
  background: linear-gradient(180deg, rgba(8,8,8,.70), rgba(6,6,6,.85));
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.update-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208,180,105,.14);
  margin-bottom: 10px;
}

.update-title{
  margin: 0;
  font-family: Cinzel, serif;
  letter-spacing: .06em;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
}

.update-meta{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .9;
  white-space: nowrap;
}

.update-excerpt{
  max-width: 78ch;
  margin: 0 auto;
  text-align: left;
  line-height: 1.85;
  font-size: 14px;
}

.update-excerpt > *:first-child{ margin-top: 0; }
.update-excerpt > *:last-child{ margin-bottom: 0; }

.update-actions{
  display:flex;
  justify-content:center;
  margin-top: 12px;
}

.update-readmore{
  padding: 10px 14px;
  border-radius: 14px;
}

/* Optional: Featured nicht endlos lang */
#updates .update.update-latest .update-excerpt{
  max-height: 520px;
  overflow: hidden;
  position: relative;
}
#updates .update.update-latest .update-excerpt:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:80px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85));
  pointer-events:none;
}

/* ===== Ältere Beiträge: umrandete kompakte Cards ===== */
.update-older.update-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  padding:14px 16px;
  border-radius:16px;

  border:1px solid rgba(208,180,105,.18);
  background: linear-gradient(180deg, rgba(8,8,8,.70), rgba(6,6,6,.85));
  box-shadow: 0 10px 28px rgba(0,0,0,.45);

  text-decoration:none;
  color: var(--text);

  transition: background .15s ease, border-color .15s ease, transform .06s ease, box-shadow .15s ease;
}

.update-older.update-card:hover{
  background: linear-gradient(180deg, rgba(12,12,12,.85), rgba(8,8,8,.95));
  border-color: rgba(208,180,105,.35);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}

.update-older.update-card:active{
  transform: translateY(1px);
}

.update-older-title{
  font-family: Cinzel, serif;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.25;
}

.update-older-date{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .85;
}

/* Mobile */
@media (max-width: 700px){
  .update-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .update-older.update-card{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Leaderboard (passt zu .lb-item aus deinem JS) */
#lb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.lb-item{
  display: grid;
  grid-template-columns: 70px 1fr 120px 110px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
}

.lb-item.is-me{
  outline: 2px solid rgba(255,200,80,.45);
  background: rgba(255,200,80,.08);
}

.lb-rank { color: rgba(230,237,245,.75); font-variant-numeric: tabular-nums; }
.lb-points, .lb-completed { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 700px){
  .lb-item{ grid-template-columns: 60px 1fr; }
  .lb-points, .lb-completed{ text-align: left; }
}
