/*
  CursedSI - Site Styles
  ---------------------
  Editing tips:
  - Colors + spacing live in :root variables.
  - If you change the brand palette, update:
      --brand, --brand2, --bg, --surface, --text, --muted

  No CSS framework is used to keep it lightweight and easy to maintain.
*/

:root{
  --bg: #0b0f14;
  --surface: #0f1620;
  --surface2:#121b26;
  --text: #e9edf2;
  --muted: #a7b2c2;

  /* Brand (warm ember tones to match your banners) */
  --brand: #ff6a2a;
  --brand2:#c83d16;

  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --radius: 16px;

  --container: 1100px;
  --pad: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Basic reset (kept intentionally small) */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,106,42,.16), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(200,61,22,.14), transparent 45%),
              var(--bg);
  line-height: 1.55;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--container), 100% - 2*var(--pad));
  margin-inline:auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip-link{
  position:absolute;
  left:-999px; top:12px;
  padding:10px 12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
}
.skip-link:focus{ left:12px; z-index:999; }

/* Header / Nav */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,15,20,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  width:44px; height:44px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.brand-text{ display:flex; flex-direction:column; }
.brand-name{ font-weight:800; letter-spacing:.2px; }
.brand-tagline{ font-size:.9rem; color:var(--muted); margin-top:1px; }

.nav{ position:relative; }
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.nav-toggle-lines{
  width:18px; height:12px; position:relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute; left:0; right:0;
  height:2px;
  background: currentColor;
  border-radius: 999px;
}
.nav-toggle-lines::before{ top:0; }
.nav-toggle-lines::after{ bottom:0; }

.nav-menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 8px;
  padding:0;
  margin:0;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link:hover{
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--text);
  text-decoration:none;
}
.nav-link.is-active{
  color: var(--text);
  border-color: rgba(255,106,42,.45);
  background: rgba(255,106,42,.10);
}

/* Dropdown */
.nav-dropdown{ position:relative; }
.nav-dropdown-btn{
  background: transparent;
  cursor:pointer;
}
.chev{ font-size:.9rem; opacity:.85; }
.nav-dropdown-menu{
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  min-width: 240px;
  padding: 8px;
  margin:0;
  list-style:none;
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(15,22,32,.98);
  box-shadow: var(--shadow);
  display:none;
}
.nav-dropdown.open .nav-dropdown-menu{ display:block; }
.nav-dropdown-link{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.nav-dropdown-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
}

/* Hero */
.hero{
  padding: 34px 0 18px;
}
.hero-card{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-banner{
  position:relative;
  min-height: 240px;
  background:
    linear-gradient(90deg, rgba(11,15,20,.80) 0%, rgba(11,15,20,.45) 55%, rgba(11,15,20,.10) 100%),
    url("../media/3840x2160_Banner_CursedSurvivalIsland_Compressed.png");
  background-size: cover;
  background-position: center;
}
.hero-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 260px at 25% 40%, rgba(255,106,42,.26), transparent 60%);
  pointer-events:none;
}
.hero-content{
  padding: 18px 18px 22px;
}
.hero-title{
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  margin: 0 0 8px;
  letter-spacing: .2px;
}
.hero-subtitle{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

/* Sections / cards */
.section{ padding: 22px 0; }
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15,22,32,.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
  padding: 16px;
}
.card h2, .card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: var(--muted); }

.kpi{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.kpi-badge{
  width: 38px; height: 38px;
  border-radius: 12px;
  border:1px solid rgba(255,106,42,.45);
  background: rgba(255,106,42,.12);
  display:grid;
  place-items:center;
  font-weight:800;
  color: var(--text);
}

.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }

/* Buttons */
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 650;
  cursor:pointer;
}
.btn:hover{ text-decoration:none; background: rgba(255,255,255,.10); }
.btn.primary{
  border-color: rgba(255,106,42,.55);
  background: linear-gradient(180deg, rgba(255,106,42,.20), rgba(200,61,22,.14));
}
.btn.primary:hover{
  background: linear-gradient(180deg, rgba(255,106,42,.28), rgba(200,61,22,.18));
}

.muted{ color: var(--muted); }

/* Page header */
.page-head{ padding: 22px 0 8px; }
.page-head h1{ margin:0 0 6px; font-size: 2rem; }
.page-head p{ margin:0; color: var(--muted); max-width: 75ch; }

/* Lists */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

/* Forum */
.forum-wrap{ display:grid; gap: 14px; }
.form{
  display:grid;
  gap: 10px;
}
.input, .textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.textarea{ min-height: 120px; resize: vertical; }
.post{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(18,27,38,.70);
}
.post-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 8px;
}
.post-title{ font-weight: 800; }
.post-meta{ color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  margin-top: 28px;
  padding: 18px 0;
  background: rgba(11,15,20,.65);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 860px){
  .col-4{ grid-column: span 12; }
  .col-6{ grid-column: span 12; }
  .col-8{ grid-column: span 12; }
  .nav-toggle{ display:inline-flex; }
  .nav-menu{
    position:absolute;
    right:0;
    top: calc(100% + 10px);
    flex-direction:column;
    align-items:stretch;
    width: min(320px, 92vw);
    padding: 10px;
    border:1px solid var(--border);
    border-radius: 16px;
    background: rgba(15,22,32,.98);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav-menu.open{ display:flex; }
  .nav-link{ width:100%; justify-content:flex-start; }
  .nav-dropdown-menu{
    position: static;
    box-shadow:none;
    border:none;
    padding: 6px 0 0;
    background: transparent;
  }
}


/* ===== Forum + Admin additions (safe to delete if you don't want them) ===== */
.notice{padding:12px 14px;border-radius:12px;margin:12px 0;background:rgba(255,255,255,.06)}
.notice.success{background:rgba(0,255,170,.08)}
.notice.danger{background:rgba(255,0,90,.08)}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.8rem;line-height:1.4;background:rgba(255,255,255,.08)}
.badge-user{background:rgba(255,255,255,.08)}
.badge-moderator{background:rgba(80,160,255,.14)}
.badge-admin{background:rgba(255,120,0,.18)}
.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px 10px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top}
.list{margin:0;padding-left:18px}
.inline{display:inline}
.reply{padding:10px 0;border-top:1px solid rgba(255,255,255,.08)}
.reply-form{margin-top:10px}
