/* ============================================================
   RANKING.CSS — Main ranking page styles
   best-platform-to-sell-bitcoin-in-nigeria.com
   ============================================================ */

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- Hero --- */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 760px;
}

/* --- Section titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.page-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.page-section:last-of-type {
  border-bottom: none;
}

/* --- Platform Type Framework --- */
.type-framework {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  position: relative;
}

.type-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.type-card--auto::before  { background: var(--green); }
.type-card--p2p::before   { background: var(--yellow); }
.type-card--order::before { background: var(--accent-2); }

.type-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.type-card--auto .type-card__name  { color: var(--green); }
.type-card--p2p .type-card__name   { color: var(--yellow); }
.type-card--order .type-card__name { color: var(--accent-2); }

.type-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.type-card__examples {
  font-size: 0.78rem;
  color: var(--muted);
}

.type-card__examples strong {
  color: var(--text);
  font-weight: 500;
}

/* --- Type Badges --- */
.type-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.type-badge--auto  { background: rgba(16,185,129,0.12); color: var(--green); }
.type-badge--p2p   { background: rgba(245,158,11,0.12); color: var(--yellow); }
.type-badge--order { background: rgba(79,142,247,0.12); color: var(--accent-2); }

/* --- Rank Cards --- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.rank-card:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
}

/* #1 Featured Card */
.rank-card--featured {
  background: linear-gradient(135deg, #16191F 0%, #1A1D28 100%);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(247,147,26,0.15), 0 8px 32px rgba(247,147,26,0.08);
  padding: 2rem;
}

.rank-card--featured:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(247,147,26,0.25), 0 12px 40px rgba(247,147,26,0.12);
}

.rank-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.rank-badge--1 {
  background: var(--accent);
  color: #0C0E14;
  border-color: var(--accent);
  font-size: 0.9rem;
}

.rank-card__name-group {
  flex: 1;
  min-width: 0;
}

.rank-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.rank-card--featured .rank-card__name {
  font-size: 1.45rem;
  color: var(--accent);
}

.rank-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.verified-badge::before {
  content: '✓';
  font-size: 0.7rem;
}

.since-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
}

.rank-card__summary {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.rank-card--featured .rank-card__summary {
  font-size: 1rem;
  color: var(--text);
}

/* --- Attribute List --- */
.attr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.attr-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.attr-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 0.05em;
}

.rank-card--featured .attr-list li::before {
  color: var(--accent);
}

.attr-list--neutral li::before {
  color: var(--muted);
}

.attr-list--warning li::before {
  content: '!';
  color: var(--red);
  font-weight: 700;
}

/* --- Stats Row --- */
.rank-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.stat-value--green { color: var(--green); }
.stat-value--yellow { color: var(--yellow); }

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0C0E14;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}

.cta-btn:hover {
  background: var(--accent-dk);
  color: #0C0E14;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247,147,26,0.3);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn--lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.cta-btn::after {
  content: '→';
  font-size: 1rem;
}

/* --- Comparison Table --- */
.table-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.comparison-table thead {
  background: var(--surface-2);
}

.comparison-table th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
}

.comparison-table th:first-child {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.comparison-table th:nth-child(2) {
  min-width: 150px;
}

.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}

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

.comparison-table tbody tr:hover td {
  background: var(--surface-2);
}

.comparison-table tbody tr:first-child td {
  background: rgba(247,147,26,0.04);
}

.comparison-table tbody tr:first-child:hover td {
  background: rgba(247,147,26,0.08);
}

.table-rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.table-rank--1 {
  color: var(--accent);
}

.table-name {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}

.table-name--1 {
  color: var(--accent);
}

.table-muted {
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- CTA Banner --- */
.cta-banner {
  margin: 3rem 0;
  background: linear-gradient(135deg, #1A1610 0%, #1F1A0D 50%, #191612 100%);
  border: 1px solid rgba(247,147,26,0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(247,147,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cta-banner__title span {
  color: var(--accent);
}

.cta-banner__desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-banner__content {
    flex: 1;
  }
}

/* --- True Cost Section --- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.cost-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  background: var(--surface-2);
}

.cost-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.cost-table tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  color: var(--accent);
  background: rgba(247,147,26,0.04);
}

.cost-table__name {
  font-weight: 600;
  color: var(--text);
}

.cost-table__value {
  font-family: var(--font-mono);
  color: var(--accent);
}

.cost-table__note {
  color: var(--muted);
  font-size: 0.82rem;
}

.cost-table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* --- Regulatory Section --- */
.reg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.reg-card__acronym {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}

.reg-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.reg-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- User Profiles Table --- */
.profiles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1.25rem;
}

.profiles-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  background: var(--surface-2);
}

.profiles-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

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

.profiles-table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* --- How We Evaluate --- */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

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

.criterion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.criterion__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.criterion__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.criterion__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Step Guide --- */
.step-guide {
  counter-reset: steps;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.step-guide li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  align-items: flex-start;
}

.step-guide li::before {
  content: counter(steps);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0C0E14;
  background: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-content__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.step-content__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Bank Coverage --- */
.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.bank-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.bank-group__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.bank-group__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bank-group__list li {
  font-size: 0.875rem;
  color: var(--text);
}

/* --- FAQ Section --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.2rem 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  padding: 0 1.5rem 1.2rem;
}

.faq-item p strong {
  color: var(--text);
  font-weight: 400;
}

/* --- Info Box --- */
.info-box {
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 1rem 0;
}

.info-box strong {
  color: var(--accent-2);
}

.warning-box {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 1rem 0;
}

.warning-box strong {
  color: var(--red);
}

/* --- Prose paragraphs within sections --- */
.prose p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}
