/* Base Variables and Core Styles */
:root {
  /* Cyberpunk Color Palette - Red Focus */
  --neon-red: #ff3366;
  --neon-crimson: #dc143c;
  --neon-orange: #ff6b35;
  --neon-pink: #ff4081;
  --neon-amber: #ffab00;
  --neon-cyan: #00d4ff; /* Keep as accent */
  --neon-green: #00ff88; /* Keep as accent */
  
  /* Background Colors */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #1c2128;
  --bg-hover: #262c36;
  
  /* Glass morphism */
  --glass-bg: rgba(13, 17, 23, 0.7);
  --glass-border: rgba(255, 51, 102, 0.2);
  
  /* Text Colors */
  --text-primary: #f0f6fc;
  --text-secondary: #b1bac4;
  --text-muted: #7d8590;
  
  /* Shadows and Glows */
  --glow-primary: 0 0 20px rgba(255, 51, 102, 0.3);
  --glow-secondary: 0 0 15px rgba(255, 107, 53, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  position: relative;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--neon-crimson), var(--neon-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--neon-crimson);
  text-shadow: var(--glow-primary);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--neon-orange);
}

h4 {
  font-size: 1.125rem;
  color: var(--neon-pink);
}

h5, h6 {
  font-size: 1rem;
  color: var(--neon-amber);
}

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

a {
  color: var(--neon-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-orange);
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

/* Code and Monospace */
code, pre {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 4px;
}

code {
  padding: 0.2rem 0.4rem;
  font-size: 0.875rem;
  color: var(--neon-amber);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--neon-red);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Horizontal Rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  margin: 2rem 0;
}

/* Selection */
::selection {
  background: rgba(255, 51, 102, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-red), var(--neon-orange));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-orange), var(--neon-red));
}.callout-box {
  background: #3d3550;
  color: #e0e0e0;
  border-radius: 8px;
  padding: 1.2rem 1.5rem 1.2rem 2.5rem;
  margin: 1.5rem 0;
  position: relative;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(60,40,90,0.08);
}

.callout-icon {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: 1.5rem;
  color: #b3a6d9;
  opacity: 0.7;
}

.callout-content {
  margin-left: 0;
}

.callout-author {
  margin-top: 1rem;
  color: #d1c4e9;
  font-size: 1rem;
  font-style: italic;
}/* Character Block Component */
.character-block {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(255, 51, 102, 0.1) 50%, 
    rgba(0, 0, 0, 0.8) 100%);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(255, 51, 102, 0.1);
}

.character-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.character-level {
  color: var(--neon-cyan);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 119, 255, 0.3);
}

.character-status-alive {
  color: var(--neon-green);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 171, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 255, 26, 0.3);
}

.character-status-dead {
  color: var(--neon-red);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 171, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.character-details {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.character-race {
  color: var(--neon-green);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.character-class {
  color: var(--neon-green);
  font-weight: 500;
  position: relative;
}

.character-alignment {
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
}/* Cards, Buttons, and General Components */

/* Modern Card Design */
.cyber-card {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(28, 33, 40, 0.9) 100%);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 51, 102, 0.1);
  transition: all 0.3s ease;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--neon-red), 
    var(--neon-orange), 
    var(--neon-red), 
    transparent);
  opacity: 0.8;
}

.cyber-card:hover {
  border-color: rgba(255, 51, 102, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 51, 102, 0.2),
    0 0 30px rgba(255, 51, 102, 0.1);
  transform: translateY(-2px);
}

/* Modern Buttons */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neon-cyan);
  transition: left 0.3s ease;
  z-index: -1;
}

.cyber-btn:hover::before {
  left: 0;
}

.cyber-btn:hover {
  color: var(--bg-primary);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* Tags */
.tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Article Styling */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Grid Layout for Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  padding: 1.5rem;
}

.post-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card h2 a:hover {
  color: var(--neon-cyan);
}

.post-summary {
  color: var(--text-secondary);
  margin: 1rem 0;
  line-height: 1.6;
}

.post-meta {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Spoiler/Details Styling */
.spoiler-details {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(255, 0, 128, 0.05) 100%);
  border: 2px solid var(--neon-red);
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.spoiler-summary {
  background: rgba(255, 51, 102, 0.15);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--neon-red);
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spoiler-summary:hover {
  background: rgba(255, 51, 102, 0.25);
  box-shadow: inset 0 0 20px rgba(255, 51, 102, 0.3);
}

.spoiler-summary::before {
  content: "⚠️";
  font-size: 1.5em;
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.spoiler-content {
  padding: 2rem;
  border-top: 1px solid rgba(255, 51, 102, 0.3);
  background: rgba(255, 51, 102, 0.05);
}

/* Navigation Styling - Red theme */
.site-header {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(13, 17, 23, 0.95) 100%);
  border-bottom: 2px solid var(--neon-red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.2);
}

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

.site-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--neon-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
  transition: all 0.3s ease;
}

.site-logo:hover {
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.8);
  color: var(--neon-orange);
}

