/* =========================================================================
   Prop Firm FAQ — Design System
   Shared stylesheet for all /prop-firm-faq/*.html pages.
   Adapted from broker-faq/tradovate-faq/design-system.css to work with
   native <details>/<summary> accordions.
   ========================================================================= */


/* -------------------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------------------- */
:root {
  --bg-deep: #001429;
  --bg-surface: #002040;
  --bg-elevated: #001a33;
  --bg-gradient: linear-gradient(180deg, #001429 0%, #002040 100%);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(43, 119, 238, 0.40);

  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;

  --accent-blue: #2B77EE;
  --accent-blue-deep: #0F3EC3;
  --accent-cyan: #7FB8F9;
  --accent-soft: #D4EBFE;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Electrolize', sans-serif;
}


/* -------------------------------------------------------------------------
   Base Layout
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.electrolize,
.font-display {
  font-family: var(--font-display);
}

.page-content {
  position: relative;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
}


/* -------------------------------------------------------------------------
   Ambient Glows
   ------------------------------------------------------------------------- */
.ambient-glow-1 {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(43, 119, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 25s ease-in-out infinite;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(15, 62, 195, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 30s ease-in-out infinite reverse;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(43, 119, 238, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4vw, 3vh); }
}


/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 8rem 1rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(43, 119, 238, 0.10);
  border: 1px solid rgba(43, 119, 238, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-title-accent {
  color: var(--accent-blue);
}

.hero-subtitle {
  font-family: var(--font-display);
  color: var(--accent-blue);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  margin-bottom: 1.25rem;
}

.hero-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 auto 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(43, 119, 238, 0.25);
}

.btn-primary:hover {
  background: #1e6ad6;
  box-shadow: 0 6px 28px rgba(43, 119, 238, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid rgba(43, 119, 238, 0.40);
}

.btn-secondary:hover {
  background: rgba(43, 119, 238, 0.10);
  border-color: var(--accent-blue);
}


/* -------------------------------------------------------------------------
   Stats Grid (key facts strip below hero)
   ------------------------------------------------------------------------- */
.stats-section {
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 26, 51, 0.40);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-card {
  background: rgba(43, 119, 238, 0.08);
  border: 1px solid rgba(43, 119, 238, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-active);
  background: rgba(43, 119, 238, 0.12);
}

.stat-label {
  font-family: var(--font-display);
  color: var(--accent-blue);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}


/* -------------------------------------------------------------------------
   Search Bar
   ------------------------------------------------------------------------- */
.search-section {
  padding: 2.5rem 1rem 1.25rem;
}

.search-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
}

.search-label {
  display: none;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 56px 14px 48px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(43, 119, 238, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  pointer-events: none;
}

.search-info {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 20px;
  margin-top: 0.75rem;
}

.search-info strong {
  color: var(--accent-blue);
}

.search-note {
  max-width: 720px;
  margin: 0.75rem auto 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  text-align: center;
}

.search-note i {
  color: var(--accent-blue);
  margin-right: 0.25rem;
}

details.hidden-by-search,
section.hidden-by-search {
  display: none !important;
}


/* -------------------------------------------------------------------------
   Search Dropdown (results picker)
   ------------------------------------------------------------------------- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(0, 20, 41, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(43, 119, 238, 0.30);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(43, 119, 238, 0.08);
  padding: 6px;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-result + .search-result {
  margin-top: 2px;
}

.search-result.is-active,
.search-result:hover {
  background: rgba(43, 119, 238, 0.12);
  border-color: rgba(43, 119, 238, 0.35);
}

.search-result-q {
  color: var(--text-primary);
  font-weight: 500;
}

.search-result-q mark {
  background: rgba(43, 119, 238, 0.30);
  color: var(--text-primary);
  border-radius: 3px;
  padding: 0 2px;
}

.search-result-section {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.search-empty {
  padding: 14px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.search-empty strong {
  color: var(--accent-blue);
}

.search-more {
  padding: 8px 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}


/* -------------------------------------------------------------------------
   Table of Contents
   ------------------------------------------------------------------------- */
.toc-section {
  padding: 3rem 1rem 2.5rem;
}

.toc-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.toc-heading {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.toc-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.toc-card:hover {
  border-color: rgba(43, 119, 238, 0.45);
  background: rgba(43, 119, 238, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(43, 119, 238, 0.12);
}

.toc-icon {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: rgba(43, 119, 238, 0.18);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.toc-card-body {
  flex: 1;
  min-width: 0;
}

.toc-cat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.toc-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}


/* -------------------------------------------------------------------------
   FAQ Categories
   ------------------------------------------------------------------------- */
.faq-main {
  padding: 3rem 1rem 4rem;
}

.faq-main-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cat-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 90px;
}

.cat-header {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cat-icon,
.cat-count {
  display: none;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}


/* -------------------------------------------------------------------------
   FAQ Accordion (native <details>)
   ------------------------------------------------------------------------- */
.faq-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gfaq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.gfaq-item:hover {
  border-color: rgba(43, 119, 238, 0.25);
}

.gfaq-item[open] {
  border-left: 3px solid var(--accent-blue);
  border-color: rgba(43, 119, 238, 0.30);
  box-shadow: 0 0 32px rgba(43, 119, 238, 0.07);
}

.gfaq-item.flash {
  animation: faqFlash 1.6s ease-out;
}

@keyframes faqFlash {
  0%   { box-shadow: 0 0 0 0 rgba(43, 119, 238, 0.55); border-color: rgba(43, 119, 238, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(43, 119, 238, 0); border-color: var(--border-subtle); }
}

.gfaq-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
  transition: var(--transition);
}

.gfaq-summary::-webkit-details-marker { display: none; }
.gfaq-summary::marker { display: none; content: ''; }

.gfaq-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.gfaq-question {
  flex: 1;
}

.gfaq-toggle {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-circle);
  background: rgba(43, 119, 238, 0.15);
  color: var(--accent-blue);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
  line-height: 1;
  user-select: none;
}

.gfaq-item[open] .gfaq-toggle {
  transform: rotate(45deg);
  background: rgba(43, 119, 238, 0.25);
}

.gfaq-answer {
  padding: 0 1.25rem 1.125rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.gfaq-answer p {
  margin-bottom: 0.625rem;
}

.gfaq-answer p:last-child {
  margin-bottom: 0;
}

.gfaq-answer strong {
  color: var(--text-primary);
}

.gfaq-answer a {
  color: var(--accent-blue);
  text-decoration: none;
}

.gfaq-answer a:hover {
  text-decoration: underline;
}

.gfaq-answer ul {
  padding-left: 1.125rem;
  margin: 0.5rem 0;
}

.gfaq-answer li {
  margin-bottom: 0.3125rem;
}


/* -------------------------------------------------------------------------
   CTA Strip
   ------------------------------------------------------------------------- */
.cta-section {
  padding: 4rem 1rem;
}

.cta-strip {
  max-width: 60rem;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(43, 119, 238, 0.10) 0%, rgba(15, 62, 195, 0.14) 100%);
  border: 1px solid rgba(43, 119, 238, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(43, 119, 238, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


/* -------------------------------------------------------------------------
   Other FAQs Cards Grid
   ------------------------------------------------------------------------- */
.other-faqs-section {
  padding: 4rem 1rem;
}

.other-faqs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.other-faqs-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.other-faqs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.other-faq-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.other-faq-card:hover {
  border-color: rgba(43, 119, 238, 0.45);
  background: rgba(43, 119, 238, 0.06);
  transform: translateY(-2px);
}

.other-faq-card h3 {
  font-family: var(--font-display);
  color: var(--accent-blue);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.other-faq-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.other-faq-card .card-link {
  color: var(--text-primary);
  font-size: 0.78rem;
}


/* -------------------------------------------------------------------------
   Disclaimer
   ------------------------------------------------------------------------- */
.disclaimer-section {
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 10, 21, 0.6);
}

.disclaimer-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.disclaimer-heading {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.disclaimer-body {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.disclaimer-body p {
  margin-bottom: 0.875rem;
}

.disclaimer-body p:last-child {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

.disclaimer-body strong {
  color: rgba(255, 255, 255, 0.8);
}


/* -------------------------------------------------------------------------
   Back-to-Top
   ------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-circle);
  background: rgba(0, 20, 41, 0.90);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(43, 119, 238, 0.10);
}


/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .stats-grid       { grid-template-columns: repeat(3, 1fr); }
  .other-faqs-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .toc-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats-grid       { grid-template-columns: repeat(6, 1fr); }
  .toc-grid         { grid-template-columns: repeat(3, 1fr); }
  .other-faqs-grid  { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 480px) {
  .gfaq-summary    { padding: 0.8rem 1rem; font-size: 0.88rem; }
  .gfaq-answer     { padding: 0 1rem 1rem 1rem; }
  .cat-title       { font-size: 1.15rem; }
  .cat-icon        { width: 36px; height: 36px; font-size: 1rem; }
  .toc-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .back-to-top     { bottom: 12px; left: 12px; }
}


/* -------------------------------------------------------------------------
   Print
   ------------------------------------------------------------------------- */
@media print {
  .back-to-top,
  .ambient-glow-1,
  .ambient-glow-2,
  .hero-glow      { display: none !important; }
  .gfaq-item      { break-inside: avoid; }
  body            { background: white; color: #111; }
}
