/**
 * Elite+ Guide Premium Styles
 * ═══════════════════════════════════════════════════════════════════════════
 * Enhanced premium styling for guides, tutorials, and long-form content
 * Builds on top of guide-content.css with premium effects and animations
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════
   GUIDE PAGE LAYOUT (sidebar + article grid)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUIDE HERO (content wrapper, breadcrumb, subtitle)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.guide-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-breadcrumb a:hover { color: #c084fc; }

.guide-breadcrumb-separator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}

.guide-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0 auto 32px;
}

.guide-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOC HEADER (icon + label variant)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-toc-icon { font-size: 16px; }

.guide-toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
}

.guide-toc-list a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: rgba(168, 85, 247, 0.5);
}

.guide-toc-list a.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border-left-color: #a855f7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE & VIDEO CONTAINERS (HTML variant classes)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-image-container {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.guide-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-image-caption {
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-video-container {
  position: relative;
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-video-caption {
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NUMBERED LIST (variant)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-numbered-list {
  list-style: none;
  counter-reset: guide-ol;
  padding: 0;
  margin: 1.5rem 0;
}

.guide-numbered-list li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  line-height: 1.7;
  counter-increment: guide-ol;
}

.guide-numbered-list li::before {
  content: counter(guide-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHOR BOX (HTML variant used in getting-started)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  margin: 3rem 0;
}

.guide-author-box .guide-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  flex-shrink: 0;
}

.guide-author-box .guide-author-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.guide-author-box .guide-author-title {
  font-size: 13px;
  color: #a5b4fc;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-author-box .guide-author-bio {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 640px) {
  .guide-author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RELATED GUIDES (HTML variant classes)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-related-category {
  font-size: 11px;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.guide-related-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.35;
}

.guide-related-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.guide-related-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKLIST HEADER & CHECK (HTML variant classes)
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-checklist-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.guide-checklist-check.checked {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
}

/* Code block label variant */
.guide-code-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Comparison item content padding */
.guide-comparison-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.guide-comparison-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.guide-comparison-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.guide-comparison-item ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.guide-comparison-item li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUIDE PAGE HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-hero {
  position: relative;
  padding: 160px 24px 80px;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(99, 102, 241, 0.1), transparent 50%);
  pointer-events: none;
}

.guide-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.guide-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.guide-category::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  animation: categoryPulse 2s ease-in-out infinite;
}

@keyframes categoryPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.guide-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
}

.guide-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 32px;
}

.guide-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc-list li {
  margin-bottom: 8px;
}

.guide-toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.guide-toc-list a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: rgba(168, 85, 247, 0.5);
}

.guide-toc-list a.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border-left-color: #a855f7;
}

/* Nested TOC */
.guide-toc-list ul {
  list-style: none;
  padding-left: 16px;
  margin-top: 4px;
}

.guide-toc-list ul a {
  font-size: 13px;
  padding: 6px 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CALLOUT BOXES
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-callout {
  position: relative;
  padding: 24px 24px 24px 64px;
  margin: 2rem 0;
  border-radius: 16px;
  border: 1px solid;
  overflow: hidden;
}

.guide-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.guide-callout-icon {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 8px;
}

.guide-callout-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-callout-content {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.guide-callout-content p:last-child {
  margin-bottom: 0;
}

/* Tip Callout */
.guide-callout.tip {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.04));
  border-color: rgba(34, 197, 94, 0.25);
}

.guide-callout.tip::before {
  background: linear-gradient(180deg, #22c55e, #10b981);
}

.guide-callout.tip .guide-callout-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.guide-callout.tip .guide-callout-title {
  color: #4ade80;
}

/* Note/Info Callout */
.guide-callout.note {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.04));
  border-color: rgba(59, 130, 246, 0.25);
}

.guide-callout.note::before {
  background: linear-gradient(180deg, #3b82f6, #6366f1);
}

.guide-callout.note .guide-callout-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.guide-callout.note .guide-callout-title {
  color: #60a5fa;
}

/* Warning Callout */
.guide-callout.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 179, 8, 0.04));
  border-color: rgba(245, 158, 11, 0.25);
}

.guide-callout.warning::before {
  background: linear-gradient(180deg, #f59e0b, #eab308);
}

.guide-callout.warning .guide-callout-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.guide-callout.warning .guide-callout-title {
  color: #fbbf24;
}

/* Key/Important Callout */
.guide-callout.key {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(139, 92, 246, 0.04));
  border-color: rgba(168, 85, 247, 0.25);
}