/* Remove all default list styling */
.main-nav ul,
.main-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Navigation layout */
.main-nav ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.main-nav li {
  position: relative !important;
  display: inline-block !important;
}

/* Navigation buttons - Red theme */
.main-nav a {
  display: inline-block !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem !important;
  border: 1px solid rgba(255, 51, 102, 0.3) !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  position: relative !important;
  overflow: hidden !important;
  background: rgba(0, 0, 0, 0.3) !important;
  white-space: nowrap !important;
}

.main-nav a::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.2), transparent) !important;
  transition: left 0.5s ease !important;
}

.main-nav a:hover::before {
  left: 100% !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--neon-red) !important;
  border-color: var(--neon-red) !important;
  box-shadow: 
    0 0 15px rgba(255, 51, 102, 0.4),
    inset 0 0 15px rgba(255, 51, 102, 0.1) !important;
  background: rgba(255, 51, 102, 0.1) !important;
}

.main-nav a.active {
  background: rgba(255, 51, 102, 0.15) !important;
  box-shadow: 
    0 0 20px rgba(255, 51, 102, 0.6),
    inset 0 0 20px rgba(255, 51, 102, 0.2) !important;
}

/* Mobile nav toggle - Red theme */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 51, 102, 0.1);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* Footer Styling */
.site-footer {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 51, 102, 0.03) 2px,
      rgba(255, 51, 102, 0.03) 4px
    );
  border-top: 2px solid var(--neon-red);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Changed from 1fr 1fr 1fr */
  gap: 4rem; /* Increased gap for better spacing */
  position: relative;
  z-index: 2;
}

.footer-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

/* Terminal Section */
.footer-terminal {
  border-color: var(--neon-green, #00ff88);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.terminal-prompt {
  color: var(--neon-green, #00ff88);
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green, #00ff88);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  animation: pulse 2s infinite;
}

.status-text {
  color: var(--neon-green, #00ff88);
  font-size: 0.8rem;
  font-weight: bold;
}

.terminal-line {
  color: var(--text-secondary, #b1bac4);
  font-size: 0.85rem;
  margin: 0.3rem 0;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-line::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--neon-green, #00ff88);
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Navigation Section */
.footer-title {
  color: var(--neon-red);
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-secondary, #b1bac4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
}

.footer-link:hover {
  color: var(--neon-red);
  border-left-color: var(--neon-red);
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
  padding-left: 1rem;
}

.link-bracket {
  color: var(--neon-red);
  opacity: 0.7;
}

/* System Info Section */
.system-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 51, 102, 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-muted, #7d8590);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.stat-value {
  color: var(--neon-red);
  font-size: 0.85rem;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 51, 102, 0.4);
}

.text-neon-green {
  color: var(--neon-green, #00ff88) !important;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.4) !important;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem 2rem 1rem;
  border-top: 1px solid rgba(255, 51, 102, 0.3);
  position: relative;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--neon-red), 
    var(--neon-orange), 
    var(--neon-red), 
    transparent
  );
  animation: scanline 3s linear infinite;
}

.footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted, #7d8590);
  margin-bottom: 1rem;
}

.copyright-symbol {
  color: var(--neon-red);
  font-weight: bold;
}

.copyright-year {
  color: var(--neon-green, #00ff88);
  font-weight: bold;
}

.footer-glitch-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--neon-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* Background Effects */
.footer-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.data-stream {
  position: absolute;
  top: 0;
  left: 20%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--neon-cyan, #00d4ff), transparent);
  opacity: 0.3;
  animation: dataFlow 4s linear infinite;
}

.circuit-pattern {
  position: absolute;
  bottom: 0;
  right: 2rem;
  width: 100px;
  height: 50px;
  background: 
    linear-gradient(90deg, transparent 48%, var(--neon-cyan, #00d4ff) 49%, var(--neon-cyan, #00d4ff) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--neon-cyan, #00d4ff) 49%, var(--neon-cyan, #00d4ff) 51%, transparent 52%);
  opacity: 0.1;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block !important;
  }
  
  .main-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--neon-red) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  }
  
  .main-nav.active {
    display: block !important;
  }
  
  .main-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .main-nav a {
    display: block !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 51, 102, 0.2) !important;
    border-radius: 0 !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-bottom {
    padding: 1rem;
  }
  
  .footer-copyright {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .terminal-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}/* Glitch Effects and Animations */

/* Terminal Flicker */
.terminal-flicker {
  animation: flicker 3s infinite linear;
}

@keyframes flicker {
  0% { opacity: 1; }
  98% { opacity: 1; }
  98.5% { opacity: 0.95; }
  99% { opacity: 0.98; }
  99.5% { opacity: 1; }
  100% { opacity: 1; }
}

/* Glitch Animations */
@keyframes glitch {
  0% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.9),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.9),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.9);
    transform: translate(0);
  }
  15% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.9),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.9),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.9);
    transform: translate(0);
  }
  16% {
    text-shadow: 
      -0.1em -0.05em 0 rgba(255, 0, 0, 0.9),
      0.05em 0.05em 0 rgba(0, 255, 0, 0.9),
      -0.1em -0.1em 0 rgba(0, 0, 255, 0.9);
    transform: translate(-2px, 1px);
  }
  49% {
    text-shadow: 
      -0.1em -0.05em 0 rgba(255, 0, 0, 0.9),
      0.05em 0.05em 0 rgba(0, 255, 0, 0.9),
      -0.1em -0.1em 0 rgba(0, 0, 255, 0.9);
    transform: translate(-2px, 1px);
  }
  50% {
    text-shadow: 
      0.05em 0.1em 0 rgba(255, 0, 0, 0.9),
      0.1em 0 0 rgba(0, 255, 0, 0.9),
      0 -0.1em 0 rgba(0, 0, 255, 0.9);
    transform: translate(3px, -2px);
  }
  99% {
    text-shadow: 
      0.05em 0.1em 0 rgba(255, 0, 0, 0.9),
      0.1em 0 0 rgba(0, 255, 0, 0.9),
      0 -0.1em 0 rgba(0, 0, 255, 0.9);
    transform: translate(3px, -2px);
  }
  100% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.9),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.9),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.9);
    transform: translate(0);
  }
}

