/* ==========================================================================
   VideoDL — Shared Guide Pages Stylesheet
   Inherits all design tokens from the main index.css root variables.
   Used by: all /guides/*.html pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Import shared design tokens via CSS variables from root
   (No re-declaration — each guide page links index.css first, then guides.css)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Guide Page Layout
   -------------------------------------------------------------------------- */

.guide-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Platform Badge in Hero
   -------------------------------------------------------------------------- */

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.5s ease both;
}

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

.platform-badge.instagram  { color: var(--brand-instagram); border-color: rgba(225,48,108,0.3); background: rgba(225,48,108,0.08); }
.platform-badge.tiktok     { color: var(--brand-tiktok);    border-color: rgba(0,242,254,0.3);  background: rgba(0,242,254,0.08); }
.platform-badge.youtube    { color: var(--brand-youtube);   border-color: rgba(255,0,51,0.3);   background: rgba(255,0,51,0.08); }
.platform-badge.reddit     { color: var(--brand-reddit);    border-color: rgba(255,69,0,0.3);   background: rgba(255,69,0,0.08); }
.platform-badge.facebook   { color: var(--brand-facebook);  border-color: rgba(24,119,242,0.3); background: rgba(24,119,242,0.08); }
.platform-badge.universal  { color: var(--accent-primary);  border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.08); }

/* --------------------------------------------------------------------------
   Guide Hero Section
   -------------------------------------------------------------------------- */

.guide-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  animation: fadeInUp 0.55s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.guide-hero .answer-paragraph {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Primary CTA Button
   -------------------------------------------------------------------------- */

.btn-guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

.btn-guide-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55);
  color: #ffffff;
  text-decoration: none;
}

.btn-guide-cta svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Guide Content Section (Steps + Article)
   -------------------------------------------------------------------------- */

.guide-content {
  padding: 0 0 4rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.guide-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-card h2 .section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Step Cards
   -------------------------------------------------------------------------- */

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-body {
  flex: 1;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Why VideoDL Card
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--border-glow);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feature-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.guide-faq-item:hover {
  border-color: var(--border-medium);
}

.guide-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 1rem;
  user-select: none;
  list-style: none;
}

.guide-faq-header::-webkit-details-marker {
  display: none;
}

.guide-faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

details[open] .guide-faq-toggle {
  transform: rotate(180deg);
  background: var(--accent-primary);
  color: #fff;
}

.guide-faq-body {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.875rem;
}

/* --------------------------------------------------------------------------
   Copyright Notice
   -------------------------------------------------------------------------- */

.copyright-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: var(--status-warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.copyright-notice .notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.copyright-notice strong {
  color: var(--status-warning);
}

/* --------------------------------------------------------------------------
   Related Guides Section
   -------------------------------------------------------------------------- */

.related-guides {
  padding: 0 0 4rem;
}

.related-guides h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.related-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  text-decoration: none;
}

.related-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Bottom CTA Banner
   -------------------------------------------------------------------------- */

.guide-cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(168,85,247,0.08) 50%, rgba(236,72,153,0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.guide-cta-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.guide-cta-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Guide-specific Header Nav (shows "Guides" as active)
   -------------------------------------------------------------------------- */

.guide-header-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .guide-hero {
    padding: 3rem 0 2rem;
  }

  .guide-card {
    padding: 1.75rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .guide-hero {
    padding: 2.5rem 0 1.5rem;
    text-align: left;
  }

  .guide-hero .answer-paragraph {
    text-align: left;
  }

  .guide-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .step-card {
    gap: 1rem;
  }

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

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

  .guide-cta-banner {
    padding: 1.75rem 1.25rem;
  }

  /* Push content above mobile bottom nav */
  .guide-page main {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 1rem);
  }
}

/* --------------------------------------------------------------------------
   Responsive — Small Mobile (≤480px)
   -------------------------------------------------------------------------- */

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

  .guide-hero .answer-paragraph {
    font-size: 0.95rem;
  }

  .btn-guide-cta {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .step-body h3 {
    font-size: 0.95rem;
  }

  .step-body p {
    font-size: 0.85rem;
  }

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