/*
Theme Name: Ghosstless Guide
Version: 1.0.0
Text Domain: ghog
*/
/* ==========================================================================
   GHOSSTLESS SECURITY — Classic Nmap Documentation Theme in Navy Blue
   ========================================================================== */

:root {
  /* Navy Blue Palette (Azul Marino Profundo & Elegante - Exact match con Logo #061831) */
  --navy-950: #030d1c;       /* Deepest Navy background */
  --navy-900: #061831;       /* Outer page background & Logo backdrop */
  --navy-850: #0b2142;       /* Header and footer navy */
  --navy-800: #102d5a;       /* Section header dark stop */
  --navy-700: #183d78;       /* Button and banner mid navy */
  --navy-600: #2253a3;       /* Bright navy accent */
  --navy-500: #2d6cd1;       /* Interactive hover navy */
  
  /* Cyber Cyan Highlights (Matching the Ghosstless Mascot) */
  --cyan-accent: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.4);
  
  /* Content Sheet Colors */
  --sheet-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #374151;
  --text-dim: #6b7280;
  --doc-link: #0033cc;
  --doc-link-hover: #001a66;
  
  /* Terminal Matrix / Cyber Colors */
  --terminal-bg: #030814;
  --terminal-green: #22c55e;
  --terminal-dim: #64748b;
  --terminal-cyan: #38bdf8;
  --terminal-yellow: #facc15;
  --terminal-red: #f87171;

  /* Typography */
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", "Courier New", Consolas, monospace;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy-900);
  background-image: 
    radial-gradient(circle at 50% 0%, #132752 0%, transparent 60%),
    radial-gradient(circle at 10% 100%, #081124 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Top Utilities Bar
   ========================================================================== */
.top-utility-bar {
  background-color: var(--navy-950);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 6px 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

.utility-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 18px;
  transition: color 0.15s ease;
}

.top-nav-links a:hover {
  color: var(--cyan-accent);
  text-decoration: underline;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-accent);
  color: #ffffff;
}

/* ==========================================================================
   Site Header & Logo & Pill Nav
   ========================================================================== */
.site-header {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 20px 0;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.brand-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-link {
  display: inline-block;
  transition: transform 0.25s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: 95px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
  background: transparent;
}

.brand-tag {
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Brand Wordmark above Search Bar */
.brand-wordmark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.brand-wordmark-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-wordmark-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.brand-wordmark-img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.25));
}

/* Search Form */
.search-section {
  width: 100%;
  max-width: 580px;
  position: relative;
}

.search-form {
  display: flex;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.search-input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  color: #1e293b;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-850) 100%);
  border: none;
  color: #ffffff;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-btn:hover {
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 100%);
  color: var(--cyan-accent);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.search-results-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  color: #1e293b;
  display: block;
  text-decoration: none;
}

.search-item:hover {
  background: #f0f7ff;
  color: var(--navy-600);
}

.search-item strong {
  color: var(--navy-800);
}

/* Classic Pill Navigation Bar */
.pill-navbar {
  margin-top: 10px;
}

.nav-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav-pill {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1d3d75 0%, #102447 100%);
  border: 1px solid #28559e;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 2px 5px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  background: linear-gradient(180deg, #27529c 0%, #153263 100%);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: linear-gradient(180deg, #0d1e3d 0%, #081329 100%);
  border-color: var(--cyan-accent);
  color: #ffffff;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 6px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   Main White Content Sheet (Nmap Classic Documentation Aesthetic)
   ========================================================================== */
.page-sheet {
  max-width: 1060px;
  margin: 14px auto 30px;
  width: calc(100% - 30px);
  background-color: var(--sheet-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  padding: 30px 42px;
  color: var(--text-main);
}

/* Callout Download Button (Top Center of sheet) */
.version-callout-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.version-callout {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: #0b3275;
  text-decoration: none;
  padding: 10px 24px;
  border: 2px solid #1a4b9c;
  border-radius: 9999px;
  background-color: #f0f6ff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.version-callout:hover {
  background-color: #e0eeff;
  border-color: #0d3b84;
  color: #072559;
  box-shadow: 0 4px 8px rgba(11, 50, 117, 0.15);
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #cbd5e1;
}

.crumb-link {
  color: var(--doc-link);
  text-decoration: underline;
}

.crumb-current {
  color: var(--text-dim);
  font-weight: 600;
}

.prev-next-links {
  display: flex;
  gap: 12px;
}

.pn-link {
  color: var(--doc-link);
  text-decoration: underline;
  font-weight: 600;
}

.pn-link:hover {
  color: var(--doc-link-hover);
}

/* Chapter Heading */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 18px;
}

/* Table of Contents */
.toc-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 18px 24px;
  margin-bottom: 26px;
}