@keyframes noise-anim {
  0% { clip: rect(64px, 9999px, 66px, 0); transform: translateX(0); }
  5% { clip: rect(30px, 9999px, 36px, 0); transform: translateX(-5px); }
  10% { clip: rect(87px, 9999px, 93px, 0); transform: translateX(5px); }
  15% { clip: rect(11px, 9999px, 15px, 0); transform: translateX(-3px); }
  20% { clip: rect(45px, 9999px, 51px, 0); transform: translateX(7px); }
  25% { clip: rect(72px, 9999px, 78px, 0); transform: translateX(-2px); }
  30% { clip: rect(23px, 9999px, 29px, 0); transform: translateX(4px); }
  35% { clip: rect(56px, 9999px, 62px, 0); transform: translateX(-6px); }
  40% { clip: rect(34px, 9999px, 40px, 0); transform: translateX(3px); }
  45% { clip: rect(67px, 9999px, 73px, 0); transform: translateX(-4px); }
  50% { clip: rect(89px, 9999px, 95px, 0); transform: translateX(6px); }
  55% { clip: rect(12px, 9999px, 18px, 0); transform: translateX(-7px); }
  60% { clip: rect(43px, 9999px, 49px, 0); transform: translateX(2px); }
  65% { clip: rect(76px, 9999px, 82px, 0); transform: translateX(-5px); }
  70% { clip: rect(21px, 9999px, 27px, 0); transform: translateX(8px); }
  75% { clip: rect(54px, 9999px, 60px, 0); transform: translateX(-3px); }
  80% { clip: rect(32px, 9999px, 38px, 0); transform: translateX(5px); }
  85% { clip: rect(65px, 9999px, 71px, 0); transform: translateX(-6px); }
  90% { clip: rect(87px, 9999px, 93px, 0); transform: translateX(4px); }
  95% { clip: rect(14px, 9999px, 20px, 0); transform: translateX(-8px); }
  100% { clip: rect(41px, 9999px, 47px, 0); transform: translateX(0); }
}

@keyframes noise-anim-2 {
  0% { clip: rect(65px, 9999px, 100px, 0); transform: translateX(0) translateY(0); }
  5% { clip: rect(25px, 9999px, 32px, 0); transform: translateX(8px) translateY(-2px); }
  10% { clip: rect(76px, 9999px, 83px, 0); transform: translateX(-6px) translateY(3px); }
  15% { clip: rect(54px, 9999px, 61px, 0); transform: translateX(4px) translateY(-4px); }
  20% { clip: rect(12px, 9999px, 19px, 0); transform: translateX(-7px) translateY(2px); }
  25% { clip: rect(43px, 9999px, 50px, 0); transform: translateX(9px) translateY(-1px); }
  30% { clip: rect(87px, 9999px, 94px, 0); transform: translateX(-3px) translateY(4px); }
  35% { clip: rect(21px, 9999px, 28px, 0); transform: translateX(6px) translateY(-3px); }
  40% { clip: rect(67px, 9999px, 74px, 0); transform: translateX(-8px) translateY(1px); }
  45% { clip: rect(98px, 9999px, 105px, 0); transform: translateX(5px) translateY(-2px); }
  50% { clip: rect(34px, 9999px, 41px, 0); transform: translateX(-4px) translateY(3px); }
  55% { clip: rect(78px, 9999px, 85px, 0); transform: translateX(7px) translateY(-4px); }
  60% { clip: rect(56px, 9999px, 63px, 0); transform: translateX(-9px) translateY(2px); }
  65% { clip: rect(13px, 9999px, 20px, 0); transform: translateX(3px) translateY(-1px); }
  70% { clip: rect(45px, 9999px, 52px, 0); transform: translateX(-6px) translateY(4px); }
  75% { clip: rect(89px, 9999px, 96px, 0); transform: translateX(8px) translateY(-3px); }
  80% { clip: rect(23px, 9999px, 30px, 0); transform: translateX(-5px) translateY(1px); }
  85% { clip: rect(69px, 9999px, 76px, 0); transform: translateX(4px) translateY(-2px); }
  90% { clip: rect(100px, 9999px, 107px, 0); transform: translateX(-7px) translateY(3px); }
  95% { clip: rect(36px, 9999px, 43px, 0); transform: translateX(6px) translateY(-4px); }
  100% { clip: rect(80px, 9999px, 87px, 0); transform: translateX(0) translateY(0); }
}

