/*
Theme Name: Stygian OS
Theme URI: https://stygian-os.com
Author: Stygian OS Team
Author URI: https://stygian-os.com
Description: A dark, developer-focused WordPress theme for Stygian OS with brass accents
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stygian-os
Tags: dark, developer, custom-colors, custom-logo, featured-images, full-width-template

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   Base Styles - Dark Calamares Theme
   ========================================================================== */

@font-face {
    font-family: 'Agraham';
    src: url('assets/fonts/Agraham.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --stygian-black: #050505;
  --stygian-dark: #121212;
  --stygian-darker: #0a0a0a;
  --stygian-brass: #d4af37;
  --stygian-gold: #c5a028;
  --stygian-light-text: #f0f0f0;
  --stygian-muted: #a0a0a0;
  --stygian-border: #333333;
  --stygian-accent: #ff6b35;
  --glass-bg: rgba(18, 18, 18, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--stygian-black);
  color: var(--stygian-light-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--stygian-brass);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--stygian-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Agraham', 'Inter', serif;
  font-weight: 700;
  line-height: 1.4; /* Increased from 1.2 to prevent overlap */
  margin-bottom: 1rem;
  color: var(--stygian-light-text);
  letter-spacing: 0.02em; /* Adjusted for readability */
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--stygian-border);
}

/* Fix for WordPress Admin Bar */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-logo,
.site-logo img,
.custom-logo-link img {
    height: 80px; /* Increased from 50px */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-title {
  font-family: 'Agraham', 'Inter', serif;
  font-size: 1.75rem; /* Slightly larger to match new logo */
  font-weight: 700;
  color: var(--stygian-brass); /* Changed to brass */
  letter-spacing: -0.03em;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  color: var(--stygian-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a:hover {
  color: var(--stygian-light-text);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--stygian-brass);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem 5rem; /* Increased top padding from 8rem to 10rem to clear header */
  background: radial-gradient(circle at top right, #1a1a1a 0%, var(--stygian-black) 60%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 5rem; /* Reduced from 5.5rem to prevent clipping */
  margin-bottom: 2rem;
  background: linear-gradient(to right, #ffffff 20%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding-bottom: 0.2em;
  padding-top: 0.1em; /* Added slight top padding */
}

.hero-content h1 span {
    color: var(--stygian-brass);
    -webkit-text-fill-color: var(--stygian-brass);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--stygian-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--stygian-brass);
  color: #000;
}

.btn-primary:hover {
  background: var(--stygian-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stygian-border);
  color: var(--stygian-light-text);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--stygian-muted);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  perspective: 1000px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--stygian-border);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: rotateY(0) rotateX(0);
}

/* ==========================================================================
   Showcase Section
   ========================================================================== */

.showcase-section {
    padding: 8rem 2rem;
    background: var(--stygian-black);
    position: relative;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--stygian-border);
    background: var(--stygian-dark);
}

.showcase-item.large {
    grid-column: span 2;
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.showcase-item:hover img {
    transform: scale(1.02);
}

.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--stygian-light-text);
}

.showcase-caption h3 {
    color: var(--stygian-brass);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
  padding: 8rem 2rem;
  background-color: var(--stygian-darker);
  position: relative;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--stygian-muted);
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--stygian-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--stygian-brass);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--stygian-brass);
  background: rgba(212, 175, 55, 0.1);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-card h3 {
  color: var(--stygian-light-text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--stygian-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--stygian-black);
  border-top: 1px solid var(--stygian-border);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h3 {
  color: var(--stygian-light-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--stygian-muted);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--stygian-brass);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--stygian-border);
  color: var(--stygian-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Content & Single Pages
   ========================================================================== */

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.site-main {
    min-height: 60vh;
    padding-top: 80px; /* offset fixed header */
}

.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}




.entry-meta {
    color: var(--stygian-muted);
    font-size: 0.9rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--stygian-brass);
}

.entry-meta {
    color: var(--stygian-muted);
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--stygian-light-text);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--stygian-brass);
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stygian-border);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stygian-border);
    font-size: 0.9rem;
}

.cat-links, .tags-links {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--stygian-muted);
}

/* ==========================================================================
   Blog Section (Front Page)
   ========================================================================== */