.guide-callout.key::before {
  background: linear-gradient(180deg, #a855f7, #8b5cf6);
}

.guide-callout.key .guide-callout-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.guide-callout.key .guide-callout-title {
  color: #c084fc;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CODE BLOCKS
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-code-block {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-code-language {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guide-code-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-code-copy:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-code-copy.copied {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.guide-code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.guide-code-block code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

/* Line numbers */
.guide-code-block.with-lines pre {
  counter-reset: line;
}

.guide-code-block.with-lines .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2em;
  margin-right: 1.5em;
  text-align: right;
  color: rgba(255, 255, 255, 0.25);
  -webkit-user-select: none;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP-BY-STEP GUIDE
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-steps {
  position: relative;
  margin: 2.5rem 0;
}

.guide-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.1));
}

.guide-step {
  position: relative;
  padding-left: 80px;
  padding-bottom: 40px;
}

.guide-step:last-child {
  padding-bottom: 0;
}

.guide-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.1));
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: #c084fc;
  z-index: 1;
}

.guide-step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.guide-step-content {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.guide-step-content p {
  margin-bottom: 1rem;
}

.guide-step-content p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTERACTIVE CHECKLIST
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-checklist {
  margin: 2rem 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.guide-checklist-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-checklist-progress {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.guide-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.guide-checklist-item:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.guide-checklist-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.guide-checklist-item.checked .guide-checklist-checkbox {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
}

.guide-checklist-checkbox svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.guide-checklist-item.checked .guide-checklist-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.guide-checklist-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.guide-checklist-item.checked .guide-checklist-text {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM IMAGE/MEDIA CONTAINERS
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-image {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

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

.guide-image-caption {
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Image with zoom effect */
.guide-image.zoomable {
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.guide-image.zoomable:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Side-by-side comparison */
.guide-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2rem 0;
}

.guide-comparison-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-comparison-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guide-comparison-item.before .guide-comparison-label {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.guide-comparison-item.after .guide-comparison-label {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO EMBED
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-video {
  position: relative;
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.guide-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.9), rgba(9, 9, 11, 0.7));
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-video-overlay:hover {
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.85), rgba(9, 9, 11, 0.65));
}

.guide-video-play {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  margin-bottom: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-video-overlay:hover .guide-video-play {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.guide-video-play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
  fill: white;
}

.guide-video-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM QUIZ/KNOWLEDGE CHECK
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-quiz {
  margin: 2.5rem 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
}

.guide-quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.guide-quiz-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  font-size: 24px;
}

.guide-quiz-title {
  font-size: 20px;
  font-weight: 700;
}

.guide-quiz-question {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}

.guide-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-quiz-option {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-quiz-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-quiz-option.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c084fc;
}

.guide-quiz-option.correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.guide-quiz-option.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.guide-quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.guide-quiz-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.guide-quiz-feedback.correct {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.guide-quiz-feedback.incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHOR BOX / CREDITS
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin: 3rem 0;
}

.guide-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.guide-author-info {
  flex: 1;
}

.guide-author-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.guide-author-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.guide-author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RELATED GUIDES / NEXT STEPS
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-related {
  margin: 4rem 0 2rem;
}

.guide-related-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-related-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.guide-related-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.guide-related-card-category {
  font-size: 12px;
  font-weight: 600;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.guide-related-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-related-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  flex: 1;
}

.guide-related-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.guide-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .guide-hero {
    padding: 120px 16px 60px;
  }
  
  .guide-steps::before {
    left: 20px;
  }
  
  .guide-step {
    padding-left: 64px;
  }
  
  .guide-step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-author {
    flex-direction: column;
    text-align: center;
  }
  
  .guide-comparison {
    grid-template-columns: 1fr;
  }
  
  .guide-toc {
    position: static;
    max-height: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .guide-progress,
  .guide-toc,
  .guide-video-overlay,
  .guide-checklist-checkbox {
    display: none !important;
  }
  
  .guide-content,
  .article-body {
    max-width: 100%;
    color: #000;
  }
  
  .guide-callout {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .guide-code-block {
    background: #f5f5f5;
    border: 1px solid #ddd;
  }
}
