:root {
  --bg-dark: #07070a;
  --bg-panel: #121216;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff00ea; /* Kept for legacy */
  --neon-green: #00ff66;
  --text-main: #d1d1e0;
  --text-muted: #6b6b80;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Courier New', Courier, monospace;
}

.titan-blog-index,
.titan-article-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 1rem 2rem 1rem;
}

/* Stacked Blog Roll Architecture */
.cyber-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}
.stacked-card {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(5,5,8,0.95));
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}
.stacked-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.15), inset 0 0 10px rgba(0, 255, 102, 0.05);
  transform: translateY(-3px);
}
.stacked-img-wrap {
  flex: 0 0 350px;
}
.stacked-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
}
.stacked-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stacked-body h2 { margin-top: 0; margin-bottom: 0.5rem; }
.stacked-body h2 a { color: #fff; text-decoration: none; font-size: 1.5rem; transition: 0.3s; }
.stacked-body h2 a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
@media (max-width: 768px) {
  .stacked-card { flex-direction: column; }
  .stacked-img-wrap { flex: 0 0 auto; }
}

.glitch-title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 0px rgba(0,243,255,0.7), -2px -2px 0px rgba(0,255,102,0.7);
  margin-bottom: 2rem;
  font-weight: 900;
}

.neon-heading-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); border-bottom: 1px solid rgba(0,243,255,0.3); padding-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px; }
.neon-heading-green { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); border-bottom: 1px solid rgba(0,255,102,0.3); padding-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px; }

.cyber-carousel-container { margin-bottom: 4rem; }
.cyber-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  min-width: 320px;
  flex: 1;
  background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,15,0.95));
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.carousel-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  transform: translateY(-5px);
}

.carousel-item img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid rgba(0,243,255,0.2); }
.placeholder-img { width: 100%; height: 180px; background: repeating-linear-gradient(45deg, #111, #111 10px, #1a1a1a 10px, #1a1a1a 20px); border-bottom: 1px solid rgba(0,243,255,0.2); }
.carousel-content { 
  padding: 1.5rem; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.carousel-content h3 { margin-top: 0; margin-bottom: 0.5rem; font-family: 'Segoe UI', sans-serif; font-weight: 700; text-transform: uppercase;}
.carousel-content h3 a { color: #fff; text-decoration: none; font-size: 1.1rem; line-height: 1.4; transition: 0.3s;}
.carousel-content h3 a:hover { color: var(--neon-green); text-shadow: 0 0 8px rgba(0,255,102,0.8); }

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.neon-card {
  background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,15,0.95));
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.neon-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.15), inset 0 0 10px rgba(0, 255, 102, 0.05);
}

.neon-card img { border-radius: 8px; width: 100%; height: auto; margin-bottom: 1rem; border: 1px solid rgba(0,255,102,0.1); }
.neon-card h2 a { color: #fff; text-decoration: none; font-size: 1.5rem; transition: 0.3s; }
.neon-card h2 a:hover { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.cyber-meta { font-size: 0.85rem; color: var(--neon-cyan); margin: 0.5rem 0 1rem; display: flex; gap: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.cyber-excerpt { color: #a1a1aa; font-size: 0.95rem; line-height: 1.6; }

.cyber-pagination { margin-top: 4rem; text-align: center; }
.cyber-pagination .page-numbers { display: inline-block; padding: 0.75rem 1.5rem; margin: 0 0.25rem; background: rgba(0,0,0,0.5); border: 1px solid var(--neon-green); color: var(--neon-green); text-decoration: none; border-radius: 4px; transition: 0.3s; font-weight: bold; letter-spacing: 1px; }
.cyber-pagination .page-numbers:hover, .cyber-pagination .current { background: rgba(0,255,102,0.2); color: #fff; box-shadow: 0 0 15px rgba(0, 255, 102, 0.3); }

.article-header { border-bottom: 1px dashed rgba(0, 243, 255, 0.3); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.article-meta { font-family: monospace; font-size: 0.9rem; margin-top: 1rem; opacity: 0.8; }
.neon-text-green { color: var(--neon-green); text-shadow: 0 0 5px rgba(0, 255, 102, 0.5); }
.article-featured-image { margin: 2rem 0; text-align: center; }
.neon-glow-img { border-radius: 12px; max-width: 100%; height: auto; box-shadow: 0 0 25px rgba(0, 243, 255, 0.2); border: 1px solid rgba(0, 243, 255, 0.3); }
.cyber-tags a { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(0, 255, 102, 0.05); border: 1px solid rgba(0, 255, 102, 0.4); color: var(--neon-green); border-radius: 4px; text-decoration: none; margin-right: 0.5rem; transition: 0.3s; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;}
.cyber-tags a:hover { background: rgba(0, 255, 102, 0.2); color: #fff; box-shadow: 0 0 15px rgba(0, 255, 102, 0.3); border-color: var(--neon-green); }

.gutenberg-cyber-styles p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; color: #cbd5e1; }
.gutenberg-cyber-styles h2, .gutenberg-cyber-styles h3 { color: #fff; margin-top: 2rem; margin-bottom: 1rem; text-transform: uppercase; border-left: 3px solid var(--neon-cyan); padding-left: 15px; }

figure.wp-block-image img { border-radius: 12px; box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); border: 1px solid rgba(0, 243, 255, 0.2); transition: all 0.3s ease; }
figure.wp-block-image img:hover { box-shadow: 0 0 30px rgba(0, 243, 255, 0.3); border-color: var(--neon-cyan); }
figure.wp-block-image figcaption { text-align: center; font-family: monospace; color: var(--neon-cyan); margin-top: 0.5rem; font-size: 0.85rem; letter-spacing: 1px; }

blockquote.wp-block-quote { border-left: 4px solid var(--neon-green); padding: 1.5rem; color: #f8fafc; background: linear-gradient(90deg, rgba(0, 255, 102, 0.08) 0%, rgba(0,0,0,0) 100%); margin: 2.5rem 0; font-style: italic; border-radius: 0 8px 8px 0; }
blockquote.wp-block-quote p { margin: 0; font-size: 1.2rem; line-height: 1.6; }
blockquote.wp-block-quote cite { color: var(--neon-green); display: block; margin-top: 1rem; font-size: 0.95rem; font-family: monospace; text-transform: uppercase; letter-spacing: 1px; }

pre.wp-block-code, .wp-block-code code { background: #050508; border: 1px solid #222; border-left: 3px solid var(--neon-cyan); border-radius: 8px; color: #a5f3fc; font-family: 'Courier New', monospace; padding: 1.5rem; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); display: block; overflow-x: auto; margin: 2rem 0; font-size: 0.95rem; line-height: 1.5; }

.wp-block-button__link { background: rgba(0, 255, 102, 0.05) !important; color: var(--neon-green) !important; border: 1px solid var(--neon-green) !important; border-radius: 4px !important; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; transition: all 0.3s ease !important; padding: 0.85rem 2rem; box-shadow: 0 0 15px rgba(0, 255, 102, 0.1); }
.wp-block-button__link:hover { background: rgba(0, 255, 102, 0.2) !important; color: #fff !important; box-shadow: 0 0 25px rgba(0, 255, 102, 0.4); }

.wp-block-separator { background-color: var(--neon-cyan); opacity: 0.2; height: 1px; border: none; box-shadow: 0 0 10px var(--neon-cyan); margin: 3rem auto; width: 60%; }

ul, ol { padding-left: 2rem; margin-bottom: 2rem; color: #cbd5e1; }
li { margin-bottom: 0.75rem; line-height: 1.6; }
li::marker { color: var(--neon-cyan); font-weight: bold; }