/**
 * Bitpedia — ارز دیجیتال/کریپتو
 */

.crypto-section {
  position: relative;
  overflow: hidden;
}

/* موتیفِ تزئینیِ سکه‌های شناور — فقط ترنسفر/opacity، خیلی کم‌رنگ، پشتِ محتوا */
.crypto-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.crypto-decor__coin {
  position: absolute;
  font-family: var(--font-latin-heading);
  font-weight: var(--fw-bold);
  color: var(--bp-blue-400);
  opacity: 0.08;
  animation: crypto-float 14s ease-in-out infinite;
}
.crypto-decor__coin:nth-child(1) { top: 8%;  right: 6%;  font-size: 4rem;   animation-delay: 0s; }
.crypto-decor__coin:nth-child(2) { top: 55%; right: 18%; font-size: 2.5rem; animation-delay: -3s; }
.crypto-decor__coin:nth-child(3) { top: 20%; left: 10%;  font-size: 3rem;   animation-delay: -6s; }
.crypto-decor__coin:nth-child(4) { top: 70%; left: 20%;  font-size: 2rem;   animation-delay: -9s; }
.crypto-decor__coin:nth-child(5) { top: 40%; right: 45%; font-size: 1.75rem; animation-delay: -11s; }

@keyframes crypto-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-decor { display: none; }
}

.crypto-section .container {
  position: relative;
  z-index: 1;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .crypto-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .crypto-grid { grid-template-columns: 1fr; }
}

.crypto-card {
  padding: var(--space-5);
  text-align: center;
}

.crypto-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--text-on-brand);
  font-family: var(--font-latin-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
}

.crypto-card__name {
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
}

.crypto-card__code {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.crypto-card__price {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--bp-blue-300);
}
.crypto-card__price .crypto-card__unit {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--text-tertiary);
  margin-inline-start: var(--space-1);
}

.crypto-card--error .crypto-card__price {
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}