/* Glitch Effects for Headers */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  animation: noise-anim-2 0.3s infinite linear alternate-reverse;
  color: #ff0040;
  z-index: -1;
  left: 4px;
  text-shadow: -4px 0 #ff0040;
}

.glitch::after {
  animation: noise-anim 0.2s infinite linear alternate-reverse;
  color: #00ff88;
  z-index: -2;
  left: -4px;
  text-shadow: 4px 0 #00ff88;
}

/* Intense Body Glitch */
@keyframes intense-glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg) contrast(1) brightness(1); }
  5% { transform: translate(-5px, 2px); filter: hue-rotate(90deg) contrast(1.2) brightness(1.1); }
  10% { transform: translate(-2px, -3px); filter: hue-rotate(180deg) contrast(0.8) brightness(0.9); }
  15% { transform: translate(4px, 1px); filter: hue-rotate(270deg) contrast(1.3) brightness(1.2); }
  20% { transform: translate(2px, -4px); filter: hue-rotate(360deg) contrast(0.9) brightness(0.8); }
  25% { transform: translate(-3px, 3px); filter: hue-rotate(45deg) contrast(1.1) brightness(1.3); }
  30% { transform: translate(-4px, -2px); filter: hue-rotate(135deg) contrast(1.4) brightness(0.7); }
  35% { transform: translate(5px, -1px); filter: hue-rotate(225deg) contrast(0.7) brightness(1.4); }
  40% { transform: translate(-1px, -5px); filter: hue-rotate(315deg) contrast(1.2) brightness(0.9); }
  45% { transform: translate(3px, 4px); filter: hue-rotate(60deg) contrast(0.8) brightness(1.1); }
  50% { transform: translate(-2px, 2px); filter: hue-rotate(120deg) contrast(1.3) brightness(1.2); }
  55% { transform: translate(-5px, -3px); filter: hue-rotate(200deg) contrast(0.9) brightness(0.8); }
  60% { transform: translate(4px, -2px); filter: hue-rotate(280deg) contrast(1.1) brightness(1.3); }
  65% { transform: translate(-3px, -4px); filter: hue-rotate(340deg) contrast(1.4) brightness(0.7); }
  70% { transform: translate(5px, 3px); filter: hue-rotate(80deg) contrast(0.7) brightness(1.4); }
  75% { transform: translate(-4px, 1px); filter: hue-rotate(160deg) contrast(1.2) brightness(0.9); }
  80% { transform: translate(2px, -5px); filter: hue-rotate(240deg) contrast(0.8) brightness(1.1); }
  85% { transform: translate(-1px, 4px); filter: hue-rotate(300deg) contrast(1.3) brightness(1.2); }
  90% { transform: translate(3px, 2px); filter: hue-rotate(20deg) contrast(0.9) brightness(0.8); }
  95% { transform: translate(-5px, -1px); filter: hue-rotate(100deg) contrast(1.1) brightness(1.3); }
  100% { transform: translate(0); filter: hue-rotate(0deg) contrast(1) brightness(1); }
}

body.glitch-moment {
  animation: intense-glitch 0.15s ease-in-out;
}

/* Static overlay */
.static-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.03) 1deg, transparent 2deg),
    repeating-linear-gradient(0deg, transparent 0px, rgba(255, 0, 100, 0.05) 1px, transparent 2px),
    repeating-linear-gradient(90deg, transparent 0px, rgba(0, 255, 136, 0.05) 1px, transparent 2px);
  pointer-events: none;
  z-index: 10;
  animation: static-noise 0.05s infinite;
  opacity: 0.4;
}

