/* =============================================
   RANKING PAGE CSS — crypto-to-naira.com
   ============================================= */

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0c3d2a 0%, #0f4c35 50%, #1a6644 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(245,166,35,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
  align-items: start;
}
.hero-content { color: #fff; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  line-height: 1.1;
}
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Rate Ticker */
.rate-ticker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem;
  margin-bottom: 1.75rem;
}
.rate-item {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: .625rem .875rem;
  backdrop-filter: blur(8px);
}
.coin-name {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .1rem;
}
.coin-rate {
  display: block;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.coin-change {
  display: block;
  font-size: .7rem;
  margin-top: .1rem;
}
.coin-change.positive { color: #6ee7a0; }
.coin-change.negative { color: #fca5a5; }

/* CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-accent);
  color: #1a1a2e;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(245,166,35,.35);
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: #f7b83a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,.45);
  text-decoration: none;
  color: #1a1a2e;
}
.cta-btn:active { transform: scale(.98); }
.cta-btn svg { width: 17px; height: 17px; }

.cta-btn--hero { font-size: 1.05rem; padding: .9rem 2rem; }

.cta-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.cta-btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,76,53,.25);
}

.cta-btn--light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.cta-btn--light:hover { background: #f0faf5; color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,.18); }

/* CTA block (inline) */
.cta-block {
  background: linear-gradient(135deg, #f0faf5 0%, #e6f4ee 100%);
  border: 1px solid #b7e0cc;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.cta-block p { margin: 0; font-size: 1rem; color: var(--color-text); font-weight: 500; }
.cta-block--conclusion {
  background: linear-gradient(135deg, #0f4c35 0%, #1a6644 100%);
  border-color: transparent;
}
.cta-block--conclusion p { color: rgba(255,255,255,.9); }
.cta-block--conclusion p strong { color: #fff; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f4c35 0%, #1a7a55 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: rgba(245,166,35,.12);
  border-radius: 50%;
}
.cta-banner__text h3 {
  color: #fff;
  margin: 0 0 .375rem;
  font-size: 1.3rem;
}
.cta-banner__text p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }

/* Converter Widget */
.converter-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated);
}
.converter-title {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}
.converter-title svg { width: 20px; height: 20px; color: var(--color-primary); }
.converter-form { display: flex; flex-direction: column; gap: .875rem; }
.converter-field { display: flex; flex-direction: column; gap: .35rem; }
.converter-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.converter-field input,
.converter-field select {
  padding: .65rem .875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.converter-field input:focus,
.converter-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15,76,53,.1);
}
.converter-result {
  background: linear-gradient(135deg, #eff8f4, #e6f4ee);
  border: 1.5px solid #b7e0cc;
  border-radius: var(--radius-md);
  padding: .875rem 1rem;
  text-align: center;
}
.result-label { display: block; font-size: .75rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.result-amount {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}
.result-note { display: block; font-size: .76rem; color: var(--color-text-muted); margin-top: .2rem; }
.converter-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .65rem 1.25rem;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .18s, transform .12s;
}
.converter-btn:hover { background: var(--color-primary-light); }
.converter-btn:active { transform: scale(.98); }
.converter-btn svg { width: 15px; height: 15px; transition: transform .4s; }
.converter-btn.loading svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.converter-disclaimer {
  font-size: .74rem;
  color: var(--color-text-muted);
  display: flex;
  gap: .375rem;
  align-items: flex-start;
  margin-top: .375rem;
}
.converter-disclaimer svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; color: #c8850a; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  padding: .625rem .5rem;
}
.trust-item svg { width: 22px; height: 22px; color: var(--color-primary); margin-bottom: .15rem; }
.trust-item strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-text); line-height: 1; }
.trust-item span { font-size: .78rem; color: var(--color-text-muted); }

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.step-card svg { width: 24px; height: 24px; color: var(--color-primary); }
.step-card h3 { font-size: 1rem; margin: 0; color: var(--color-text); }
.step-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }
.step-number {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- Coin Grid --- */
.coin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  margin: 1.5rem 0;
}
.coin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  box-shadow: var(--shadow);
  position: relative;
}
.coin-card svg { width: 20px; height: 20px; color: var(--color-text-muted); }
.coin-card strong { font-size: .9rem; color: var(--color-text); font-family: var(--font-heading); }
.coin-card p { font-size: .8rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }
.coin-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #f0faf5, #e8f6ef);
}
.coin-card--featured svg { color: var(--color-primary); }
.coin-card--featured strong { color: var(--color-primary); }
.coin-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* --- Timeline --- */
.timeline {
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: .875rem;
  padding: .75rem 0;
  align-items: flex-start;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-surface);
  z-index: 1;
}
.timeline-item--active::before { background: var(--color-primary); }
.timeline-year {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
  padding-top: .1rem;
}
.timeline-item p { margin: 0; font-size: .9rem; color: var(--color-text-muted); line-height: 1.55; }

/* --- Main layout --- */
.article-body { max-width: 820px; }

/* Table accents */
.comparison-table thead { background: var(--color-primary); }
.rates-table thead { background: #1a5c3a; }
.fees-table thead { background: #0d3d2a; }
.speed-table thead { background: var(--color-primary-light); }

/* shield icon in table */
tbody td svg { width: 15px; height: 15px; vertical-align: middle; margin-right: .25rem; color: var(--color-success); }

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

@media (min-width: 768px) {
  .hero .container { grid-template-columns: 55fr 45fr; align-items: center; gap: 3rem; }
  .rate-ticker { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-block { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-block p { flex: 1; }
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-banner__text { flex: 1; }
}

@media (min-width: 900px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .coin-grid { grid-template-columns: repeat(3, 1fr); }
}
