/* === style.css === */

body {
  background-color: #0b0b0e;
  color: #e4e4e4;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Global hard fix for wrapping */
html, body, p, div, a, h1, h2, h3, h4, h5, h6, span {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Header */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,.9);
  border-bottom: 2px solid #ff1744;
  padding: 16px 32px;
  box-shadow: 0 0 22px rgba(255,40,70,.4);
}
.logo { height: 80px; }
.menu-toggle { display: none; }
.onion-btn {
  background: linear-gradient(135deg,#ff1744,#ffb300);
  border: none;
  color: #fff;
  padding: 10px 22px;
  clip-path: polygon(10% 0,100% 0,90% 100%,0% 100%);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}
.onion-btn:hover { transform: translateY(-3px) skewX(-4deg); box-shadow:0 0 14px rgba(255,90,0,.4); }

/* Sidebar */
.container { display: flex; }
.sidebar {
  width: 250px;
  background: rgba(25,25,25,.6);
  backdrop-filter: blur(6px);
  border-right: 1px solid rgba(255,40,70,.25);
  padding: 20px;
}
.nav-title { color: #ff3c3c; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  color: #ffb300;
  margin: 6px 0; padding: 6px 0 6px 8px;
  border-left: 2px solid transparent;
  transition: .25s;
}
.nav-link:hover, .active { color: #ff1744; border-color: #ff1744; transform: translateX(2px); }

main { flex: 1; padding: 30px; }
.panel {
  background: rgba(30,30,32,.55);
  border: 1px solid rgba(255,70,0,.15);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

/* Hero */
.hero { background: radial-gradient(circle at top left, rgba(255,0,70,.25), rgba(25,25,25,.6)); }
.hero-title { font-size: 2.3rem; color: #ffb300; margin-bottom: 18px; }
.glow-alt { color: #ff1744; text-shadow: 0 0 8px #ff1744; }
.hero-text { color: #ccc; max-width: 800px; margin-bottom: 24px; }
.cta-btn {
  background: linear-gradient(135deg,#ff1744,#ffa000);
  border: none; color: #fff;
  padding: 14px 38px;
  clip-path: polygon(10% 0,100% 0,90% 100%,0% 100%);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}
.cta-btn:hover { transform: skewX(-6deg) scale(1.05); }

/* TOC */
.toc h2 { color: #ffb300; margin-bottom: 14px; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin: 6px 0; }
.toc-list a { color: #ffb300; transition: .25s; }
.toc-list a:hover { color: #ff1744; }

/* Infographics */
.infographics h2 { color: #ffb300; margin-bottom: 16px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}
.stat h3 { color: #ffb300; font-size: 1rem; margin-bottom: 8px; }
.bar { background: rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.bar span {
  display: block; height: 6px;
  background: linear-gradient(90deg,#ff1744,#ffb300);
  box-shadow: 0 0 7px rgba(255,80,50,.5);
  animation: grow 1.2s ease;
}
@keyframes grow { from {width:0;} to {width:100%;} }
.stat p { color: #bbb; font-size: 0.9rem; }

/* About */
.about h2 { color: #ffb300; margin-bottom: 10px; }
.about p { color: #ccc; margin-bottom: 16px; }

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 2px solid rgba(255,40,70,.35);
  padding: 40px 28px;
  color: #999;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}
.footer-col h3 { color: #ffb300; margin-bottom: 8px; }
.footer-col a { color: #ffb300; transition: .25s; }
.footer-col a:hover { color: #ff1744; }

@media(max-width:900px){
  .container{flex-direction:column;}
  .sidebar{position:fixed;top:70px;left:-260px;width:230px;transform:translateX(-260px);}
  .sidebar.open{transform:translateX(0);}
  .menu-toggle{display:inline;color:#fff;background:none;border:none;font-size:1.5em;}
}
a, .mirror-link, .ext-link {
  color:#ffb400;
  text-decoration:none;
  transition:0.3s;
  position:relative;
}
a:hover, .mirror-link:hover, .ext-link:hover {
  color:#ff1744;
  text-shadow:0 0 8px #ff1744,0 0 12px #ffa800;
}
.inline-glow {
  color:#ffb400;
  text-shadow:0 0 6px #ffb300;
}

.copy-btn {
  background:linear-gradient(135deg,#ff1744 0%,#ffa000 100%);
  border:none;
  color:#fff;
  font-weight:600;
  padding:8px 16px;
  margin-left:10px;
  border-radius:4px;
  clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%);
  cursor:pointer;
  transition:.3s;
}
.copy-btn:hover {transform:skewX(-6deg) scale(1.05); box-shadow:0 0 10px rgba(255,70,0,.5);}
.copy-btn.copied {background:linear-gradient(135deg,#00c851,#007e33);}
.mirror-item {
  background:rgba(20,20,20,.6);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(255,80,0,.2);
  padding:10px 15px;
  border-radius:6px;
  margin:8px 0;
}
/* === FAQ Section Styling === */

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: rgba(25,25,25,0.6);
  border: 1px solid rgba(255,60,0,0.2);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 0 10px rgba(255,120,0,0.05);
  transition: background 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  background: rgba(35,35,35,0.7);
  box-shadow: 0 0 15px rgba(255,150,50,0.25);
}

.faq-item h3 {
  color: #ffb300;
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item p {
  color: #ccc;
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.faq-item i {
  color: #ff1744;
  text-shadow: 0 0 6px #ff1744;
}

/* Table of contents adjustments specific to FAQ */
.toc-list ol, .toc-list li {
  list-style: none;
  padding: 0;
}
.toc-list a {
  display: inline-block;
  color: #ffb300;
  padding: 4px 0;
  transition: 0.25s;
}
.toc-list a:hover {
  color: #ff1744;
  text-shadow: 0 0 6px #ff1744;
}

/* Smooth anchor scrolling */
html {
  scroll-behavior: smooth;
}