@keyframes static-noise {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(2px, 1px) rotate(1deg); }
  20% { transform: translate(-1px, 0px) rotate(-1deg); }
  30% { transform: translate(1px, -2px) rotate(0.5deg); }
  40% { transform: translate(0px, 2px) rotate(-0.5deg); }
  50% { transform: translate(-2px, -1px) rotate(1deg); }
  60% { transform: translate(2px, 0px) rotate(-1deg); }
  70% { transform: translate(0px, -1px) rotate(0.5deg); }
  80% { transform: translate(-1px, 1px) rotate(-0.5deg); }
  90% { transform: translate(1px, 2px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cyber-card {
  animation: fadeInUp 0.6s ease-out;
}

.cyber-card:nth-child(2) { animation-delay: 0.1s; }
.cyber-card:nth-child(3) { animation-delay: 0.2s; }
.cyber-card:nth-child(4) { animation-delay: 0.3s; }.equipment-component {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(255, 51, 102, 0.08) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.3rem 0;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.equipment-item {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 51, 102, 0.05);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.equipment-item:hover {
  background: rgba(255, 51, 102, 0.1);
  transform: translateX(3px);
}

.equipment-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

@keyframes gear-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}.faction-component {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(255, 64, 129, 0.08) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(255, 64, 129, 0.3);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0.3rem 0;
  backdrop-filter: blur(3px);
}

.faction-icon {
  color: var(--neon-pink);
  font-size: 1.2rem;
  margin-right: 0.75rem;
  animation: faction-pulse 3s ease-in-out infinite;
}

.faction-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.faction-name {
  color: var(--neon-pink);
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 0 4px rgba(255, 64, 129, 0.4);
}

.faction-standing {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faction-standing-allied {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.faction-standing-friendly {
  background: rgba(0, 212, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.faction-standing-neutral {
  background: rgba(158, 158, 158, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(158, 158, 158, 0.3);
}

.faction-standing-hostile {
  background: rgba(255, 51, 102, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

@keyframes faction-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.1); }
}.home-container {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(255, 51, 102, 0.1) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  border-bottom: 1px solid rgba(255, 51, 102, 0.3);
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--neon-red);
  text-shadow: 
    0 0 20px rgba(255, 51, 102, 0.8),
    0 0 40px rgba(255, 51, 102, 0.4);
  margin: 0 0 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--neon-cyan);
  font-family: 'JetBrains Mono', monospace;
  margin: 0 0 2rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}

.hero-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 51, 102, 0.02) 2px,
    rgba(255, 51, 102, 0.02) 4px
  );
  z-index: 1;
}

/* Main Grid Layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Panel Styling */
.home-panel {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(255, 51, 102, 0.05) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 51, 102, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.panel-icon {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  color: var(--neon-red);
}

.panel-title {
  font-size: 1.1rem;
  color: var(--neon-red);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.panel-content {
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

/* Quick Access Grid */
.quick-access {
  margin-top: 2rem;
}

.section-title {
  color: var(--neon-cyan);
  font-size: 1rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.access-item:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.access-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--neon-cyan);
}

.access-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Recent Updates Section */
.recent-updates {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.updates-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.updates-title {
  color: var(--neon-red);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 2rem 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scan-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-red), transparent);
  animation: scan-sweep 3s ease-in-out infinite;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.update-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.update-card:hover {
  border-color: rgba(255, 51, 102, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 51, 102, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.card-title a:hover {
  color: var(--neon-red);
}

.card-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.card-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.card-footer {
  border-top: 1px solid rgba(255, 51, 102, 0.2);
  padding-top: 0.5rem;
}

.card-section {
  color: var(--neon-cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .access-grid {
    grid-template-columns: 1fr;
  }
  
  .updates-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes scan-sweep {
  0%, 100% { 
    opacity: 0.3; 
    transform: translateX(-100%);
  }
  50% { 
    opacity: 1; 
    transform: translateX(100%);
  }
}/* Layout and Navigation */

/* Grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.02) 2px,
    rgba(0, 212, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: -1;
  animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* Header with Glass Morphism */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 0 2rem;
}

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

.nav-brand a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-brand a:hover {
  animation: glitch 0.5s ease-in-out;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  min-height: calc(100vh - 120px);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }
  
  .main-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .nav-links {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-content {
    padding: 7rem 1rem 2rem;
  }
}.occupation-component {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(255, 171, 0, 0.08) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(255, 171, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0.3rem 0;
  backdrop-filter: blur(3px);
}

.occupation-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.occupation-title {
  color: var(--neon-amber);
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 0 4px rgba(255, 171, 0, 0.4);
}

.occupation-description {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

@keyframes work-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.1); }
}.quests-component {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(255, 171, 0, 0.08) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(255, 171, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.3rem 0;
  backdrop-filter: blur(3px);
}

.quests-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 171, 0, 0.2);
}

.quests-icon {
  color: var(--neon-amber);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.quests-title {
  color: var(--neon-amber);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(255, 171, 0, 0.4);
}

.quests-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quest-item {
  display: flex;
  align-items: flex-start;
  padding: 0.3rem 0.4rem;
  background: rgba(255, 171, 0, 0.05);
  border-radius: 3px;
  border-left: 2px solid rgba(255, 171, 0, 0.4);
  transition: all 0.3s ease;
}

.quest-item:hover {
  background: rgba(255, 171, 0, 0.1);
  border-left-color: var(--neon-amber);
  transform: translateX(2px);
}

.quest-status {
  color: var(--neon-amber);
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.6rem;
}

.quest-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.quest-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.3;
}

.quest-status-text {
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.quest-active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.quest-completed {
  background: rgba(0, 212, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.quest-failed {
  background: rgba(255, 51, 102, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}/* Responsive Design Rules */

/* Tablet and below */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .cyber-card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .cyber-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .cyber-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .tags {
    flex-wrap: wrap;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .post-summary {
    font-size: 0.9rem;
  }
}

/* Large screens - Only apply to non-NPC scan mode */
@media (min-width: 1400px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  body:not(.scan-mode) .main-content {
    padding: 8rem 4rem 4rem;
  }
}/* Scanning Interface - Full-Width Immersive HUD */

/* Scan mode body adjustments */
body.scan-mode {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.scan-mode .grid-overlay {
  display: none;
}

/* Main content reset for scan mode */
body.scan-mode .main-content {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  position: relative;
  box-sizing: border-box;
}

/* Make header transparent and overlay-style for scan pages */
body.scan-mode .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 51, 102, 0.2);
}

body.scan-mode .site-footer {
  display: none;
}

/* Reset cyber-card styling for scan mode */
body.scan-mode .cyber-card:not(.scan-profile) {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

body.scan-mode .cyber-card:not(.scan-profile)::before {
  display: none;
}

body.scan-mode .cyber-card:not(.scan-profile):hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* Main scan profile container */
.scan-profile {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "header"
    "main"
    "footer";
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: #000;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Blurred background image - fills entire viewport */
.scan-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.1); /* Hide blur edges */
  z-index: 0;
}

/* Sharp portrait overlay - contained in center */
.scan-portrait {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Scanning overlay effect */
.scan-profile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 51, 102, 0.03) 2px,
      rgba(255, 51, 102, 0.03) 4px
    ),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

/* Header section */
.scan-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin-top: 80px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
  backdrop-filter: blur(1px);
  z-index: 10;
  position: relative;
}

/* Primary title styling */
.scan-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--neon-cyan);
  text-shadow: 
    0 0 20px rgba(255, 51, 102, 0.8),
    0 0 40px rgba(255, 51, 102, 0.4);
  margin: 0; /* Remove margin for tighter spacing */
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Subtitle styling - smaller, bolder, closer */
.scan-subtitle {
  font-size: 0.9rem; /* Much smaller - was 1.2rem */
  font-weight: bold; /* Added bold */
  color: var(--neon-red);
  text-shadow: 
    0 0 10px rgba(255, 171, 0, 0.6),
    0 0 20px rgba(255, 171, 0, 0.3);
  letter-spacing: 2px;
  margin: 0.1rem 0 0 0; /* Much closer to title - was 0.25rem */
  text-transform: uppercase; /* Added for consistency */
}

/* Main content grid */
.scan-grid {
  grid-area: main;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  gap: 2rem;
  z-index: 10;
  position: relative;
  min-height: 0;
}

/* HUD Panel base styling */
.scan-panel {
  position: relative;
  /* border: 1px solid rgba(255, 51, 102, 0.4); */
  background: 
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(255, 51, 102, 0.06) 50%,
      rgba(0, 0, 0, 0.7) 100%
    );
  backdrop-filter: blur(8px);
  box-shadow: 
    0 0 30px rgba(255, 51, 102, 0.15),
    inset 0 0 30px rgba(255, 51, 102, 0.03);
}

.scan-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  /* animation: scan-line 4s ease-in-out infinite; */
}

/* Left and right panels */
.scan-left,
.scan-right {
  flex: 1;
  max-width: 400px;
  min-width: 300px;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 500px;
  box-sizing: border-box;
}

/* Center scanning area - transparent background */
.scan-center {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 300px;
  background: transparent;
  border: none;
}

/* Center area should not have panel styling */
.scan-center.scan-panel {
  background: none;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.scan-center.scan-panel::before {
  display: none;
}

/* Scrollbar styling for side panels */
.scan-left::-webkit-scrollbar,
.scan-right::-webkit-scrollbar {
  width: 4px;
}

.scan-left::-webkit-scrollbar-track,
.scan-right::-webkit-scrollbar-track {
  background: rgba(255, 51, 102, 0.1);
}

.scan-left::-webkit-scrollbar-thumb,
.scan-right::-webkit-scrollbar-thumb {
  background: var(--neon-red);
  border-radius: 2px;
}

/* Data block styling */
.scan-data-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 51, 102, 0.2);
}

.scan-data-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.data-label {
  font-size: 0.9rem;
  color: var(--neon-orange);
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(255, 171, 0, 0.5);
  text-transform: uppercase;
}

.data-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.data-value-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.data-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid rgba(255, 171, 0, 0.4);
  margin-left: 0.5rem;
  line-height: 1.4;
}

