/* additional_styles.css — styles for /help/ and /project/ subpages only */

/* ─── Reset & base ─────────────────────────────────────────── */
.subpage-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #5653eb, #2a88cc);
  font-family: "Inter", sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

/* ─── Layout wrapper ────────────────────────────────────────── */
.subpage-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  box-sizing: border-box;
}

/* ─── Top navigation bar ────────────────────────────────────── */
.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 100%;
}

.subpage-nav-logo {
  height: 2rem;
  width: auto;
}

.subpage-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subpage-nav-links a {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.subpage-nav-links a:hover,
.subpage-nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.subpage-nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

/* ─── Page h1 ───────────────────────────────────────────────── */
.subpage-h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

/* ─── Page subtitle / lead ──────────────────────────────────── */
.subpage-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 2.5rem;
}

/* ─── Section h2 ────────────────────────────────────────────── */
.subpage-h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 600;
  color: #ffffff;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: -0.01em;
}

/* ─── Section h3 (used inside Q&A) ─────────────────────────── */
.subpage-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #bfff37;
  margin: 0 0 0.45rem;
  line-height: 1.4;
}

/* ─── Body text ─────────────────────────────────────────────── */
.subpage-text {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.subpage-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* ─── Q&A section (help page) ───────────────────────────────── */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.qa-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.4rem 0;
}

.qa-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.qa-question {
  font-size: 1rem;
  font-weight: 600;
  color: #bfff37;
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.qa-answer {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin: 0;
}

.qa-answer a {
  color: #bfff37;
  text-decoration: underline;
  text-decoration-color: rgba(191, 255, 55, 0.4);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.qa-answer a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ─── Sections card (project page) ─────────────────────────── */
.subpage-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.subpage-card .subpage-h2 {
  margin-top: 0;
}

/* ─── Feature / bullet list ─────────────────────────────────── */
.subpage-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.subpage-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  padding-left: 1.4rem;
  position: relative;
}

.subpage-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #bfff37;
  font-size: 0.85rem;
  top: 0.05em;
}

/* ─── Internal inline links ─────────────────────────────────── */
.subpage-inline-link {
  color: #bfff37;
  text-decoration: underline;
  text-decoration-color: rgba(191, 255, 55, 0.35);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.subpage-inline-link:hover,
.subpage-inline-link:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

/* ─── CTA / Return-home button ──────────────────────────────── */
.subpage-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0c0b23;
  background: #bfff37;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.subpage-home-btn:hover,
.subpage-home-btn:focus-visible {
  background: #d9ff6e;
  opacity: 1;
  outline: none;
}

.subpage-home-btn:active {
  opacity: 0.8;
}

/* secondary / ghost variant */
.subpage-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.subpage-btn-ghost:hover,
.subpage-btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  outline: none;
}

/* ─── Button row / actions bar ──────────────────────────────── */
.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ─── Stat grid (project page numbers) ─────────────────────── */
.subpage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.subpage-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
}

.subpage-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #bfff37;
  line-height: 1.15;
  display: block;
}

.subpage-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Divider ───────────────────────────────────────────────── */
.subpage-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0;
}

/* ─── Footer ────────────────────────────────────────────────── */
.subpage-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.subpage-footer-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.6;
}

.subpage-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.subpage-footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.subpage-footer-links a:hover {
  color: #ffffff;
}

/* ─── Responsive — tablet ───────────────────────────────────── */
@media (max-width: 768px) {
  .subpage-container {
    padding: 1.5rem 1rem 4rem;
  }

  .subpage-nav {
    padding: 0.75rem 1rem;
  }

  .subpage-nav-links {
    gap: 0.5rem;
  }

  .subpage-nav-links a {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
  }

  .subpage-card {
    padding: 1.25rem 1rem;
  }

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

  .subpage-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .subpage-home-btn,
  .subpage-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Responsive — mobile ───────────────────────────────────── */
@media (max-width: 480px) {
  .subpage-h1 {
    font-size: 1.55rem;
  }

  .subpage-h2 {
    font-size: 1.15rem;
  }

  .subpage-stats {
    grid-template-columns: 1fr 1fr;
  }

  .subpage-stat-value {
    font-size: 1.3rem;
  }

  .subpage-nav-links {
    display: none;
  }
}