.toc-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy-800);
}

.toc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
}

.toc-list {
  list-style-type: square;
  padding-left: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  color: var(--doc-link);
  text-decoration: underline;
}

.toc-list a:hover {
  color: var(--doc-link-hover);
}

.doc-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 26px 0;
}

/* ==========================================================================
   Navy Bar Headers (Nmap Iconic Bars in Navy Blue)
   ========================================================================== */
.navy-bar-header {
  background: linear-gradient(180deg, #183b75 0%, #0d2349 100%);
  color: #ffffff;
  border-radius: 6px;
  border: 1px solid #234d94;
  padding: 7px 16px;
  margin: 24px 0 16px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

/* News List & Features List */
.news-list, .features-list {
  padding-left: 22px;
  margin-bottom: 24px;
  font-size: 0.94rem;
}

.news-list li, .features-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

.news-list a, .features-list a {
  color: var(--doc-link);
  text-decoration: underline;
}

.news-list a:hover, .features-list a:hover {
  color: var(--doc-link-hover);
}

/* Documentation Content Typography */
.doc-section {
  margin-bottom: 30px;
}

.doc-subheading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #0b1d3d;
  margin: 20px 0 10px;
}

.doc-text {
  margin-bottom: 14px;
  font-size: 0.96rem;
  text-align: justify;
}

.synopsis-box {
  background: #f1f5f9;
  border-left: 4px solid var(--navy-700);
  padding: 10px 16px;
  margin: 12px 0 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #0f172a;
}

/* The Classic Note Box */
.note-box {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #334155;
}

.note-icon-col {
  flex-shrink: 0;
  padding-top: 2px;
}

.note-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-content a {
  color: var(--doc-link);
  text-decoration: underline;
}

/* Port States List */
.states-list {
  padding-left: 24px;
  margin: 14px 0 24px;
  font-size: 0.94rem;
}

.states-list li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Interactive Live Terminal Console
   ========================================================================== */
.terminal-card {
  background-color: var(--terminal-bg);
  border-radius: 6px;
  border: 1px solid #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin: 18px 0 28px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-topbar {
  background: #091325;
  border-bottom: 1px solid #1e2e4a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}

.terminal-actions {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  background: #152744;
  border: 1px solid #284473;
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.terminal-btn:hover {
  background: var(--navy-600);
  color: #ffffff;
}

/* Terminal Presets Bar */
.terminal-presets {
  background: #060e1d;
  padding: 8px 14px;
  border-bottom: 1px solid #12213a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.presets-label {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 4px;
}

.preset-btn {
  background: #0f1d33;
  border: 1px solid #1f3760;
  color: #93c5fd;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
  background: #1d3e75;
  border-color: var(--cyan-accent);
  color: #ffffff;
}

/* Terminal Output Screen */
.terminal-body {
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--terminal-green);
  line-height: 1.5;
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.term-line {
  margin-bottom: 2px;
}

.prompt-line {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
}

.term-prompt {
  color: #ef4444;
}

.term-cmd {
  color: #ffffff;
}

.term-dim {
  color: var(--terminal-dim);
}

.term-success {
  color: #4ade80;
  font-weight: 600;
  margin-top: 6px;
}

.term-table {
  margin: 8px 0;
  font-family: var(--font-mono);
}

.term-row {
  margin-bottom: 2px;
}

.term-header {
  color: #38bdf8;
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 2px;
}

.port-open {
  color: #22c55e;
  font-weight: bold;
}

.port-filtered {
  color: #facc15;
}

.term-script {
  color: #94a3b8;
  padding-left: 10px;
}

/* Terminal Input Line */
.terminal-input-bar {
  background: #071020;
  border-top: 1px solid #172844;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.input-prompt {
  color: #38bdf8;
  font-size: 0.82rem;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.run-btn {
  background: #19407e;
  border: 1px solid #28559e;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.run-btn:hover {
  background: #255db0;
}

/* ==========================================================================
   Interactive Command Generator & Cheatsheet
   ========================================================================== */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.builder-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-sans);
}

.card-title {
  font-size: 0.96rem;
  color: var(--navy-800);
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.radio-label, .check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 8px;
  cursor: pointer;
  color: #334155;
}

.radio-label input, .check-label input {
  margin-top: 3px;
  accent-color: var(--navy-700);
}

.input-group {
  margin-bottom: 10px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 2px rgba(37, 75, 150, 0.15);
}

.generated-box {
  background: #091325;
  border: 1px solid #1a3258;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.gen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.copy-gen-btn {
  background: #173463;
  border: 1px solid #28559e;
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-gen-btn:hover {
  background: #255db0;
  color: #ffffff;
}

.gen-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #38bdf8;
  padding: 8px 12px;
  background: #040914;
  border-radius: 3px;
  margin-bottom: 8px;
  border-left: 3px solid #38bdf8;
  overflow-x: auto;
}

.gen-desc {
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==========================================================================
   Communication / Mailing List Box
   ========================================================================== */
.subscribe-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 18px 24px;
  margin: 16px 0 20px;
  text-align: center;
}

.sub-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-input {
  width: 280px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.sub-input:focus {
  border-color: var(--navy-600);
}

.sub-btn {
  background: linear-gradient(180deg, #183b75 0%, #0d2349 100%);
  border: 1px solid #234d94;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.sub-btn:hover {
  background: linear-gradient(180deg, #25539c 0%, #112d5e 100%);
}

.sub-footnote {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
}

.sub-footnote a {
  color: var(--doc-link);
  text-decoration: underline;
}

/* ==========================================================================
   Pre-Footer Search
   ========================================================================== */
.pre-footer-search {
  max-width: 1060px;
  margin: 0 auto 16px;
  width: calc(100% - 30px);
}

.pre-search-inner {
  display: flex;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-search-input {
  flex: 1;
  padding: 7px 12px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}

.footer-search-btn {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-850) 100%);
  border: none;
  color: #ffffff;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-search-btn:hover {
  color: var(--cyan-accent);
}

/* ==========================================================================
   Deep Navy Multi-Column Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  border-top: 2px solid #142a54;
  margin-top: auto;
  color: #cbd5e1;
  font-family: var(--font-sans);
  padding: 30px 20px 20px;
}

.footer-container {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.col-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #1f3760;
  letter-spacing: 0.3px;
}

.col-links {
  list-style: none;
}

.col-links li {
  margin-bottom: 8px;
}

.col-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.col-links a:hover {
  color: var(--cyan-accent);
  text-decoration: underline;
}

/* Social Badges */
.social-badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #112242;
  color: #e2e8f0;
  border: 1px solid #224379;
  transition: all 0.2s ease;
}

.social-badge:hover {
  background: var(--navy-600);
  border-color: var(--cyan-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1060px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #132444;
  text-align: center;
}

.copyright-notice {
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f274e;
  border: 1px solid var(--cyan-accent);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
/* ==========================================================================
   Multi-View Panels & Dynamic Views
   ========================================================================== */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeInView 0.22s ease-in-out;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Classic Tables */
.table-responsive {
  overflow-x: auto;
  margin: 14px 0 20px;
}

.classic-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  background: #ffffff;
}

.classic-table th, .classic-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}

.classic-table th {
  background: #f1f5f9;
  color: var(--navy-850);
  font-weight: 700;
}

.classic-table tr:nth-child(even) {
  background: #f8fafc;
}

.badge-open {
  color: #16a34a;
  font-weight: 700;
}

.badge-filtered {
  color: #d97706;
  font-weight: 700;
}

/* Download View Cards */
.dl-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.dl-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.dl-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dl-card-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.dl-card-desc {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 14px;
  flex: 1;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(180deg, #183b75 0%, #0d2349 100%);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-align: center;
  border: 1px solid #234d94;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-download:hover {
  background: linear-gradient(180deg, #25539c 0%, #112d5e 100%);
  color: var(--cyan-accent);
}

.dl-actions-group {
  display: flex;
  gap: 8px;
}

.btn-download-secondary {
  flex: 1;
  background: #e2e8f0;
  border: 1px solid #94a3b8;
  color: #1e293b;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  text-align: center;
  transition: all 0.2s;
}

.btn-download-secondary:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.dl-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  word-break: break-all;
}

/* Book View Showcase */
.book-showcase {
  display: flex;
  gap: 28px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 24px;
  margin: 18px 0 24px;
}

.book-cover-mockup {
  width: 170px;
  height: 240px;
  background: #061831;
  border: 2px solid #224379;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 5px 8px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  padding: 14px;
  color: #ffffff;
  text-align: center;
  flex-shrink: 0;
  position: relative;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(255,255,255,0.1);
  border-right: 1px solid rgba(0,0,0,0.3);
}

.book-logo {
  height: 48px;
  object-fit: contain;
  margin: 8px auto;
}

.book-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: #38bdf8;
}

.book-subtitle {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.3;
}

.book-author {
  font-size: 0.6rem;
  color: #cbd5e1;
  margin-top: auto;
}

.book-info-col {
  flex: 1;
}

.book-highlights {
  padding-left: 20px;
  margin: 12px 0 16px;
  font-size: 0.9rem;
}

.book-highlights li {
  margin-bottom: 6px;
}

.book-actions {
  display: flex;
  gap: 10px;
}

/* Documentation Papers View */
.papers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px;
}

.paper-card {
  background: #f8fafc;
  border-left: 4px solid var(--navy-700);
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
}

.paper-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.paper-author {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 8px;
}

/* Zenmap GUI View */
.zenmap-window {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin: 16px 0 24px;
  overflow: hidden;
  font-family: var(--font-sans);
}

.zenmap-toolbar {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zenmap-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zenmap-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.zen-input, .zen-select {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: 0.85rem;
  outline: none;
}

.zen-btn-scan {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}

.zen-btn-scan:hover {
  background: #15803d;
}

.zenmap-command-line {
  background: #e2e8f0;
  padding: 6px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zen-label {
  font-weight: 600;
  color: #475569;
}

.zenmap-command-line code {
  color: var(--navy-850);
  font-family: var(--font-mono);
}

.zenmap-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  overflow-x: auto;
}

.zen-tab {
  background: transparent;
  border: none;
  border-right: 1px solid #e2e8f0;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.zen-tab:hover {
  color: var(--navy-800);
}

.zen-tab.active {
  background: #ffffff;
  color: var(--navy-800);
  border-bottom: 2px solid var(--navy-600);
}

.zenmap-display-area {
  padding: 14px;
  min-height: 220px;
}

.zentab-pane {
  display: none;
}

.zentab-pane.active {
  display: block;
}

.zen-pre {
  background: #060e1d;
  color: #22c55e;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-x: auto;
}

.topology-canvas-mock {
  background: #0f1d38;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #ffffff;
}

.topo-node {
  display: inline-block;
  background: #1e3d75;
  border: 2px solid #38bdf8;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.topo-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topo-child {
  background: #0a172e;
  border: 1px solid #234d94;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.host-details-list p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* In the Movies View */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}

.movie-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.movie-header {
  background: linear-gradient(180deg, #183b75 0%, #0d2349 100%);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.movie-title {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
}

.movie-badge {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.movie-content {
  padding: 14px;
}

.movie-desc {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.5;
}

.movie-code {
  background: #050b18;
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 10px;
  border-left: 3px solid #38bdf8;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .search-section {
    max-width: 100%;
  }

  .page-sheet {
    padding: 20px 22px;
  }

  .toc-columns {
    grid-template-columns: 1fr;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .top-utility-bar {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .nav-pills {
    gap: 4px;
  }

  .nav-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .terminal-title {
    display: none;
  }
}
