/* ============================================================
   betshop.com.ng — assets/css/pages.css
   Shared styles for all static pages.
   Loaded via a <link> in each page's $schemas / header block.
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────── */
.static-hero {
  background: var(--bg-hero);
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.static-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin: .5rem 0 .5rem;
  line-height: 1.2;
}
.static-hero p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 620px;
}

/* ── LAYOUT ───────────────────────────────────────────── */
.static-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0 3rem;
  max-width: 1100px;
}
@media (min-width: 860px) {
  .static-layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }
}
.static-main  { min-width: 0; }
.static-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 860px) {
  .static-sidebar { position: sticky; top: 80px; }
}

/* ── SECTIONS ─────────────────────────────────────────── */
.static-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.static-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.static-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .85rem;
  line-height: 1.3;
}
.static-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 .5rem;
}
.static-section p {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 .9rem;
}
.static-section p:last-child { margin-bottom: 0; }
.static-section a { color: var(--accent); }
.static-section a:hover { text-decoration: underline; }

/* ── LISTS ────────────────────────────────────────────── */
.static-ol,
.static-ul {
  padding-left: 1.4rem;
  margin: .5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.static-ol li,
.static-ul li {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text);
}
.static-ul { list-style: disc; }
.static-ol { list-style: decimal; }

/* ── ABOUT: METHOD GRID ───────────────────────────────── */
.method-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .75rem;
}
.method-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: .9rem 1rem;
  min-width: 0;
}
.mi-num {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mi-body { min-width: 0; }
.mi-body strong { font-size: .9rem; color: var(--text); display: block; margin-bottom: .2rem; }
.mi-body p { font-size: .88rem; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ── ABOUT: CARD GRID ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: .75rem;
}
@media (min-width: 600px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
}
.about-card-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.about-card h3 { font-size: .9rem; font-weight: 800; color: var(--text); margin: 0 0 .35rem; }
.about-card p { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ── RESPONSIBLE: WARNING BOX ─────────────────────────── */
.rg-warning {
  background: #450a0a;
  border: 2px solid var(--red);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.rg-warning-icon { font-size: 1.5rem; flex-shrink: 0; }
.rg-warning h2 { font-size: 1rem; font-weight: 900; color: var(--red); margin: 0 0 .35rem; }
.rg-warning p { font-size: .9rem; color: #fca5a5; line-height: 1.6; margin: 0; }

/* SELF-ASSESSMENT QUESTIONS */
.rg-questions {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin: .75rem 0;
}
.rg-q-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rg-q-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.55;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.rg-q-list li:last-child { border-bottom: none; }
.rg-q-num {
  width: 20px;
  height: 20px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* HELPLINE CARDS */
.rg-helplines {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .75rem;
}
.rg-helpline {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}
.rg-hl-icon { font-size: 1.4rem; flex-shrink: 0; }
.rg-hl-body { min-width: 0; flex: 1; }
.rg-hl-name { font-size: .9rem; font-weight: 800; color: var(--text); }
.rg-hl-desc { font-size: .82rem; color: var(--text-2); margin-top: .1rem; }
.rg-hl-contact { font-size: .85rem; color: var(--accent); font-weight: 700; margin-top: .25rem; }

/* TIPS GRID */
.rg-tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-top: .65rem;
}
@media (min-width: 560px) {
  .rg-tips { grid-template-columns: 1fr 1fr; }
}
.rg-tip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: .85rem .9rem;
}
.rg-tip-icon { font-size: 1.2rem; margin-bottom: .3rem; }
.rg-tip strong { font-size: .88rem; color: var(--text); display: block; margin-bottom: .2rem; }
.rg-tip p { font-size: .82rem; color: var(--text-2); margin: 0; line-height: 1.55; }

/* ── CONTACT FORM ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: .5rem;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-method {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem;
}
.contact-method h3 { font-size: .9rem; font-weight: 800; color: var(--text); margin: 0 0 .4rem; }
.contact-method p { font-size: .85rem; color: var(--text-2); margin: 0 0 .65rem; line-height: 1.6; }
.contact-form { margin-top: 1.25rem; }
.cf-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .75rem;
}
.cf-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: .55rem .7rem;
  background: var(--bg);
  border: 1.5px solid var(--border-str);
  border-radius: var(--r);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { border-color: var(--accent); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-submit {
  padding: .7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}
.cf-submit:hover { background: var(--accent-lt); }
.cf-success {
  background: var(--green-bg);
  border: 1.5px solid var(--green);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  font-size: .93rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cf-error {
  background: #450a0a;
  border: 1.5px solid var(--red);
  border-radius: var(--r);
  padding: .65rem .9rem;
  font-size: 13px;
  color: var(--red);
  margin-bottom: .75rem;
}

/* ── LEGAL: POLICY SECTIONS ───────────────────────────── */
.policy-toc {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
}
.policy-toc h3 { font-size: .88rem; font-weight: 800; color: var(--text); margin: 0 0 .6rem; }
.policy-toc ol {
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.policy-toc li { font-size: .88rem; }
.policy-toc a { color: var(--accent); text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }
.policy-updated {
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .4rem .65rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ── SIDEBAR BOXES ─────────────────────────────────────── */
.sbar-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: .9rem 1rem;
}
.sbar-box h3 {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 .65rem;
}
.sbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sbar-nav a {
  display: block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .12s;
}
.sbar-nav a:last-child { border-bottom: none; }
.sbar-nav a:hover { color: var(--text); text-decoration: none; }

/* ── DISCLAIMER: BOXES ─────────────────────────────────── */
.disclaimer-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1rem 1.1rem;
  margin: .75rem 0 1.25rem;
}
.disclaimer-box.warn { border-left-color: #fbbf24; }
.disclaimer-box.danger { border-left-color: var(--red); }
.disclaimer-box p { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.7; }

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .static-layout { padding: 1.25rem 0 2rem; }
  .rg-helpline { flex-direction: column; gap: .4rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ Section ===== */
.faq-section {
  margin-top: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent, #22c55e);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #f5f5f5);
  cursor: pointer;
  list-style: none;          /* remove default marker */
  user-select: none;
  transition: background 0.15s ease;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q-text {
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted, #a3a3a3);
  transition: color 0.2s ease, transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  color: var(--accent, #22c55e);
}

.faq-plus,
.faq-minus {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.faq-minus {
  opacity: 0;
  transform: rotate(-90deg);
}

.faq-item[open] .faq-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-item[open] .faq-minus {
  opacity: 1;
  transform: rotate(0deg);
}

.faq-a {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-text, #d4d4d4);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-a p {
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

/* Optional: smooth open animation (modern browsers) */
.faq-item[open] .faq-a {
  animation: faqSlideDown 0.25s ease;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}