/* ═══════════════════════════════════════════════════════════════════════════
   Konvertibly — Currency Info Section Styles
   File: server/public/css/currency-info.css  (or add to existing stylesheet)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Container ── */
.currency-info-section {
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Cards ── */
.currency-info-card {
  background: #fff;
  border: 1px solid #e8e0f7;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 4px rgba(99, 60, 180, 0.06);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4c1d95;          /* Konvertibly purple */
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ede9fe;
}

/* ── Description ── */
.currency-description {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1rem;
}

/* ── Currency Meta Grid ── */
.currency-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.currency-meta-item {
  background: #f5f3ff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.meta-country {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ── Use Cases ── */
.use-cases-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.use-cases-list li {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.use-cases-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 600;
}

/* ── Formula ── */
.formula-box {
  background: #1e1b2e;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.85rem;
}

.formula-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: #a78bfa;
}

.formula-note {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ── Fun Fact ── */
.fun-fact {
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.75;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid #7c3aed;
}

/* ── Related Pairs ── */
.related-pairs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-pair-link {
  display: inline-block;
  background: #ede9fe;
  color: #4c1d95;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.related-pair-link:hover {
  background: #7c3aed;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .currency-meta-grid {
    grid-template-columns: 1fr;
  }

  .currency-info-card {
    padding: 1.15rem 1.15rem;
  }
}
