/**
 * PHL789 Functional Gateway Guide Styles
 * Mobile-First, Accessible, Anti-Template Architecture
 */

.guide-wrapper {
  padding: 14px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.guide-breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
}

.guide-breadcrumb span {
  opacity: 0.5;
}

.guide-h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFF;
  margin-bottom: 12px;
}

.guide-h1 span {
  color: var(--accent-gold);
}

.viewport-hook-box {
  background: linear-gradient(135deg, rgba(36, 12, 19, 0.95) 0%, rgba(20, 5, 9, 0.9) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.viewport-hook-box p {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #FFF;
}

.viewport-hook-box strong {
  color: var(--accent-gold);
}

/* Headings: Never start with numbers */
.guide-h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-h2 .h2-bar {
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.guide-h3 {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 16px 0 8px;
}

.guide-p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* 3-Sentence Screen Limit Callout */
.step-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: var(--border);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.step-badge {
  background: rgba(211, 18, 18, 0.2);
  border: 1px solid var(--primary);
  color: #FF7B7B;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Dual CTA Blocks */
.dual-cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}

.btn-dual-action {
  background: linear-gradient(180deg, #FFE66D 0%, #FFBE1A 50%, #D49300 100%);
  color: #120306;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 10px 8px;
  text-align: center;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255, 190, 26, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-dual-action:active {
  transform: scale(0.97);
}

.btn-dual-guide {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-dual-guide:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Mobile-First 2-Column Key-Value Tables */
.keyval-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 0.8125rem;
}

.keyval-table th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.keyval-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  line-height: 1.4;
}

.keyval-table tr:last-child td {
  border-bottom: none;
}

.keyval-table td strong {
  color: #FFF;
}

/* Troubleshooting Card */
.troubleshoot-card {
  background: rgba(211, 18, 18, 0.08);
  border: 1px solid rgba(211, 18, 18, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.troubleshoot-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FF7B7B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.troubleshoot-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* FAQ Accordion Styling */
.faq-wrap {
  margin: 18px 0 20px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: var(--accent-gold);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-card .faq-answer {
  display: none;
  padding: 0 14px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
  padding-top: 8px;
}

.faq-card.open .faq-answer {
  display: block;
}
