/* css/help.css */

/* --- Page Layout --- */
.help-page {
  /* Scales padding based on viewport width */
  padding-top: var(--top-gap, 64px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

/* --- Hero Section --- */
.help-hero {
  text-align: center;
  padding: clamp(40px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--border-subtle, #262626);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.page-title {
  font-family: var(--font-ui, sans-serif);
  font-size: clamp(32px, 6vw, 56px); /* Responsive Typography */
  font-weight: 700;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary, #666);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 16px;
}

/* --- FAQ Layout --- */
.faq-section {
  padding: 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  max-width: 720px; /* Optimal reading width */
  margin: 0 auto;
  gap: clamp(48px, 8vw, 80px); /* Separation between "Basics" and "Security" */
}

/* Group Titles */
.group-title {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted, #808080);
  margin-bottom: 24px;
  padding-left: 8px; /* Visual alignment with FAQ items */
}

/* --- Accordion Items --- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle, #262626);
  transition: background-color 0.2s ease;
}

/* Optional: Slight hover effect on the whole item */
.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* The Question (Clickable) */
.faq-item summary {
  list-style: none; /* Removes default triangle */
  cursor: pointer;
  padding: 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 500;
  color: var(--text-primary, #E0E0E0);
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* Remove default marker in Webkit/Chrome */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #fff;
}

/* Plus Icon Styling */
.faq-item summary .icon {
  color: var(--text-secondary, #666);
  margin-left: 16px;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0; /* Prevents icon from squishing */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotate icon when open */
.faq-item[open] summary .icon {
  transform: rotate(45deg);
  color: var(--text-primary, #E0E0E0);
}

/* The Answer */
.faq-item .answer {
  padding: 0 8px 32px 8px;
  color: var(--text-secondary, #B8B8B8);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  max-width: 65ch; /* Comfortable reading character length */
  animation: slideDown 0.3s ease-out;
}

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

/* --- Contact / Bug Report --- */
.contact-section {
  margin-top: clamp(80px, 12vw, 140px);
  text-align: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 48px);
  max-width: 500px;
  margin: 0 auto;
}

.contact-card h3 {
  font-family: var(--font-mono, monospace);
  color: var(--text-primary, #E0E0E0);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-secondary, #666);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-card strong {
  color: var(--text-primary, #E0E0E0);
  font-weight: 600;
}

.contact-link {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary, #E0E0E0);
  border: 1px solid var(--border-subtle, #262626);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-primary, #E0E0E0);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.site-footer { padding-bottom: var(--s-48); }
.footer-links { display: flex; gap: var(--s-18); flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); opacity: 0.8; }
.footer-links a:hover { color: var(--text-bright); opacity: 1; }
.footer-note { margin-top: 10px; color: var(--text-muted); font-size: 12px; opacity: 0.6; }

/* --- Responsive Media Queries --- */

/* Mobile Tweaks */
@media (max-width: 600px) {
  /* Tighter padding on mobile items */
  .faq-item summary {
    padding: 20px 0; 
  }
  
  .faq-item .answer {
    padding: 0 0 24px 0;
  }
  
  .group-title {
    padding-left: 0;
  }
  
  /* Simplify card look on very small screens */
  .contact-card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .help-page {
    padding-bottom: 160px;
  }
  
  .faq-item summary {
    padding: 28px 12px;
  }
}