/* ═══════════════════════════════════════════════════════════
   BLOG POST STYLES - Flowbotics Engineering Log
   Shared styles for all blog post pages
   ═══════════════════════════════════════════════════════════ */

/* Blog Post Root Variables - Override in each post with :root */
:root {
  --post-accent: #00e5ff;
  --post-accent-rgb: 0, 229, 255;
  --post-blue: #0096ff;
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER FIX - Better padding for blog posts
   ═══════════════════════════════════════════════════════════ */

.blog-post-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .blog-post-page .container {
    padding: 0 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   1. GLOBAL BACKGROUND - PINK & BLUE TRIANGLES (from premium.css)
   ═══════════════════════════════════════════════════════════ */

/* Top-right pink triangle */
body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 35vw;
  height: 45vh;
  background: linear-gradient(225deg,
    rgba(217, 70, 239, 0.5) 0%,
    rgba(124, 58, 237, 0.3) 40%,
    transparent 70%
  );
  background-size: 200% 200%;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  animation: gradientShift1 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -10;
}

/* Bottom-left blue triangle */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 40vw;
  height: 50vh;
  background: linear-gradient(45deg,
    rgba(101, 175, 225, 0.4) 0%,
    rgba(124, 58, 237, 0.2) 50%,
    transparent 80%
  );
  background-size: 200% 200%;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  animation: gradientShift2 30s ease-in-out infinite;
  animation-delay: -10s;
  pointer-events: none;
  z-index: -5;
}

@keyframes gradientShift1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientShift2 {
  0% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}

/* Orbs ausblenden */
.ambient-canvas,
.ambient-canvas .orb,
.ambient-canvas .orb-1,
.ambient-canvas .orb-2,
.ambient-canvas .orb-bloom {
  display: none !important;
}

/* Particles ausblenden */
.magic-particles {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   3. SCROLL PROGRESS
   ═══════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--post-accent), var(--post-blue));
  z-index: 10000;
  transition: width 0.1s ease;
}

/* ═══════════════════════════════════════════════════════════
   4. HEADER SECTION
   ═══════════════════════════════════════════════════════════ */
.sprint-header-compact {
  padding: 180px 0 60px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(var(--post-accent-rgb), 0.15);
  color: var(--post-accent);
  border: 1px solid rgba(var(--post-accent-rgb), 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.breadcrumb-nav {
  font-size: 0.85rem;
  margin: 20px 0;
  color: rgba(255,255,255,0.5);
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-nav a:hover {
  color: var(--post-accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.3);
}

.breadcrumb-current {
  color: var(--post-accent);
}

.sprint-title-main {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 16px 0;
}

.sprint-title-main span {
  color: var(--post-accent);
  text-shadow: 0 0 40px rgba(var(--post-accent-rgb), 0.3);
}

.sprint-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #fff9f9;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Author Card */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #0A0B12;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.author-card:hover {
  transform: translateY(-2px);
  border-color: var(--post-accent);
  background: #0D0E16;
}

.author-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(var(--post-accent-rgb), 0.5);
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.author-meta {
  font-size: 0.8rem;
  color: var(--post-accent);
  font-family: 'JetBrains Mono', monospace;
}

.reading-meta {
  margin-top: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
}

.meta-sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════════
   5. HERO IMAGE
   ═══════════════════════════════════════════════════════════ */
.hero-image-section {
  padding: 20px 0 40px;
  position: relative;
  z-index: 2;
}

.hero-image-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   6. ARTICLE CONTENT
   ═══════════════════════════════════════════════════════════ */
.article-section {
  padding: 20px 0 100px;
  position: relative;
  z-index: 2;
}

.article-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 0 20px;
}

/* Material Card Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 60px;
  background: #0A0B12;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.article-content .sprint-accent-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--post-accent), transparent);
  box-shadow: 0 0 15px rgba(var(--post-accent-rgb), 0.4);
}

.article-content .sprint-accent-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, var(--post-accent), rgba(var(--post-accent-rgb), 0.3));
  box-shadow: 0 0 10px rgba(var(--post-accent-rgb), 0.3);
}

/* TOC */
.toc {
  background: #0D0E16;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 32px;
  margin: 0 0 50px 0;
  border-radius: 12px;
}

.toc h4 {
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--post-accent);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

@media (max-width: 600px) {
  .toc ul { columns: 1; }
}

.toc a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin: 8px 0;
  transition: color 0.2s;
  font-size: 0.9rem;
  padding: 4px 0;
}

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

