/* Seriously BHVR — DBD-inspired awareness page */
:root {
  --bg: #050507;
  --bg-2: #0a0a0c;
  --panel: #111216;
  --panel-2: #181a1f;
  --text: #f5f2ed;
  --muted: #b0b3b8;
  --blood: #e63946;
  --blood-dark: #9e1b27;
  --fog: #2b2d3a;
  --accent: #ff9f1c;
  --ok: #22c55e;
  --border: rgba(230, 57, 70, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 24px rgba(230, 57, 70, 0.06);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo, .section-title, .tagline {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.5px;
}

a {
  color: var(--blood);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo .blood {
  color: var(--blood);
  text-shadow: 0 0 18px rgba(230, 57, 70, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blood);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blood);
  color: #fff;
  border-color: var(--blood);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.25);
}

.btn-primary:hover {
  background: var(--blood-dark);
  border-color: var(--blood-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blood);
  color: var(--blood);
}

.btn-wide {
  width: 100%;
}

.btn-copy {
  margin-top: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(230, 57, 70, 0.18), transparent 45%),
    linear-gradient(180deg, #0b0b0f 0%, #151621 100%);
  text-align: center;
}

.fog {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='200' viewBox='0 0 800 200'%3E%3Cdefs%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.03' numOctaves='3'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='800' height='200' filter='url(%23f)' opacity='0.15'/%3E%3C/svg%3E") repeat-x;
  opacity: 0.35;
  animation: fogMove 60s linear infinite;
  pointer-events: none;
}

@keyframes fogMove {
  from { background-position: 0 0; }
  to { background-position: -800px 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 2rem;
}

.tagline {
  color: var(--blood);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.08), transparent 40%);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Points */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.point {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.point:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.35);
}

.point h3 {
  color: var(--blood);
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.point p {
  color: var(--muted);
  margin: 0;
}

/* Statement cycler */
.section-cycled {
  background:
    radial-gradient(circle at 80% 50%, rgba(230, 57, 70, 0.16), transparent 40%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Counter */
.section-counter {
  background:
    radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.16), transparent 45%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.counter-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.counter-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blood);
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.35);
}

.counter-label {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.75rem 0 0.5rem;
}

.counter-callout {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.statement-card {
  max-width: 740px;
  margin: 0 auto 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.statement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(230, 57, 70, 0.12);
}

.statement-card blockquote {
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  margin: 0 0 1.25rem;
  line-height: 1.55;
  font-style: italic;
}

.statement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

#statement-gamertag {
  color: var(--blood);
  font-weight: 700;
}

.statement-actions {
  text-align: center;
}

/* Ask */
.ask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.ask-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blood);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ask-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.ask-card p {
  color: var(--muted);
  margin: 0;
}

/* Page hero */
.page-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(230, 57, 70, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  margin: 0 auto;
  max-width: 680px;
}

/* Form */
.form-container {
  max-width: 680px;
}

.signup-form,
.video-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blood);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label,
.signup-form label,
.video-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.22);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.checkbox .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-row.two-col .form-group {
  flex: 1 1 180px;
}

.form-row input,
.form-row select {
  flex: 1 1 180px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blood);
}

.input-error {
  color: var(--blood);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  min-height: 1.5rem;
}

.form-message.success {
  color: var(--ok);
}

.form-message.error {
  color: var(--blood);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blood);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(230, 57, 70, 0.12);
}

.video-card iframe,
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.video-info {
  padding: 1rem 1.25rem;
}

.video-info h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.video-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.video-info button {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--blood);
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.video-info button:hover {
  color: var(--text);
}

/* Email preview */
.email-preview {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.4rem;
}

.preview-label {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--blood);
}

.preview-body {
  white-space: pre-wrap;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.email-preview small {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Post-submit BHVR panel */
.section-bhvr {
  background:
    radial-gradient(circle at 50% 30%, rgba(230, 57, 70, 0.12), transparent 45%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.bhvr-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.bhvr-card h2 {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.bhvr-card > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.bhvr-steps {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.bhvr-steps h4 {
  margin: 0 0 0.75rem;
  color: var(--blood);
}

.bhvr-steps ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.bhvr-steps li {
  margin-bottom: 0.5rem;
}

.bhvr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.bhvr-actions .btn {
  flex: 1 1 auto;
}

.section-bhvr {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Privacy delete inline */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.form-inline input {
  flex: 1 1 200px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}

.form-inline input:focus {
  outline: none;
  border-color: var(--blood);
}

/* Voices */
.voices-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.voices-toolbar input {
  flex: 1 1 280px;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}

.voices-toolbar input:focus {
  outline: none;
  border-color: var(--blood);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.voices-list {
  display: grid;
  gap: 1rem;
}

.voice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(230, 57, 70, 0.12);
}

.voice-card p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.voice-card footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.voice-card .name {
  color: var(--blood);
  font-weight: 700;
}

.voice-card .role {
  color: var(--text);
  font-weight: 600;
}

.empty-voices {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* Recent grid */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Legal */
.legal {
  max-width: 760px;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.legal-block p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0;
}

/* Admin panel */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-tab {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-tab:hover {
  border-color: var(--blood);
  color: var(--text);
}

.admin-tab.active {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.mod-results {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mod-results .delete-btn {
  margin-top: 0.75rem;
}

.mod-results .resolved {
  opacity: 0.6;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .statement-card {
    padding: 1.5rem;
  }

  .statement-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

.fix-pair-date {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.top-fixes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.fix-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fix-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(230, 57, 70, 0.12);
}

.fix-rank {
  position: absolute;
  top: -0.6rem;
  left: -0.6rem;
  background: var(--blood);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.3);
}

.fix-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.fix-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.fix-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.75rem;
}

.fixes-list {
  display: grid;
  gap: 1rem;
}

.fixes-list .fix-card,
.archive-list .fix-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.fixes-list .fix-card h4,
.archive-list .fix-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.fixes-list .fix-card p,
.archive-list .fix-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.fixes-list .fix-card footer,
.archive-list .fix-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.75rem;
}

.fixes-list .fix-card:hover,
.archive-list .fix-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(230, 57, 70, 0.12);
}

.fix-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fix-pagination button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.fix-pagination button:hover:not(:disabled) {
  border-color: var(--blood);
  color: var(--blood);
}

.fix-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fix-pagination span {
  color: var(--muted);
  font-size: 0.95rem;
}

.fixes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.archive-list {
  display: grid;
  gap: 2rem;
}

.archive-day h4 {
  color: var(--accent);
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.archive-list .top-fixes-grid {
  margin-top: 0.5rem;
}

.like-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.like-btn:hover,
.like-btn.liked {
  border-color: var(--blood);
  color: var(--blood);
}

/* Mobile */
