:root {
  --bg-dark: #07070a;
  --bg-panel: #121216;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff00ea;
  --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: var(--bg-panel);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.stacked-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 0, 234, 0.2), inset 0 0 10px rgba(255, 0, 234, 0.1);
}
.stacked-img-wrap {
  flex: 0 0 350px;
}
.stacked-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #333;
}
.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; }
.stacked-body h2 a:hover { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
@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(255,0,234,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 var(--neon-cyan); padding-bottom: 0.5rem; text-transform: uppercase; }
.neon-heading-pink { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); border-bottom: 1px solid var(--neon-pink); padding-bottom: 0.5rem; text-transform: uppercase; }

.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: 300px;
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

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

.carousel-item img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #333; }
.placeholder-img { width: 100%; height: 200px; background: #222; border-bottom: 1px solid #333; }
.carousel-content { 
  padding: 1.5rem; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.carousel-content h3 { margin-top: 0; margin-bottom: 0.5rem; }
.carousel-content h3 a { color: #fff; text-decoration: none; font-size: 1.2rem; }
.carousel-content h3 a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

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

.neon-card {
  background: var(--bg-panel);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1rem;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neon-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 0, 234, 0.2), inset 0 0 10px rgba(255, 0, 234, 0.1);
}

.neon-card img { border-radius: 8px; width: 100%; height: auto; margin-bottom: 1rem; }
.neon-card h2 a { color: #fff; text-decoration: none; font-size: 1.5rem; }
.neon-card h2 a:hover { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
.cyber-meta { font-size: 0.85rem; color: var(--neon-green); margin: 0.5rem 0 1rem; display: flex; gap: 1rem; text-transform: uppercase; }
.cyber-excerpt { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; }

.cyber-pagination { margin-top: 3rem; text-align: center; }
.cyber-pagination .page-numbers { display: inline-block; padding: 0.5rem 1rem; margin: 0 0.25rem; background: var(--bg-panel); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); text-decoration: none; border-radius: 4px; transition: 0.3s; }
.cyber-pagination .page-numbers:hover, .cyber-pagination .current { background: var(--neon-cyan); color: #000; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); }

.article-header { border-bottom: 1px dashed #333; 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.3); border: 1px solid rgba(0, 243, 255, 0.5); }
.cyber-tags a { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(255, 0, 234, 0.1); border: 1px solid var(--neon-pink); color: var(--neon-pink); border-radius: 4px; text-decoration: none; margin-right: 0.5rem; transition: 0.3s; font-size: 0.8rem; text-transform: uppercase; }
.cyber-tags a:hover { background: var(--neon-pink); color: #000; box-shadow: 0 0 10px var(--neon-pink); }

.gutenberg-cyber-styles p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.gutenberg-cyber-styles h2, .gutenberg-cyber-styles h3 { color: #fff; margin-top: 2rem; margin-bottom: 1rem; }

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

blockquote.wp-block-quote { border-left: 4px solid var(--neon-cyan); padding: 1rem 1.5rem; color: #fff; background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, rgba(0,0,0,0) 100%); margin: 2rem 0; font-style: italic; border-radius: 0 8px 8px 0; }
blockquote.wp-block-quote p { margin: 0; }
blockquote.wp-block-quote cite { color: var(--neon-cyan); display: block; margin-top: 0.5rem; font-size: 0.9rem; font-family: monospace; }

pre.wp-block-code, .wp-block-code code { background: #050505; border: 1px solid #333; border-radius: 8px; color: var(--neon-green); font-family: 'Courier New', monospace; padding: 1.2rem; box-shadow: inset 0 0 15px rgba(0, 255, 102, 0.05); display: block; overflow-x: auto; margin: 2rem 0; }

.wp-block-button__link { background: transparent !important; color: var(--neon-pink) !important; border: 1px solid var(--neon-pink) !important; border-radius: 4px !important; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; transition: all 0.3s ease !important; padding: 0.75rem 1.5rem; box-shadow: 0 0 10px rgba(255, 0, 234, 0.2); }
.wp-block-button__link:hover { background: var(--neon-pink) !important; color: #000 !important; box-shadow: 0 0 20px rgba(255, 0, 234, 0.6); }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--neon-pink); }