/* style.css - Torzon darknet market docs HUD theme */

:root {
  --bg-color: #050608;
  --accent-blue: #00f2ff;
  --accent-gold: #ffcc33;
  --accent-red: #ff3366;
  --accent-glow: rgba(0, 242, 255, 0.4);
  --glass-bg: rgba(12, 14, 20, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(0, 242, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a0a8b5;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --grad-primary: linear-gradient(135deg, #00f2ff 0%, #0072ff 40%, #00f2ff 100%);
  --shadow-strong: 0 0 24px rgba(0, 242, 255, 0.45);
}

/* Reset & base */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background neon glow */

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.16), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(255, 204, 51, 0.18), transparent 65%),
    radial-gradient(circle at 50% -10%, rgba(0, 114, 255, 0.24), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Typography helpers */

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-neon {
  color: var(--accent-blue);
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.9);
}

/* Header */

.hud-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 80px;
  background: radial-gradient(circle at 0 0, rgba(0, 242, 255, 0.16), transparent 55%),
              rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--accent-blue);
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.9));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--accent-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */

.cta-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-btn i {
  font-size: 0.85rem;
}

.cta-btn.primary {
  background: var(--grad-primary);
  color: #020308;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.45);
}

.cta-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.75);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.cta-btn.secondary:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.35);
}

.cta-btn.ghost {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid rgba(0, 242, 255, 0.6);
}

.cta-btn.ghost:hover {
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.4);
}

/* Menu toggle (mobile) */

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  color: var(--accent-blue);
  padding: 9px 14px;
  cursor: pointer;
}

/* Layout */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.4rem;
}

/* Sidebar & nav */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glass-nav,
.status-panel {
  background: var(--glass-bg);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}

.nav-title {
  font-size: 0.78rem;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item i {
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(0, 242, 255, 0.06);
  color: #ffffff;
  transform: translateX(1px);
}

.nav-item.active {
  background: radial-gradient(circle at 0 0, rgba(0, 242, 255, 0.3), rgba(0, 0, 0, 0.7));
  border: 1px solid var(--glass-border-strong);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.4);
}

.nav-legal {
  margin-top: 0.2rem;
  opacity: 0.85;
}

/* Status panel */

.status-line {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-blue);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.85);
  animation: pulse-anim 1.8s ease-in-out infinite;
}

@keyframes pulse-anim {
  0% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
}

/* Table of contents in sidebar */

.toc-container {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(0, 242, 255, 0.25);
}

.toc-list {
  list-style: none;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all 0.22s ease;
}

.toc-link span {
  color: var(--accent-blue);
  font-size: 0.72rem;
  opacity: 0.7;
}

.toc-link:hover {
  background: rgba(0, 242, 255, 0.06);
  color: #ffffff;
  border-left-color: var(--accent-blue);
  padding-left: 0.7rem;
}

.toc-link:hover span {
  opacity: 1;
  text-shadow: 0 0 8px rgba(0, 242, 255, 0.7);
}

/* Main content cards */

.glass-card {
  background: var(--glass-bg);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(26px);
  padding: 2.4rem 2.3rem;
  margin-bottom: 2.2rem;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 242, 255, 0.15);
}

.hero-card {
  border-color: var(--glass-border-strong);
  box-shadow:
    0 0 36px rgba(0, 242, 255, 0.25),
    0 0 40px rgba(0, 0, 0, 0.9);
}

/* Headings & paragraphs */

h1,
h2,
h3 {
  font-family: var(--font-mono);
}

h1 {
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff, #00f2ff 40%, #ffcc33 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.7rem;
  color: var(--accent-blue);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Hero area */

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-stats {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 2.3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.stat-lab {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Generic grids */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.glass-inner-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 1.3rem 1.2rem;
}

.glass-inner-card i {
  color: var(--accent-blue);
  margin-bottom: 0.6rem;
}

/* Info alert */

.info-alert {
  margin-top: 1.5rem;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border-radius: 14px;
  border-left: 3px solid var(--accent-red);
  background: radial-gradient(circle at 0 0, rgba(255, 51, 102, 0.22), rgba(0, 0, 0, 0.85));
}

.info-alert i {
  color: var(--accent-red);
  margin-top: 0.15rem;
}

.info-alert strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

/* Mirrors list */

.mirror-list {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mirror-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}

.mirror-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.badge-online {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.7);
  color: var(--accent-blue);
  background: rgba(0, 242, 255, 0.09);
}

.onion-addr {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.55);
}

/* Copy buttons */

.copy-btn {
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.copy-btn i {
  font-size: 0.8rem;
}

.copy-btn:hover,
.copy-btn.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
  background: rgba(0, 242, 255, 0.06);
}

/* PGP box */

.pgp-box {
  margin-top: 1.3rem;
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 242, 255, 0.4);
  background: radial-gradient(circle at 0 0, rgba(0, 242, 255, 0.16), rgba(0, 0, 0, 0.9));
  text-align: left;
}

.pgp-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}

#fingerprint {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  margin: 0.4rem 0 0.8rem;
  word-break: break-all;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--glass-border);
  background: radial-gradient(circle at 100% 0, rgba(0, 242, 255, 0.22), transparent 55%),
              #050608;
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto 2.3rem;
  display: grid;
  grid-template-columns: 2.1fr 1.1fr 1.1fr 1.1fr;
  gap: 2.2rem;
}

.footer-col h3 {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-col p {
  font-size: 0.82rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-col a:hover {
  color: var(--accent-blue);
  transform: translateX(1px);
}

.footer-bar {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  color: #545c6a;
}

/* Mobile overlay menu */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-overlay.active {
  transform: translateY(0);
}

.close-menu {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 1.7rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.mobile-nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: 0.25s ease;
}

.mobile-nav-links a i {
  margin-right: 0.4rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--accent-blue);
  text-shadow: 0 0 16px rgba(0, 242, 255, 0.8);
}

.mobile-nav-links hr {
  border: none;
  border-top: 1px solid #333;
  margin: 0.7rem 0;
}

/* Visibility helpers */

.d-none-mobile {
  display: inline-flex;
}

/* Responsive */

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 900px) {
  .container {
    padding-inline: 1.4rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.3rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .d-none-mobile {
    display: none;
  }

  h1 {
    font-size: 2.05rem;
  }

  .glass-card {
    padding: 1.8rem 1.6rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .mirror-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .glass-card {
    padding-inline: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    justify-content: center;
    width: 100%;
  }
}
