/* ===================================================
   Toxicity Hub — Clean, Modern Dark & Orange Theme
   =================================================== */

:root {
  --bg-black: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.9);

  --toxicity-white: #FFFFFF;
  --toxicity-orange: #FF6600;
  --toxicity-orange-hover: #ff771a;
  --toxicity-orange-glow: rgba(255, 102, 0, 0.45);

  --discord-blurple: #5865F2;
  --discord-blurple-hover: #4752c4;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 102, 0, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Cyber Grid */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 35%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.24) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
  bottom: 5%;
  right: -80px;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Top Notice Bar */
.top-bar {
  background: rgba(255, 102, 0, 0.08);
  border-bottom: 1px solid rgba(255, 102, 0, 0.25);
  padding: 10px 0;
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.pulse-tag {
  background: var(--toxicity-orange);
  color: #000;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.top-bar-link {
  color: var(--toxicity-orange);
  font-weight: 700;
  transition: var(--transition-fast);
}

.top-bar-link:hover {
  text-decoration: underline;
  color: var(--toxicity-orange-hover);
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-text-white {
  color: var(--toxicity-white);
}

.brand-text-orange {
  color: var(--toxicity-orange);
  text-shadow: 0 0 16px rgba(255, 102, 0, 0.65);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.btn-discord {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-orange);
}

.btn-discord:hover {
  background: var(--toxicity-orange);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary-cta {
  background: linear-gradient(135deg, var(--toxicity-orange) 0%, #e65c00 100%);
  color: #000;
  font-weight: 800;
  padding: 16px 36px;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.45);
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 102, 0, 0.65);
  background: var(--toxicity-orange-hover);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.04);
  color: var(--toxicity-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-copy:hover {
  background: rgba(255, 102, 0, 0.1);
  border-color: var(--toxicity-orange);
  color: var(--toxicity-orange);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 60px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid var(--border-orange);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: var(--toxicity-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--toxicity-orange);
  box-shadow: 0 0 10px var(--toxicity-orange);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.main-title {
  font-size: clamp(3.2rem, 7.5vw, 5.4rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.text-white {
  color: var(--toxicity-white);
}

.text-orange {
  color: var(--toxicity-orange);
  text-shadow: 0 0 35px rgba(255, 102, 0, 0.7);
}

.hero-subtext {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 680px;
}

/* Discord Source Portal Box */
.discord-source-portal {
  background: linear-gradient(145deg, #111111 0%, #080808 100%);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 102, 0, 0.15);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.discord-source-portal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--toxicity-orange);
  box-shadow: 0 0 12px var(--toxicity-orange);
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  color: var(--toxicity-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.discord-source-portal h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.portal-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Rules Section & Modern Grid */
.rules-section {
  width: 100%;
  max-width: 900px;
  margin-top: 10px;
}

.rules-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.rules-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--toxicity-orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.rules-pill svg {
  color: var(--toxicity-orange);
}

.rules-section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.rules-section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 500px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rule-box {
  background: rgba(12, 12, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.rule-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.rule-box:hover {
  border-color: rgba(255, 102, 0, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 102, 0, 0.07);
}

.rule-box:hover::before {
  background: linear-gradient(90deg, transparent, var(--toxicity-orange), transparent);
}

.rule-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rule-box-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--toxicity-orange);
}

.rule-step {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.rule-box-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.rule-box-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-normal);
}

.channel-tag {
  display: inline-block;
  font-family: monospace;
  font-weight: 600;
  color: #ff9944;
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.25);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.84rem;
}



/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  background: #020202;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  color: #fff;
  border: 1px solid var(--toxicity-orange);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 650px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rule-box {
    padding: 18px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

/* Force-hide Netlify Injected Badge & Drawer */
iframe[src*="netlify"],
iframe[id*="netlify"],
iframe[title*="Netlify"],
div[id*="netlify"],
div[class*="netlify"],
netlify-drawer,
#netlify-drawer,
.netlify-badge,
[data-netlify-badge] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
}