/* ====================================
   Content Pages: Guide & Use Cases
   12scribe — dark theme
   ==================================== */

/* ---- Layout ---- */
.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Breadcrumbs (inline, in content column) ---- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 4px;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: #a78bfa; }
.breadcrumbs .sep {
  opacity: 0.3;
  font-size: 0.7rem;
}
.breadcrumbs .current {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}

/* ---- Section Header ---- */
.content-header {
  text-align: center;
  padding: 72px 0 40px;
}
.content-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.content-header p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ====================================
   Guide Listing — grouped by category
   ==================================== */
.guide-category-section {
  margin-bottom: 40px;
}
.guide-category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guide-category-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin: 0;
}
.guide-category-heading .cat-count {
  font-size: 0.75rem;
  color: #666;
  font-weight: 600;
}

/* Article list items (compact) */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.guide-list-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(108,92,231,0.2);
}
.guide-list-item .gli-body {
  flex: 1;
  min-width: 0;
}
.guide-list-item .gli-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  margin-bottom: 2px;
}
.guide-list-item .gli-excerpt {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-list-item .gli-meta {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-list-item .gli-arrow {
  color: #555;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.guide-list-item:hover .gli-arrow {
  color: #a78bfa;
  transform: translateX(3px);
}

/* ====================================
   Article Cards (grid — for related)
   ==================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.article-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108,92,231,0.3);
}
.article-card .card-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(108,92,231,0.15);
  color: #a78bfa;
  margin-bottom: 10px;
  align-self: flex-start;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-card .card-excerpt {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.article-card .card-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: #666;
}

/* ====================================
   Use Case Cards
   ==================================== */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.uc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 0;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, border-color 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.uc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108,92,231,0.3);
}
.uc-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.uc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.uc-card:hover .uc-card-image img {
  transform: scale(1.05);
}
.uc-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.uc-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.uc-card .uc-excerpt { color: #94a3b8; font-size: 0.88rem; line-height: 1.5; margin-bottom: 16px; }
.uc-card .uc-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-card .uc-keyword {
  background: rgba(255,255,255,0.06);
  color: #aaa;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
}

/* ====================================
   Article Page — Header
   ==================================== */
.article-hero {
  padding: 12px 0 28px;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
}
.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
}
.article-hero .article-meta .cat-pill {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(108,92,231,0.15);
  color: #a78bfa;
}

