/**
 * Smile Doc - Prices Loader Styles
 * Стилі для завантаження та відображення цін
 */

/* ============================================
   LOADER (Завантаження)
   ============================================ */

.prices-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 300px;
}

.prices-loader__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #008DD2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prices-loader__text {
  font-size: 16px;
  font-weight: 500;
  color: #0A0A0B;
  text-align: center;
}

/* ============================================
   ERROR (Помилка)
   ============================================ */

.prices-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
  text-align: center;
}

.prices-error__icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.prices-error__title {
  font-size: 24px;
  font-weight: 600;
  color: #0A0A0B;
  margin-bottom: 12px;
}

.prices-error__message {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  max-width: 400px;
}

.prices-error__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prices-error__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 141, 210, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 720px) {
  .prices-loader {
    padding: 60px 15px;
    min-height: 250px;
  }

  .prices-loader__spinner {
    width: 40px;
    height: 40px;
  }

  .prices-loader__text {
    font-size: 14px;
  }

  .prices-error {
    padding: 40px 15px;
    min-height: 250px;
  }

  .prices-error__icon {
    font-size: 48px;
  }

  .prices-error__title {
    font-size: 20px;
  }

  .prices-error__message {
    font-size: 14px;
  }

  .prices-error__btn {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ============================================
   FADE IN ANIMATION (Анімація появи)
   ============================================ */

.prices__item {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Затримка анімації для кожної категорії */
.prices__item:nth-child(1) { animation-delay: 0.05s; }
.prices__item:nth-child(2) { animation-delay: 0.1s; }
.prices__item:nth-child(3) { animation-delay: 0.15s; }
.prices__item:nth-child(4) { animation-delay: 0.2s; }
.prices__item:nth-child(5) { animation-delay: 0.25s; }
.prices__item:nth-child(6) { animation-delay: 0.3s; }
.prices__item:nth-child(7) { animation-delay: 0.35s; }
.prices__item:nth-child(8) { animation-delay: 0.4s; }
