/* ==========================================================================
   استایل اختصاصی صفحه‌ی «قیمت دلار» — کاملاً جدا از styles.css اصلی
   (رنگ‌ها و متغیرهای پایه از styles.css خوانده می‌شوند چون قبل از این
   فایل لود شده)
   ========================================================================== */

/* دکمه‌ی بازگشت، گوشه‌ی صفحه و همیشه در دسترس */
.back-button {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  color: var(--slate-300);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.back-button:hover {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.15);
}

.dollar-hero {
  margin-top: 2.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 4px solid rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

@media (max-width: 640px) {
  .dollar-hero {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

/* دایره‌ی عکس کنار قیمت دلار */
.dollar-photo-circle {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--slate-900);
  border: 2px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dollar-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dollar-photo-fallback-icon {
  font-size: 2.75rem;
  color: var(--emerald);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dollar-hero-info { flex: 1 1 auto; min-width: 0; }

.dollar-hero-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}

.dollar-hero-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: var(--emerald-light);
}

@media (max-width: 640px) {
  .dollar-hero-value { justify-content: center; font-size: 2.25rem; }
}

.dollar-hero-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-400);
}

.dollar-hero-sub {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* کارت تبدیل سریع دلار به تومان */
.dollar-convert {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
}

.dollar-convert-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.dollar-convert-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dollar-convert-input {
  flex: 1 1 10rem;
  min-width: 0;
  background: var(--slate-900);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-family: monospace;
  font-size: 1.25rem;
  outline: none;
}
.dollar-convert-input:focus { border-color: var(--blue-dark); }

.dollar-convert-eq { color: var(--slate-500); font-size: 1.25rem; font-weight: 700; }

.dollar-convert-result {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--emerald-light);
}
