/* ==========================================================================
   Capzo Guide — High-End Modern Cyber-Slate Design System (v2)
   Responsive, Interactive Step Cards, Sticky Floating Navigation
   ========================================================================== */

:root {
  --guide-bg: #090b10;
  --guide-card-bg: rgba(16, 20, 27, 0.75);
  --guide-card-hover: rgba(22, 28, 38, 0.95);
  --guide-border: rgba(34, 45, 61, 0.7);
  --guide-border-hover: rgba(45, 212, 191, 0.45);
  --guide-accent: #2dd4bf;
  --guide-accent-hover: #5eead4;
  --guide-accent-soft: rgba(45, 212, 191, 0.12);
  --guide-text-main: #f1f5f9;
  --guide-text-lead: #cbd5e1;
  --guide-text-muted: #94a3b8;
  --guide-glass-border: rgba(255, 255, 255, 0.08);
  --guide-glow: rgba(45, 212, 191, 0.16);
  --guide-shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --guide-shadow-hover: 0 20px 40px -8px rgba(45, 212, 191, 0.18);
}

.guide-page {
  position: relative;
  background-color: var(--guide-bg);
  color: var(--guide-text-main);
  padding: 36px 0 90px;
  min-height: 85vh;
  overflow-x: hidden;
}

/* Ambient Backdrop Glow */
.guide-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, var(--guide-glow) 0%, rgba(9, 11, 16, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.guide-page .container {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

/* ==========================================================================
   Guide Header / Hero
   ========================================================================== */
.guide-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--guide-accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--guide-accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.guide-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--guide-accent);
  box-shadow: 0 0 10px var(--guide-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

.guide-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-header-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: var(--guide-text-lead);
  margin: 0 auto 32px;
  max-width: 720px;
}

/* Quick Path Selector Grid */
.guide-quick-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.guide-quick-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}

.guide-quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--guide-accent);
  box-shadow: 0 10px 25px rgba(45, 212, 191, 0.12);
}

.guide-quick-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guide-quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--guide-accent-soft);
  color: var(--guide-accent);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.guide-quick-tag {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--guide-text-muted);
}

.guide-quick-card strong {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
}

.guide-quick-card span {
  font-size: 0.82rem;
  color: var(--guide-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Sticky Floating Tabs Navigation
   ========================================================================== */
.guide-nav-wrapper {
  position: sticky;
  top: 76px;
  z-index: 30;
  margin: 0 auto 48px;
  max-width: 680px;
  padding: 0 12px;
}

.guide-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(16, 20, 27, 0.85);
  border: 1px solid var(--guide-border);
  border-radius: 9999px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  color: var(--guide-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guide-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.guide-tab.active {
  background: var(--guide-accent);
  color: #042f2e;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.35);
}

/* ==========================================================================
   Guide Content Sections
   ========================================================================== */
.guide-section {
  scroll-margin-top: 140px;
  margin-bottom: 64px;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.guide-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--guide-accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.guide-section-head {
  margin-bottom: 28px;
  text-align: right;
  position: relative;
}

.guide-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--guide-accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--guide-accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-path-badge.badge-telegram {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.guide-path-badge.badge-plugin {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

.guide-path-badge.badge-studio {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.guide-section-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.guide-section-head p {
  font-size: 1.02rem;
  color: var(--guide-text-lead);
  margin: 0;
  line-height: 1.7;
}

/* Requirements Pills */
.guide-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.req-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--guide-glass-border);
  color: var(--guide-text-lead);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ==========================================================================
   Step Cards Layout
   ========================================================================== */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.guide-step-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(16, 20, 27, 0.9);
  border: 1px solid var(--guide-border);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.guide-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--guide-border-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.guide-step-visual {
  background: #11141b;
  border-bottom: 1px solid var(--guide-border);
  overflow: hidden;
  position: relative;
}

.guide-step-frame {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--guide-accent-soft);
  color: var(--guide-accent);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.guide-step-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.45;
}

.guide-step-body p {
  font-size: 0.92rem;
  color: var(--guide-text-muted);
  line-height: 1.7;
  margin: 0 0 12px;
  flex-grow: 1;
}

.guide-step-tip {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.08);
  border-right: 3px solid var(--guide-accent);
  font-size: 0.85rem !important;
  color: #e2e8f0 !important;
  line-height: 1.6;
  margin: 0 !important;
}

.guide-step-tip strong {
  color: var(--guide-accent);
}

/* Call to Action Inside Sections */
.guide-section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--guide-glass-border);
  margin-top: 10px;
}

.guide-footnote {
  font-size: 0.9rem;
  color: var(--guide-text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--guide-glass-border);
  margin-top: 10px;
}

.guide-footnote a {
  color: var(--guide-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.guide-section--faq {
  border-color: rgba(45, 212, 191, 0.25);
}

.faq-list--guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list--guide .faq-item {
  background: rgba(16, 20, 27, 0.9);
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-list--guide .faq-item:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.faq-list--guide .faq-item summary {
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-list--guide .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list--guide .faq-item summary::after {
  content: "＋";
  color: var(--guide-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-list--guide .faq-item[open] summary::after {
  content: "—";
}

.faq-list--guide .faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--guide-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================================
   SEO Hub Section & Final Action
   ========================================================================== */
.guide-section--related {
  margin-bottom: 40px;
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.seo-hub-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(16, 20, 27, 0.85);
  border: 1px solid var(--guide-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.seo-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--guide-accent);
}

.seo-hub-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.seo-hub-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--guide-text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .guide-header h1 {
    font-size: 1.85rem;
  }

  .guide-quick-paths {
    grid-template-columns: 1fr 1fr;
  }

  .guide-nav-wrapper {
    top: 68px;
    padding: 0 4px;
  }

  .guide-tabs {
    padding: 4px;
  }

  .guide-tab {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .guide-section {
    padding: 24px 18px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-section-cta {
    flex-direction: column;
  }

  .guide-section-cta .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .guide-quick-paths {
    grid-template-columns: 1fr;
  }
}
