/* ============================================
   Guide Pages — Supplementary Styles
   Extends styles.css (loaded first). No duplication.
   ============================================ */

/* ---- Guide Hero ---- */
.guide-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.guide-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(120, 0, 255, 0.06) 0%, transparent 60%);
}

.guide-hero .container {
  position: relative;
  z-index: 1;
}

.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.guide-hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-hero .guide-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 24px;
}

/* ---- Tech Pills ---- */
.guide-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.guide-tech span {
  padding: 5px 14px;
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Button Group ---- */
.guide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.guide-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.guide-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--bg-primary);
}

.guide-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.guide-actions .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ---- Section Heading (inside guide) ---- */
.guide-section-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---- Flow Diagram ---- */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px 24px;
}

.flow-step {
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: center;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  padding: 0 6px;
  flex-shrink: 0;
  user-select: none;
}

/* ---- Step Cards ---- */
.steps-grid {
  display: grid;
  gap: 20px;
}

.step-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
}

.step-number {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Try-it Box (inside step cards) ---- */
.try-it-box {
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.try-it-box strong {
  color: var(--accent);
  font-weight: 600;
}

.try-it-box code {
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text-primary);
}

/* ---- Feature Grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  transition: border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  border-color: var(--glass-hover-border);
  background: var(--glass-hover-bg);
}

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card .feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- Part Label (for multi-part walkthroughs) ---- */
.part-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---- Info Box (credentials, notes) ---- */
.info-box {
  padding: 20px 24px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius);
  margin-top: 20px;
}

.info-box h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.info-box p,
.info-box li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: 3px 0;
}

.info-box code {
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text-primary);
}

/* ---- Flow Divider ---- */
.flow-divider {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  color: var(--accent);
  font-size: 1.4rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .guide-hero {
    padding: 120px 0 48px;
  }

  .flow-diagram {
    flex-direction: column;
    gap: 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .step-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .guide-hero h1 {
    font-size: 1.8rem;
  }

  .guide-actions {
    flex-direction: column;
  }

  .guide-actions .btn-primary,
  .guide-actions .btn-secondary {
    text-align: center;
    justify-content: center;
  }
}