.blog-section {
    padding: 8rem 2rem;
    background-color: var(--stygian-black);
    position: relative;
    border-top: 1px solid var(--stygian-border);
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--stygian-border);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--stygian-brass);
}

.post-card .post-thumbnail {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--stygian-border);
    height: 240px;
}

.post-card .post-thumbnail img {
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Plugin Specific Overrides */
.stygian-dev-tools {
    max-width: 1400px; /* match homepage width */
    margin: 0 auto;
}

.stygian-dev-tools h1 {
    font-family: 'Agraham', 'Inter', serif;
    font-size: 2.5rem;
    color: var(--stygian-brass);
    margin-bottom: 1rem;
    text-align: center;
}

.stygian-dev-tools .sdt-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layout for Categories */
.sdt-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Category Card Styling */
.sdt-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stygian-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sdt-category:hover {
    border-color: var(--stygian-brass);
    background: rgba(255, 255, 255, 0.04);
}

/* Category Title Typography */
.stygian-dev-tools h3,
.sdt-category-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
    color: var(--stygian-brass); /* Using brass for accent, but smaller */
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--stygian-border);
    padding-bottom: 0.75rem !important;
}

/* Tools/Checkboxes inside the card */
.sdt-tools-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced from 1rem */
}

.sdt-tool-card {
    /* Clean up the tool display */
    padding: 0;
    background: transparent;
    border: none;
}

.sdt-tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    margin-bottom: 0.1rem; /* Tighter spacing */
}

.sdt-tool-name {
    font-weight: 600;
    color: var(--stygian-light-text);
    font-size: 0.9rem; /* Reduced from 0.95rem */
    cursor: pointer;
}

.sdt-tool-description {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    color: var(--stygian-muted);
    margin-left: 1.75rem; /* Indent to align with text */
    line-height: 1.3;
}

/* Code Block Output */
#sdt-script-output {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--stygian-border);
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sdt-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sdt-categories {
        grid-template-columns: 1fr;
    }
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .showcase-grid {
      grid-template-columns: 1fr;
  }

  .showcase-item.large {
      grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .header-container {
      padding: 1rem;
  }

  .main-navigation {
      display: none; /* Mobile menu implementation usually requires JS */
  }

  .entry-title {
      font-size: 2rem;
  }
}

/* ==========================================================================
   Modern UI Styles ([stygian_dev_tools_modern])
   ========================================================================== */

.stygian-dev-tools-modern {
    font-family: 'Inter', sans-serif;
    padding: 2rem 0;
    color: var(--stygian-light-text);
}

/* Modern UI Refinements */

.sdt-modern-container {
    background-color: rgba(18, 18, 18, 0.95); /* Slightly more opaque for window feel */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--stygian-border);
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7); /* Deep shadow for floating effect */
    overflow: hidden;

    /* Fixed Floating Positioning */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000; /* Above everything */

    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    min-height: 600px;
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column;
}

/* Drag Handle / Title Bar */
.sdt-drag-handle {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--stygian-border);
    cursor: grab; /* Indicates draggable */
    user-select: none;
    flex-shrink: 0;
}

.sdt-drag-handle:active {
    cursor: grabbing;
}

.sdt-window-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--stygian-muted);
    font-weight: 500;
}

/* Resize Handles */
.sdt-resize-handle {
    position: absolute;
    z-index: 100001; /* Above content */
    transition: background-color 0.2s ease;
}

.sdt-resize-handle.right {
    top: 0;
    right: 0;
    bottom: 20px; /* Leave room for corner */
    width: 12px; /* Increased for better hit area */
    cursor: ew-resize;
}

.sdt-resize-handle.bottom {
    left: 0;
    right: 20px; /* Leave room for corner */
    bottom: 0;
    height: 12px; /* Increased for better hit area */
    cursor: ns-resize;
}

.sdt-resize-handle.corner {
    right: 0;
    bottom: 0;
    width: 25px; /* Larger hit area */
    height: 25px;
    cursor: nwse-resize;
    /* Visual cue for the corner */
    background: linear-gradient(135deg, transparent 50%, var(--stygian-brass) 50%);
    opacity: 0.8;
    border-bottom-right-radius: 12px;
}

.sdt-resize-handle:hover {
    background-color: rgba(212, 175, 55, 0.3); /* Visible highlight on hover */
}

