/* Dark Terminal Aesthetic - Cybersecurity Portfolio */

/* Mermaid Diagram Styling */
.mermaid {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Obsidian Callout Styling */
.callout {
  border-left: 4px solid;
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-color: var(--primary-color);
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-content {
  margin: 0;
}

/* Callout Types */
.callout-success {
  border-color: #00ff00;
  background: rgba(0, 255, 0, 0.1);
}

.callout-warning {
  border-color: #ffaa00;
  background: rgba(255, 170, 0, 0.1);
}

.callout-error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.callout-info {
  border-color: #4488ff;
  background: rgba(68, 136, 255, 0.1);
}

.callout-note {
  border-color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
}

/* Callout Icons */
.callout-icon {
  font-size: 1.2em;
  font-weight: bold;
}

.callout-success .callout-icon::before {
  content: "✓";
  color: #00ff00;
}

.callout-warning .callout-icon::before {
  content: "⚠";
  color: #ffaa00;
}

.callout-error .callout-icon::before {
  content: "✗";
  color: #ff4444;
}

.callout-info .callout-icon::before {
  content: "ℹ";
  color: #4488ff;
}

.callout-note .callout-icon::before {
  content: "📝";
  color: var(--primary-color);
}

/* Variables */
:root {
  --primary-color: #8b5cf6;  /* Blueish purple accent like terminal */
  --secondary-color: #ffffff;  /* White for hover states */
  --accent-color: #00ff00;  /* Green for success */
  --text-color: #cccccc;  /* Light gray text */
  --text-muted: #888888;  /* Muted text */
  --bg-color: #1a1a1a;  /* Dark terminal background */
  --bg-card: #2a2a2a;  /* Card background */
  --bg-hover: #3a3a3a;  /* Hover background */
  --border-color: #444444;  /* Border color */
  --border-dotted: #8b5cf6;  /* Blueish purple dotted borders */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.9);
  --border-radius: 0px;  /* No rounded corners for terminal look */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: var(--bg-color);
  border-bottom: 2px solid var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand:hover {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.8rem;
  white-space: nowrap;
  text-align: center;
  min-width: fit-content;
}

.nav-menu a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--bg-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Main content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-color);
  border: 2px dotted var(--border-dotted);
  margin: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 2rem;
  border: 1px solid var(--primary-color);
  font-family: 'Courier New', monospace;
}

.hero-cta:hover {
  background: var(--bg-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Terminal-style sections */
.section {
  padding: 3rem 0;
  border-top: 1px dotted var(--border-dotted);
  border-bottom: 1px dotted var(--border-dotted);
  margin: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

/* Cards with terminal styling */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  font-family: 'Courier New', monospace;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Terminal-style lists */
.terminal-list {
  list-style: none;
  padding-left: 0;
}

.terminal-list li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.terminal-list li::before {
  content: "> ";
  color: var(--primary-color);
  font-weight: bold;
}

/* Tags with terminal styling */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--bg-hover);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  font-family: 'Courier New', monospace;
}

/* About section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  font-family: 'Courier New', monospace;
}

.skill-category:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-category ul {
  list-style: none;
  color: var(--text-color);
}

.skill-category li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Project/Blog items */
.project-item, .blog-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
  font-family: 'Courier New', monospace;
}

.project-item:hover, .blog-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-item h3, .blog-item h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.project-item .meta, .blog-item .meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Certifications */
.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  font-family: 'Courier New', monospace;
}

.cert-item:hover {
  border-color: var(--primary-color);
}