/* Typography */
.article-content h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #fff;
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
  padding-left: 16px;
  border-left: 3px solid var(--post-accent);
}

.article-content h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #fff;
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: 500;
}

.article-content p {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content strong {
  color: #fff;
  font-weight: 600;
}

.article-list {
  margin: 20px 0 30px 20px;
  padding-left: 20px;
}

.article-list li {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.article-list ol {
  margin: 20px 0 30px 20px;
  padding-left: 20px;
}

/* Quote */
.article-quote {
  border-left: 4px solid var(--post-blue);
  padding: 15px 25px;
  margin: 30px 0;
  color: #fff;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  background: rgba(var(--post-accent-rgb), 0.05);
  border-radius: 0 8px 8px 0;
}

/* Comparison Table */
.comparison-table { 
  width: 100%; 
  border-collapse: collapse; 
  margin: 30px 0; 
  font-size: 0.95rem; 
}

.comparison-table th { 
  background: #0D0E16; 
  color: #fff; 
  padding: 15px; 
  text-align: left; 
  border-bottom: 2px solid var(--post-accent); 
}

.comparison-table td { 
  padding: 15px; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  color: rgba(255,255,255,0.75); 
}

.comparison-table tr:hover { 
  background: #0D0E16; 
}

/* ═══════════════════════════════════════════════════════════
   7. INSIGHT BOXES
   ═══════════════════════════════════════════════════════════ */
.insight-box {
  display: flex;
  gap: 18px;
  padding: 25px;
  border-radius: 12px;
  margin: 35px 0;
  font-family: 'Inter', sans-serif;
  background: #0D0E16;
  border: 1px solid rgba(var(--post-accent-rgb), 0.2);
}

.insight-box.tech {
  border-color: rgba(var(--post-accent-rgb), 0.3);
}

.insight-box.warning {
  border-color: rgba(239, 68, 68, 0.2);
}

.insight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.insight-content {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.insight-content strong {
  color: var(--post-accent);
}

.insight-box.warning .insight-content strong {
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════
   8. TERMINAL BLOCKS
   ═══════════════════════════════════════════════════════════ */
.terminal-block {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.terminal-block.inline {
  max-width: 400px;
}

.terminal-header {
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.copy-btn {
  background: rgba(var(--post-accent-rgb), 0.1);
  border: 1px solid rgba(var(--post-accent-rgb), 0.3);
  color: var(--post-accent);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(var(--post-accent-rgb), 0.2);
}

.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.terminal-body.mono {
  color: var(--post-accent);
}

.terminal-body code {
  color: var(--post-accent);
  font-weight: 600;
}

.terminal-success {
  color: #4ade80;
}

/* Code Block */
.code-block {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-comment { color: #6272a4; }
.code-keyword { color: #ff79c6; }
.code-function { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-number { color: #bd93f9; }
.code-success { color: #50fa7b; }

.code-inline code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.3);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--post-accent);
  font-size: 0.9rem;
}

/* Article Note */
.article-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: -15px;
  margin-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════
   9. CTA, SHARE & NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.article-cta {
  margin: 60px auto 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  background: #0D0E16;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.article-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 20px;
}

.share-section {
  max-width: 800px;
  margin: 50px auto 0;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.share-section p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
}

.back-link {
  max-width: 800px;
  margin: 30px auto 0;
  text-align: center;
}

.back-link a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.back-link a:hover {
  color: var(--post-accent);
}

/* ═══════════════════════════════════════════════════════════
   10. BACK TO TOP
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--post-accent-rgb), 0.1);
  border: 1px solid rgba(var(--post-accent-rgb), 0.3);
  color: var(--post-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: rgba(var(--post-accent-rgb), 0.2);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   11. FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  padding: 50px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--post-accent);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ═══════════════════════════════════════════════════════════
   12. FIGURES
   ═════════════════════════════════════════════════════════