/* Center scanning reticle - Subtle computer scan */
.scan-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px; /* Increased from 180px */
  height: 240px; /* Increased from 180px */
  border: 1px solid rgba(255, 51, 102, 0.6);
  background: transparent;
  z-index: 5;
}

/* Simple corner brackets like computer viewfinder */
.scan-center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px; /* Increased from 160px */
  height: 220px; /* Increased from 160px */
  background: 
    /* Top-left corner */
    linear-gradient(var(--neon-red), var(--neon-red)) 0 0 / 16px 1px no-repeat, /* Longer brackets */
    linear-gradient(var(--neon-red), var(--neon-red)) 0 0 / 1px 16px no-repeat, /* Longer brackets */
    /* Top-right corner */
    linear-gradient(var(--neon-red), var(--neon-red)) 100% 0 / 16px 1px no-repeat,
    linear-gradient(var(--neon-red), var(--neon-red)) 100% 0 / 1px 16px no-repeat,
    /* Bottom-left corner */
    linear-gradient(var(--neon-red), var(--neon-red)) 0 100% / 16px 1px no-repeat,
    linear-gradient(var(--neon-red), var(--neon-red)) 0 100% / 1px 16px no-repeat,
    /* Bottom-right corner */
    linear-gradient(var(--neon-red), var(--neon-red)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--neon-red), var(--neon-red)) 100% 100% / 1px 16px no-repeat;
  opacity: 0.7;
  z-index: 6;
}

