/* ============================================================
   promo.css — IQ Option Nigeria /promo-codes/
   Page-specific styles. Global layout/typography in styles.css
   ============================================================ */

/* ----------------------------------------------------------
   Code Cards
   ---------------------------------------------------------- */

.code-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.code-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.code-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.code-card--primary .code-card__header { background: #f0fdf4; border-left: 4px solid #00c853; }
.code-card--welcome .code-card__header { background: #fffbeb; border-left: 4px solid #f59e0b; }

.code-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.code-card__name .card-icon { font-size: 1.2rem; }

.code-card__expiry {
  font-size: .78rem;
  color: #6b7280;
  white-space: nowrap;
}

.code-card__body { padding: 1.25rem; }

/* Code display + copy button */
.code-display {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: #f9fafb;
}

.code-card--primary .code-display { border-color: #86efac; }
.code-card--welcome .code-display { border-color: #fcd34d; }

.code-display__text {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: #111;
  padding: .65rem 1rem;
  user-select: all;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1rem;
  background: #00c853;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
  border-left: 1.5px solid #86efac;
}

.copy-btn:hover { background: #00b34a; }
.copy-btn--success { background: #15803d; }

.copy-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.code-card--welcome .copy-btn { background: #f59e0b; border-left-color: #fcd34d; }
.code-card--welcome .copy-btn:hover { background: #d97706; }
.code-card--welcome .copy-btn--success { background: #b45309; }

/* Stats row */
.code-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.code-stat {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .6rem .5rem;
  text-align: center;
}

.code-stat__label {
  font-size: .68rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}

.code-stat__value {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
}

.code-card__badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.badge--new { background: #dbeafe; color: #1d4ed8; }
.badge--once { background: #ede9fe; color: #6d28d9; }
.badge--all { background: #dcfce7; color: #15803d; }

.code-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
  cursor: pointer;
  border: none;
}

.code-card--primary .code-card__cta {
  background: #00c853;
  color: #fff;
}

.code-card--primary .code-card__cta:hover { background: #00b34a; transform: translateY(-1px); }

.code-card--welcome .code-card__cta {
  background: #f59e0b;
  color: #fff;
}

.code-card--welcome .code-card__cta:hover { background: #d97706; transform: translateY(-1px); }

/* ----------------------------------------------------------
   Comparison Table
   ---------------------------------------------------------- */

.comparison-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 480px;
}

.comparison-table th,
.comparison-table td {
  padding: .7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-table th {
  background: #f9fafb;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  font-weight: 600;
}

.comparison-table th:nth-child(2) { color: #00c853; }
.comparison-table th:nth-child(3) { color: #f59e0b; }

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tbody tr:nth-child(odd) td { background: #fafafa; }

.comparison-table .highlight { font-weight: 700; color: #111; }

.comparison-table .better-2026 { color: #00c853; font-weight: 700; }
.comparison-table .better-welcome { color: #d97706; font-weight: 700; }

/* ----------------------------------------------------------
   How to Apply — Steps
   ---------------------------------------------------------- */

.apply-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.apply-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: .9rem 1rem .9rem 3.25rem;
  border-left: 2px solid #e5e7eb;
  margin-bottom: 1rem;
}

.apply-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: -1.1rem;
  top: .85rem;
  width: 2rem;
  height: 2rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.apply-steps li strong { display: block; margin-bottom: .2rem; }
.apply-steps li p { margin: 0; color: #374151; font-size: .9rem; }

/* ----------------------------------------------------------
   Wagering Calculator
   ---------------------------------------------------------- */

.calc-widget {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.calc-widget h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #111;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.calc-input-row label {
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex: 1;
  max-width: 240px;
}

.calc-prefix {
  padding: .55rem .75rem;
  background: #f3f4f6;
  font-weight: 700;
  color: #6b7280;
  font-size: .95rem;
  border-right: 1.5px solid #d1d5db;
}

.calc-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: .55rem .75rem;
  font-size: .95rem;
  font-family: inherit;
  min-width: 0;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-result-card {
  border-radius: 10px;
  padding: 1rem;
  border: 1.5px solid transparent;
}

.calc-result-card--primary {
  background: #f0fdf4;
  border-color: #86efac;
}

.calc-result-card--welcome {
  background: #fffbeb;
  border-color: #fcd34d;
}

.calc-result-card__code {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.calc-result-card--primary .calc-result-card__code { color: #15803d; }
.calc-result-card--welcome .calc-result-card__code { color: #92400e; }

.calc-result-card__row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .25rem;
  color: #374151;
}

.calc-result-card__row span:last-child { font-weight: 700; color: #111; }

.calc-result-card__daily {
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: .82rem;
  color: #374151;
}

.calc-result-card__daily strong { color: #111; }

.calc-min-note {
  font-size: .78rem;
  color: #9ca3af;
  margin-top: .75rem;
  text-align: center;
}

/* ----------------------------------------------------------
   What Counts Grid
   ---------------------------------------------------------- */

.counts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.counts-col {
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.counts-col--yes { background: #f0fdf4; border: 1px solid #bbf7d0; }
.counts-col--no  { background: #fef2f2; border: 1px solid #fecaca; }

.counts-col__header {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
}

.counts-col--yes .counts-col__header { color: #15803d; }
.counts-col--no  .counts-col__header { color: #dc2626; }

.counts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.counts-list li {
  font-size: .875rem;
  color: #374151;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}

.counts-list li:last-child { border-bottom: none; }

.counts-list li::before {
  flex-shrink: 0;
  margin-top: .05rem;
  font-size: .85rem;
}

.counts-col--yes .counts-list li::before { content: '✅'; }
.counts-col--no  .counts-list li::before { content: '❌'; }

/* ----------------------------------------------------------
   Decision Quiz
   ---------------------------------------------------------- */

.quiz-widget {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.quiz-progress {
  font-size: .78rem;
  color: #9ca3af;
  margin-bottom: .75rem;
}

.quiz-question-text {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quiz-btn-row {
  display: flex;
  gap: .75rem;
}

.quiz-btn {
  flex: 1;
  padding: .6rem;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.quiz-btn:hover { border-color: #00c853; color: #00c853; }

.quiz-result {
  display: none;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.quiz-result.visible { display: block; }

.quiz-result--take    { background: #f0fdf4; border: 1.5px solid #86efac; }
.quiz-result--caution { background: #fffbeb; border: 1.5px solid #fcd34d; }
.quiz-result--skip    { background: #fef2f2; border: 1.5px solid #fecaca; }

.quiz-result__verdict {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.quiz-result--take    .quiz-result__verdict { color: #15803d; }
.quiz-result--caution .quiz-result__verdict { color: #92400e; }
.quiz-result--skip    .quiz-result__verdict { color: #dc2626; }

.quiz-result__reason { font-size: .875rem; color: #374151; line-height: 1.5; margin-bottom: .75rem; }

.quiz-restart {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  color: #6b7280;
  transition: border-color .15s;
}
.quiz-restart:hover { border-color: #9ca3af; }

/* ----------------------------------------------------------
   Warning / Callout Boxes
   ---------------------------------------------------------- */

.warning-box {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.warning-box__title {
  font-weight: 700;
  color: #dc2626;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.warning-box p { margin: 0 0 .5rem; font-size: .9rem; color: #374151; }
.warning-box p:last-child { margin-bottom: 0; }

.info-box {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.info-box p { margin: 0 0 .5rem; font-size: .9rem; color: #374151; }
.info-box p:last-child { margin-bottom: 0; }

/* Cancellation example box */
.trap-example {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: .875rem;
}

.trap-example__title {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
  margin-bottom: .6rem;
}

.trap-example__row {
  display: flex;
  justify-content: space-between;
  padding: .25rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.trap-example__row:last-child { border-bottom: none; }
.trap-example__row.total { font-weight: 700; color: #111; padding-top: .4rem; }
.trap-example__row.total span:last-child { color: #dc2626; }

/* ----------------------------------------------------------
   Where to Find — Traderoom guide
   ---------------------------------------------------------- */

.traderoom-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.traderoom-steps li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .9rem;
  color: #374151;
}

.traderoom-steps li:last-child { border-bottom: none; }

.traderoom-steps li > div { flex: 1; min-width: 0; }

.traderoom-steps li .step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: .05rem;
}

/* ----------------------------------------------------------
   Aggregator debunk callout
   ---------------------------------------------------------- */

.debunk-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.debunk-list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .9rem;
  color: #374151;
}

.debunk-list li .fake-code {
  font-family: monospace;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .85rem;
}

/* ----------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------- */

.faq-list { margin: 1.25rem 0; }

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:first-child { border-top: 1px solid #e5e7eb; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: #111;
  gap: 1rem;
  line-height: 1.4;
}

.faq-question .faq-arrow {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  fill: #9ca3af;
  transition: transform .2s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0 1rem;
  font-size: .9rem;
  color: #374151;
  line-height: 1.65;
}

.faq-item.open .faq-answer { display: block; }

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .code-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

  .counts-grid {
    grid-template-columns: 1fr;
  }

  .quiz-btn-row {
    flex-direction: column;
  }

  .code-display__text {
    font-size: 1.1rem;
  }

  .comparison-table {
    font-size: .82rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: .5rem .6rem;
  }
}