.cert-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cert-item .issuer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cert-item .date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.cert-item .description {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cert-item .badge-link {
  margin-top: 0.5rem;
}

.cert-item .badge-link .btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.cert-item .badge-link .btn:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 2px solid var(--primary-color);
  padding: 2rem 0;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section p {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.email-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.email-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.social-links a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Blog Posts */
.recent-posts, .all-posts {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

/* Category Tags */
.category-tag {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Post Layout */
.post {
  margin-top: 2rem;
  padding-top: 1rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-category {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.post-content {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--secondary-color);
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.post-content img + em {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-tags h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.post-tags ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-tags li {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-tags a {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.post-navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.back-button {
  display: inline-flex !important;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  border: 2px solid transparent;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.back-button:hover {
  background: var(--bg-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  border-color: var(--primary-color) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.back-button span {
  font-size: 0.9rem;
}

/* Portfolio navigation - same as post navigation */
.portfolio-navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.post-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition);
}

.post-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.post-item h3 {
  margin-bottom: 0.5rem;
}

.post-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.post-item h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-right: 0.25rem;
  display: inline-block;
}

/* Post tags - non-clickable styling */
.post-tags .tag {
  background: var(--bg-hover);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  font-family: 'Courier New', monospace;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  display: inline-block;
  text-decoration: none;
  cursor: default;
}

.post-excerpt {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 0;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all .btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.view-all .btn:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.3rem;
  }
  
  .nav-menu a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--primary-color);
    gap: 0.5rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .card, .project-item, .blog-item {
    padding: 1.5rem;
  }
  
  .filter-controls {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Syntax Highlighting - Rouge Dark Theme */
.highlight {
  background: #1e1e1e;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
}

/* Ensure the highlighter-rouge container is positioned relative for absolute positioning */
.highlighter-rouge {
  position: relative;
}

/* Language label in top right corner - hidden by default */
.highlight::before {
  display: none;
}

/* Language label styling - target the parent div with language class */
.highlighter-rouge[class*="language-"]::before {
  display: block;
  position: absolute;
  top: 8px;
  right: 12px;
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  opacity: 0.9;
}

/* Specific language extractions */
.highlighter-rouge.language-python::before { content: "PYTHON"; }
.highlighter-rouge.language-javascript::before { content: "JAVASCRIPT"; }
.highlighter-rouge.language-js::before { content: "JAVASCRIPT"; }
.highlighter-rouge.language-html::before { content: "HTML"; }
.highlighter-rouge.language-css::before { content: "CSS"; }
.highlighter-rouge.language-json::before { content: "JSON"; }
.highlighter-rouge.language-yaml::before { content: "YAML"; }
.highlighter-rouge.language-yml::before { content: "YAML"; }
.highlighter-rouge.language-bash::before { content: "BASH"; }
.highlighter-rouge.language-shell::before { content: "SHELL"; }
.highlighter-rouge.language-powershell::before { content: "POWERSHELL"; }
.highlighter-rouge.language-python3::before { content: "PYTHON"; }
.highlighter-rouge.language-java::before { content: "JAVA"; }
.highlighter-rouge.language-cpp::before { content: "C++"; }
.highlighter-rouge.language-c::before { content: "C"; }
.highlighter-rouge.language-ruby::before { content: "RUBY"; }
.highlighter-rouge.language-php::before { content: "PHP"; }
.highlighter-rouge.language-sql::before { content: "SQL"; }
.highlighter-rouge.language-xml::before { content: "XML"; }
.highlighter-rouge.language-markdown::before { content: "MARKDOWN"; }
.highlighter-rouge.language-dockerfile::before { content: "DOCKERFILE"; }
.highlighter-rouge.language-docker::before { content: "DOCKER"; }
.highlighter-rouge.language-nginx::before { content: "NGINX"; }
.highlighter-rouge.language-apache::before { content: "APACHE"; }
.highlighter-rouge.language-http::before { content: "HTTP"; }
.highlighter-rouge.language-https::before { content: "HTTPS"; }
.highlighter-rouge.language-ssh::before { content: "SSH"; }
.highlighter-rouge.language-ftp::before { content: "FTP"; }
.highlighter-rouge.language-smtp::before { content: "SMTP"; }
.highlighter-rouge.language-dns::before { content: "DNS"; }
.highlighter-rouge.language-ldap::before { content: "LDAP"; }
.highlighter-rouge.language-kerberos::before { content: "KERBEROS"; }
.highlighter-rouge.language-ntlm::before { content: "NTLM"; }
.highlighter-rouge.language-oauth::before { content: "OAUTH"; }
.highlighter-rouge.language-saml::before { content: "SAML"; }
.highlighter-rouge.language-jwt::before { content: "JWT"; }
.highlighter-rouge.language-token::before { content: "TOKEN"; }
.highlighter-rouge.language-api::before { content: "API"; }
.highlighter-rouge.language-rest::before { content: "REST"; }
.highlighter-rouge.language-graphql::before { content: "GRAPHQL"; }
.highlighter-rouge.language-soap::before { content: "SOAP"; }
.highlighter-rouge.language-toml::before { content: "TOML"; }
.highlighter-rouge.language-ini::before { content: "INI"; }
.highlighter-rouge.language-conf::before { content: "CONFIG"; }
.highlighter-rouge.language-config::before { content: "CONFIG"; }
.highlighter-rouge.language-log::before { content: "LOG"; }
.highlighter-rouge.language-text::before { content: "TEXT"; }
.highlighter-rouge.language-plain::before { content: "TEXT"; }
.highlighter-rouge.language-none::before { content: "TEXT"; }

/* Adjust padding to account for language label */
.highlight pre {
  background: transparent;
  border: none;
  margin: 0;
  padding: 2.5rem 1rem 1rem 1rem;
  overflow-x: auto;
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.highlight code {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

/* Rouge syntax highlighting colors for dark theme */
.highlight .c { color: #6a9955; } /* Comment */
.highlight .err { color: #f44747; } /* Error */
.highlight .k { color: #569cd6; } /* Keyword */
.highlight .l { color: #d4d4d4; } /* Literal */
.highlight .n { color: #d4d4d4; } /* Name */
.highlight .o { color: #d4d4d4; } /* Operator */
.highlight .p { color: #d4d4d4; } /* Punctuation */
.highlight .cm { color: #6a9955; } /* Comment.Multiline */
.highlight .cp { color: #6a9955; } /* Comment.Preproc */
.highlight .c1 { color: #6a9955; } /* Comment.Single */
.highlight .cs { color: #6a9955; } /* Comment.Special */
.highlight .gd { color: #f44747; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gr { color: #f44747; } /* Generic.Error */
.highlight .gh { color: #d4d4d4; font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: #4ec9b0; } /* Generic.Inserted */
.highlight .go { color: #808080; } /* Generic.Output */
.highlight .gp { color: #d4d4d4; font-weight: bold; } /* Generic.Prompt */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #d4d4d4; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #f44747; } /* Generic.Traceback */
.highlight .kc { color: #569cd6; } /* Keyword.Constant */
.highlight .kd { color: #569cd6; } /* Keyword.Declaration */
.highlight .kn { color: #569cd6; } /* Keyword.Namespace */
.highlight .kp { color: #569cd6; } /* Keyword.Pseudo */
.highlight .kr { color: #569cd6; } /* Keyword.Reserved */
.highlight .kt { color: #4ec9b0; } /* Keyword.Type */
.highlight .ld { color: #ce9178; } /* Literal.Date */
.highlight .m { color: #b5cea8; } /* Literal.Number */
.highlight .s { color: #ce9178; } /* Literal.String */
.highlight .na { color: #9cdcfe; } /* Name.Attribute */
.highlight .nb { color: #d4d4d4; } /* Name.Builtin */
.highlight .nc { color: #4ec9b0; } /* Name.Class */
.highlight .no { color: #569cd6; } /* Name.Constant */
.highlight .nd { color: #4ec9b0; } /* Name.Decorator */
.highlight .ni { color: #d4d4d4; } /* Name.Entity */
.highlight .ne { color: #4ec9b0; } /* Name.Exception */
.highlight .nf { color: #dcdcaa; } /* Name.Function */
.highlight .nl { color: #d4d4d4; } /* Name.Label */
.highlight .nn { color: #4ec9b0; } /* Name.Namespace */
.highlight .nx { color: #dcdcaa; } /* Name.Other */
.highlight .py { color: #d4d4d4; } /* Name.Property */
.highlight .nt { color: #569cd6; } /* Name.Tag */
.highlight .nv { color: #9cdcfe; } /* Name.Variable */
.highlight .ow { color: #d4d4d4; } /* Operator.Word */
.highlight .w { color: #d4d4d4; } /* Text.Whitespace */
.highlight .mb { color: #b5cea8; } /* Literal.Number.Bin */
.highlight .mf { color: #b5cea8; } /* Literal.Number.Float */
.highlight .mh { color: #b5cea8; } /* Literal.Number.Hex */
.highlight .mi { color: #b5cea8; } /* Literal.Number.Integer */
.highlight .mo { color: #b5cea8; } /* Literal.Number.Oct */
.highlight .sa { color: #ce9178; } /* Literal.String.Affix */
.highlight .sb { color: #ce9178; } /* Literal.String.Backtick */
.highlight .sc { color: #ce9178; } /* Literal.String.Char */
.highlight .dl { color: #ce9178; } /* Literal.String.Delimiter */
.highlight .sd { color: #ce9178; } /* Literal.String.Doc */
.highlight .s2 { color: #ce9178; } /* Literal.String.Double */
.highlight .se { color: #ce9178; } /* Literal.String.Escape */
.highlight .sh { color: #ce9178; } /* Literal.String.Heredoc */
.highlight .si { color: #ce9178; } /* Literal.String.Interpol */
.highlight .sx { color: #ce9178; } /* Literal.String.Other */
.highlight .sr { color: #ce9178; } /* Literal.String.Regex */
.highlight .s1 { color: #ce9178; } /* Literal.String.Single */
.highlight .ss { color: #ce9178; } /* Literal.String.Symbol */
.highlight .bp { color: #d4d4d4; } /* Name.Builtin.Pseudo */
.highlight .fm { color: #dcdcaa; } /* Name.Function.Magic */
.highlight .vc { color: #9cdcfe; } /* Name.Variable.Class */
.highlight .vg { color: #9cdcfe; } /* Name.Variable.Global */
.highlight .vi { color: #9cdcfe; } /* Name.Variable.Instance */
.highlight .vm { color: #9cdcfe; } /* Name.Variable.Magic */
.highlight .il { color: #b5cea8; } /* Literal.Number.Integer.Long */

/* Inline code styling */
code {
  background: #2a2a2a;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  color: #d4d4d4;
}

/* Code block styling */
pre {
  background: #1e1e1e;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  table-layout: fixed; /* Fixed layout for better column control */
  min-width: 800px; /* Minimum width to prevent cramping */
}

th, td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Column width control */
th:nth-child(1), td:nth-child(1) { width: 15%; } /* Website */
th:nth-child(2), td:nth-child(2) { width: 25%; } /* Content-Security-Policy */
th:nth-child(3), td:nth-child(3) { width: 15%; } /* X-Frame-Options */
th:nth-child(4), td:nth-child(4) { width: 20%; } /* HSTS */
th:nth-child(5), td:nth-child(5) { width: 25%; } /* Referrer-Policy */

th {
  background: var(--bg-hover);
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

tr:hover {
  background: var(--bg-hover);
}

tr:last-child td {
  border-bottom: none;
}

/* Remove right border from last column */
th:last-child, td:last-child {
  border-right: none;
}

/* Table wrapper for horizontal scrolling */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

/* Responsive table */
@media (max-width: 1024px) {
  table {
    font-size: 0.8rem;
    min-width: 700px;
  }
  
  th, td {
    padding: 0.5rem 0.4rem;
  }
  
  th {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  table {
    font-size: 0.75rem;
    min-width: 600px;
  }
  
  th, td {
    padding: 0.4rem 0.3rem;
  }
  
  th {
    font-size: 0.65rem;
  }
}

/* Code styling within tables */
table code {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
  font-size: 0.8em;
  color: var(--accent-color);
}