/* Subtle scanning line - slow horizontal sweep */
.scan-center .scan-line-horizontal {
  position: absolute;
  left: 8%; /* Adjusted for larger frame */
  right: 8%; /* Adjusted for larger frame */
  height: 1px;
  top: 30%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 51, 102, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: computer-scan 4s ease-in-out infinite;
  z-index: 7;
  box-shadow: 0 0 3px rgba(255, 51, 102, 0.3);
}

/* Subtle grid overlay - very faint */
.scan-center .scan-grid-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; /* Increased from 140px */
  height: 200px; /* Increased from 140px */
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 15px, /* Larger grid cells */
      rgba(255, 51, 102, 0.05) 15px,
      rgba(255, 51, 102, 0.05) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px, /* Larger grid cells */
      rgba(255, 51, 102, 0.05) 15px,
      rgba(255, 51, 102, 0.05) 16px
    );
  opacity: 0.3;
  animation: subtle-flicker 6s ease-in-out infinite;
  z-index: 4;
}

/* Subtle computer scanning animation */
@keyframes computer-scan {
  0%, 100% { 
    opacity: 0; 
    top: 30%;
  }
  25% { 
    opacity: 0.6; 
    top: 35%;
  }
  50% { 
    opacity: 0.8; 
    top: 50%;
  }
  75% { 
    opacity: 0.6; 
    top: 65%;
  }
  100% { 
    opacity: 0; 
    top: 70%;
  }
}

/* Very subtle grid flicker */
@keyframes subtle-flicker {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* Footer section */
.scan-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  z-index: 10;
  position: relative;
}

.scan-line-footer {
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--neon-red) 0%,
    transparent 50%,
    var(--neon-red) 100%
  );
  animation: pulse-glow 2s ease-in-out infinite;
  max-width: 800px;
  width: 100%;
}

/* Animations */
@keyframes scan-sweep {
  0%, 100% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(100%); opacity: 1; }
}

