/* ==========================================================================
   Static pages + help content styles
   Extracted from style.css; imported by all pages that show the help modal
   or standalone static pages (/how-to-play, /tos, /privacy, /blog).
   ========================================================================== */

/* ---------- Tab nav (tablist) ---------- */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab-nav-item {
  flex: 1;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-nav-item:hover {
  color: var(--text);
}
.tab-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- Tab panels ---------- */
.tab-panels {
  overflow: hidden;
  padding: 1rem 0;
}
.tab-panel {
  display: none;
  padding: 0;
}
.tab-panel.active {
  display: block;
}

/* Slide animations (reuse the shared keyframes from style.css) */
.tab-panel.slide-in-right {
  animation: slide-in-from-right 0.2s ease-out;
}
.tab-panel.slide-in-left {
  animation: slide-in-from-left 0.2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.slide-in-right,
  .tab-panel.slide-in-left {
    animation: none;
  }
}

/* ---------- Content body container ---------- */
.content-body {
  padding: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* ---------- Content sections ---------- */
.content-section {
  margin-bottom: 1.25rem;
}
.content-section:last-child {
  margin-bottom: 0;
}
.content-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content-section p,
.content-section li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.content-section ol,
.content-section ul {
  padding-left: 1.25rem;
  margin: 0;
}
.content-section ol li,
.content-section ul li {
  margin-bottom: 0.35rem;
}

/* ---------- Fieldsets (question type groups, twists) ---------- */
.content-fieldset {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.content-fieldset legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 0.35rem;
}
.content-fieldset > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ---------- Icon helpers ---------- */
.type-icon {
  vertical-align: -2px;
  margin-right: 2px;
  opacity: 0.7;
}

/* ---------- Definition lists ---------- */
.definition-list {
  margin: 0;
}
.definition-list--twists {
  margin-top: 0;
}
.definition-list dt {
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
.definition-list dt:first-child {
  margin-top: 0;
}
.definition-list dd {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}
dd.definition-example {
  margin-top: -0.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Static page layout (standalone pages) ---------- */
.static-page-container {
  max-width: 800px;
}
.static-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}
.static-page-content {
  max-height: none;
  overflow-y: visible;
  text-align: left;
}
.static-page-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Responsive (mobile) ---------- */
@media (max-width: 640px) {
  .tab-nav-item {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }
  .static-page-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }
  .lobby-container.static-page-container {
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}