.sdt-window-crtl {
    display: flex;
    gap: 8px;
    width: 60px; /* Balance spacing */
}

.sdt-window-spacer {
    width: 60px; /* Balance title center */
}

.sdt-win-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s;
}

.sdt-win-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.sdt-win-btn.red { background-color: #ff5f56; }
.sdt-win-btn.yellow { background-color: #ffbd2e; }
.sdt-win-btn.green { background-color: #27c93f; }

/* Minimized State */
.sdt-modern-container.minimized {
    height: auto !important;
    min-height: 0 !important;
}

.sdt-modern-container.minimized .sdt-modern-tabs,
.sdt-modern-container.minimized .sdt-modern-content {
    display: none !important;
}

/* Maximized State */
.sdt-modern-container.maximized {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
}

/* Launcher (When Closed) */
.sdt-launcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--stygian-brass);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace; /* Terminal look */
    font-weight: bold;
    color: #000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.sdt-launcher.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.sdt-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Launcher Button (for shortcode) */
.sdt-launcher-btn {
    background: linear-gradient(135deg, var(--stygian-brass) 0%, var(--stygian-gold) 100%);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-family: 'Inter', sans-serif;
}

.sdt-launcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.sdt-launcher-btn:active {
    transform: translateY(0);
}


/* Tab Bar with Scroll Hint */
.sdt-modern-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.3)); /* Subtle gradient bg */
    border-bottom: 1px solid var(--stygian-border);
    padding: 0 1rem;
    gap: 0.5rem;
    flex-shrink: 0;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--stygian-muted) transparent;

    /* Fade effect on the right to indicate more content */
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.sdt-modern-tabs::-webkit-scrollbar {
    height: 4px;
}
.sdt-modern-tabs::-webkit-scrollbar-thumb {
    background-color: var(--stygian-border);
    border-radius: 2px;
}

/* Script Output Styling */
.sdt-generate-section pre#sdt-script-output {
    text-align: left; /* Force left alignment */
    background-color: #0d0d0d;
    border: 1px solid var(--stygian-border);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    white-space: pre; /* Ensure code spacing is preserved */
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.sdt-generate-section {
    text-align: center;
    max-width: 800px; /* Increased to allow wider code block */
    margin: 2rem auto;
}

.sdt-tab-btn {
    background: transparent;
    border: none;
    color: var(--stygian-muted);
    padding: 1.25rem 1.5rem;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace; /* Tech feel */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sdt-tab-btn:hover {
    color: var(--stygian-light-text);
    background-color: rgba(255, 255, 255, 0.03);
}

.sdt-tab-btn.active {
    color: var(--stygian-brass);
    border-bottom-color: var(--stygian-brass);
}

/* Content Area */
.sdt-modern-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.sdt-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sdt-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Screen */
.sdt-welcome-hero {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
}

.sdt-welcome-hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--stygian-light-text) !important; /* Force override */
}

.sdt-text-brand {
    color: var(--stygian-brass);
    font-weight: 600;
}

.sdt-subtitle {
    font-size: 1.25rem;
    color: var(--stygian-muted);
    margin-bottom: 4rem;
}

.sdt-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.sdt-feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--stygian-border);
}

.sdt-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--stygian-brass);
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Category View Override */
.sdt-modern-cat-title {
    font-family: 'Agraham', serif;
    color: var(--stygian-brass);
    border-bottom: 1px solid var(--stygian-border);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Modern Grid & Cards */
.sdt-tools-grid.modern-grid {
    gap: 1rem;
}

.sdt-tool-card.modern-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.sdt-tool-card.modern-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--stygian-border);
    transform: none; /* Disable lift for flatter modern look */
}

/* Checkbox alignment in modern card */
.sdt-tool-card.modern-card .sdt-checkbox {
    margin-top: 2px;
}

/* Generate Section styles moved up */
.sdt-count-badge {
    color: var(--stygian-brass);
    font-weight: bold;
    font-size: 1.2em;
}

/* Scrollbar Styling */
.sdt-modern-content::-webkit-scrollbar {
    width: 8px;
}
.sdt-modern-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.sdt-modern-content::-webkit-scrollbar-thumb {
    background: var(--stygian-border);
    border-radius: 4px;
}
.sdt-modern-content::-webkit-scrollbar-thumb:hover {
    background: var(--stygian-muted);
}