@keyframes scan-line {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes scan-horizontal {
  0%, 100% { 
    opacity: 0; 
    transform: scaleX(0);
  }
  50% { 
    opacity: 0.8; 
    transform: scaleX(1);
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pulse-reticle {
  0%, 100% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.05); 
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .scan-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .scan-center {
    order: -1;
    flex: 0 0 200px;
    height: 200px;
  }
  
  .scan-left,
  .scan-right {
    max-width: none;
    max-height: 300px;
  }
  
  .scan-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .scan-grid {
    padding: 1rem;
  }
  
  .scan-left,
  .scan-right {
    padding: 1rem;
    max-height: 250px;
  }
  
  .scan-title {
    font-size: 1.5rem;
  }
  
  .scan-subtitle {
    font-size: 1rem;
  }
}.services-component {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(0, 212, 255, 0.08) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.3rem 0;
  backdrop-filter: blur(3px);
}

.services-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.services-icon {
  color: var(--neon-cyan);
  font-size: 1rem;
  margin-right: 0.5rem;
  animation: service-rotate 6s linear infinite;
}

.services-title {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0, 212, 255, 0.4);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.3rem;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(3px);
}

.service-bullet {
  color: var(--neon-cyan);
  margin-right: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-item:hover .service-bullet {
  transform: scale(1.2);
}

.service-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
}

@keyframes service-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}.session-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Session Item Styling */
.session-item {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(255, 51, 102, 0.08) 50%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 6px;
  padding: 1rem;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.session-item:hover {
  border-color: rgba(255, 51, 102, 0.6);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.15);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.session-info {
  flex: 1;
}

.session-title {
  color: var(--neon-red);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.session-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.session-status {
  color: var(--neon-green);
  font-size: 0.6rem;
  margin-left: 1rem;
  animation: status-pulse 2s ease-in-out infinite;
}

.session-subtitle {
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.session-summary {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Events Section */
.session-events {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border-left: 2px solid rgba(255, 51, 102, 0.4);
}

.event-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.event-item:hover {
  padding-left: 0.5rem;
  filter: brightness(1.2);
}

.event-icon {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  width: 1.2rem;
  text-align: center;
}

.event-text {
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Event Type Colors */
.event-combat .event-text {
  color: var(--neon-red);
}

.event-npc_encounter .event-text {
  color: var(--neon-green);
}

.event-discovery .event-text {
  color: var(--neon-cyan);
}

.event-exploration .event-text {
  color: var(--neon-amber);
}

.event-quest .event-text {
  color: var(--neon-pink);
}

.event-more {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.25rem;
  padding-left: 1.7rem;
}

/* Session Footer */
.session-footer {
  border-top: 1px solid rgba(255, 51, 102, 0.2);
  padding-top: 0.5rem;
  text-align: right;
}

.session-link {
  color: var(--neon-red);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.6);
}

/* Feed Footer */
.feed-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 51, 102, 0.2);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.05);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-all-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.link-icon {
  font-size: 1rem;
}

/* Placeholder State */
.session-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.placeholder-hint {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.placeholder-hint code {
  background: rgba(255, 51, 102, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  color: var(--neon-red);
}

/* Animations */
@keyframes status-pulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .session-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .session-status {
    margin-left: 0;
    align-self: flex-start;
  }
}html {
    overflow-x: hidden; /* Prevent horizontal scrollbar issues */
}

body {
    transition: none; /* Remove any body transitions that might cause sliding */
}

/* Add this to your existing shops.css */
.shops-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.shops-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shops-title {
    font-size: 2.5rem;
    color: var(--neon-red);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shops-subtitle {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.scan-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    animation: scan-sweep 3s ease-in-out infinite;
}

/* Shop Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Shop Cards */
.shop-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(255, 51, 102, 0.1) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shop-card:hover {
    border-color: rgba(255, 51, 102, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.2);
}

.shop-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 51, 102, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-name {
    color: var(--neon-red);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.shop-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.shop-type-general_store {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.shop-type-weapon_shop {
    background: rgba(255, 51, 102, 0.2);
    color: var(--neon-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.shop-type-tech_store {
    background: rgba(255, 171, 0, 0.2);
    color: var(--neon-amber);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

.shop-card-content {
    padding: 1.5rem;
}

.shop-owner,
.shop-location {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.label {
    color: var(--text-muted);
    font-weight: 500;
}

.value {
    color: var(--text-primary);
}

.shop-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 1rem 0;
    font-style: italic;
}

.shop-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4);
}

.shop-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 51, 102, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.shop-open-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    filter: brightness(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(255, 51, 102, 0.1) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 51, 102, 0.4);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    position: relative; /* Add this to enable absolute positioning for child */
    padding: 1.5rem 3rem 1rem 1.5rem; /* Add right padding to avoid overlap with close button */
    border-bottom: 1px solid rgba(255, 51, 102, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.modal-header h2 {
    color: var(--neon-red);
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
    font-weight: 600;
    padding-right: 2rem; /* Ensure title doesn't overlap close button */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: var(--neon-red);
    background: rgba(255, 51, 102, 0.1);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Shop Info */
.shop-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 51, 102, 0.2);
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 51, 102, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    min-width: fit-content;
    margin-right: 1rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: right;
    line-height: 1.3;
}

/* Inventory */
.inventory-title {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin: 1rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.inventory-category {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--neon-amber);
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 171, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.inventory-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Rarity Colors */
.rarity-common {
    border-left-color: #9e9e9e;
}

.rarity-uncommon {
    border-left-color: var(--neon-green);
}

.rarity-rare {
    border-left-color: var(--neon-cyan);
}

.rarity-epic {
    border-left-color: var(--neon-pink);
}

.rarity-legendary {
    border-left-color: var(--neon-amber);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.item-price {
    color: var(--neon-amber);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.item-stock {
    color: var(--text-muted);
}

.item-rarity {
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.item-tag {
    background: rgba(255, 51, 102, 0.2);
    color: var(--neon-red);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scan-sweep {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateX(-100%);
    }
    50% { 
        opacity: 1; 
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .detail-item {
        padding: 0.4rem 0;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.8rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Make the grid layout work better for 6 items (3 rows, 2 columns) */
.shop-details .detail-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 51, 102, 0.1);
    padding-right: 0.75rem;
}

.shop-details .detail-item:nth-child(even) {
    padding-left: 0.75rem;
}.social-component {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(0, 255, 136, 0.05) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.3rem 0;
}

.social-group {
  margin-bottom: 0.75rem;
}

.social-group:last-child {
  margin-bottom: 0;
}

.social-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 1.5rem;
}

.social-item {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 0.2rem 0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

/* Apply the social utility classes from base.css */
.social-ally {
  color: var(--neon-green);
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
}

.social-ally::before {
  content: "🤝";
  position: absolute;
  left: 0;
}

.social-enemy {
  color: var(--neon-red);
  text-shadow: 0 0 4px rgba(255, 51, 102, 0.6);
}

.social-enemy::before {
  content: "⚔️";
  position: absolute;
  left: 0;
}

.social-family {
  color: var(--neon-amber);
  text-shadow: 0 0 4px rgba(255, 171, 0, 0.4);
}

.social-family::before {
  content: "👨‍👩‍👧‍👦";
  position: absolute;
  left: 0;
}