/* ---- Article Images ---- */
.article-hero-image {
  margin: 0 0 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-scene-image {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.article-scene-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================================
   Article Layout — Two columns
   ==================================== */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px; /* top padding for fixed nav */
  align-items: start;
}
.article-main {
  max-width: 720px;
  min-width: 0;
}

/* ---- TOC Sidebar (sticky, left) ---- */
.toc-sidebar {
  position: sticky;
  top: 80px;
  padding-top: 8px;
}
.toc-sidebar h4 {
  color: #555;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.toc-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(255,255,255,0.06);
}
.toc-sidebar li {
  margin-bottom: 0;
}
.toc-sidebar a {
  display: block;
  padding: 5px 0 5px 14px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.toc-sidebar a:hover {
  color: #cbd5e1;
}
.toc-sidebar a.active {
  color: #a78bfa;
  border-left-color: #a78bfa;
}

/* Inline TOC (used in use-cases) */
.toc {
  display: block;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
/* Mobile-only TOC (hidden on desktop, shown <1024px) */
.toc-mobile {
  display: none;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.toc h4,
.toc-mobile h4 {
  color: #555;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.toc ul,
.toc-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(108,92,231,0.2);
  padding-left: 14px;
}
.toc li,
.toc-mobile li { margin-bottom: 4px; }
.toc a,
.toc-mobile a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.toc a:hover,
.toc-mobile a:hover { color: #a78bfa; }

/* ====================================
   Article Content — Typography
   ==================================== */
.article-content {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.8;
  padding-bottom: 40px;
}
.article-content h2 {
  color: white;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-top: 12px;
}
.article-content h2:first-child { margin-top: 0; padding-top: 0; }
.article-content h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 10px;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: revert;
}
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-content strong {
  color: white;
  font-weight: 600;
}
.article-content em {
  color: #94a3b8;
  font-style: italic;
}
.article-content a {
  color: #a78bfa;
  text-decoration: underline;
  text-decoration-color: rgba(167,139,250,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-content a:hover {
  text-decoration-color: #a78bfa;
}
.article-content blockquote {
  border-left: 3px solid #6c5ce7;
  padding: 16px 20px;
  margin: 24px 0;
  background: rgba(108,92,231,0.08);
  border-radius: 0 10px 10px 0;
  color: #94a3b8;
  font-style: italic;
}

/* ---- Callout Blocks ---- */
.callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.callout strong {
  color: white;
}
.callout a {
  color: #a78bfa;
  text-decoration: underline;
  text-decoration-color: rgba(167,139,250,0.3);
  text-underline-offset: 3px;
}
/* Tip */
.callout.tip {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.18);
}
.callout.tip strong { color: #4ade80; }
/* Warning */
.callout.warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.18);
}
.callout.warning strong { color: #fbbf24; }
/* Info */
.callout.info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
}
.callout.info strong { color: #60a5fa; }

/* ---- Steps (numbered) ---- */
.steps {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
}
.step {
  display: flex;
  gap: 16px;
  position: relative;
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a78bfa);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-line {
  width: 2px;
  flex: 1;
  background: rgba(108,92,231,0.2);
  min-height: 20px;
}
.step:last-child .step-line { display: none; }
.step-content {
  padding-bottom: 24px;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: white;
}
.step-content p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ====================================
   Use Case — Hero Stats (Before → After)
   ==================================== */
.uc-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}
.uc-stat {
  text-align: center;
  flex: 1;
  max-width: 280px;
}
.uc-stat-big {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  line-height: 1.2;
}
.uc-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}
.uc-stat-arrow {
  font-size: 1.5rem;
  color: #a78bfa;
  flex-shrink: 0;
  font-weight: 700;
}

/* ====================================
   Use Case — Feature Cards
   ==================================== */
.uc-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.uc-feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.uc-feature:hover {
  border-color: rgba(108,92,231,0.25);
}
.uc-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.uc-feature p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}
.uc-feature-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s;
}
.uc-feature-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ====================================
   Use Case — FAQ Accordion
   ==================================== */
.uc-faq {
  margin: 40px 0;
}
.uc-faq h2 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.uc-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.uc-faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.uc-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: #666;
  transition: transform 0.2s;
}
.uc-faq-item[open] summary::after {
  content: '−';
  color: #a78bfa;
}
.uc-faq-item .faq-answer {
  padding: 0 0 16px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}
.uc-faq-item .faq-answer p {
  margin: 0;
}

/* ====================================
   CTA Banner
   ==================================== */
.content-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(108,92,231,0.18) 0%, rgba(0,210,255,0.08) 100%);
  border: 1px solid rgba(108,92,231,0.25);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
}
.content-cta::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.content-cta h3 {
  position: relative;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.content-cta p {
  position: relative;
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.content-cta .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6c5ce7, #a78bfa);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(108,92,231,0.3);
}
.content-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.45);
}
.content-cta .btn svg {
  width: 20px;
  height: 20px;
}

/* ====================================
   Related Section
   ==================================== */
.related-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 60px;
}
.related-section h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar { display: none; }
  .toc-mobile { display: block; }
  .article-hero {
    margin-left: 0;
    max-width: none;
  }
  .article-header-wrap { max-width: 760px; }
}
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .uc-hero-stats { flex-direction: column; gap: 12px; padding: 24px 16px; }
  .uc-stat-arrow { transform: rotate(90deg); }
  .uc-features { grid-template-columns: 1fr; }
  .content-header { padding: 56px 0 28px; }
  .article-hero { padding: 28px 0 20px; }
  .guide-list-item .gli-excerpt { display: none; }
  .content-cta { padding: 32px 20px; }
  .article-layout { padding-top: 68px; }
}
@media (max-width: 480px) {
  .guide-list-item { padding: 12px; }
}
