
/* Motion & polish */
@keyframes bs-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bs-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bs-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,255,138,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(61,255,138,0); }
}

.bs-main, #homeDashboard, .catalog-panel.active, .page, .catalog-page-wrap {
  animation: bs-fade-up 0.45s ease both;
}
.bs-card, .catalog-card, .tour-card, .news-card, .spa-news-card {
  animation: bs-fade-up 0.5s ease both;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bs-card:nth-child(1), .catalog-card:nth-child(1) { animation-delay: 0.02s; }
.bs-card:nth-child(2), .catalog-card:nth-child(2) { animation-delay: 0.05s; }
.bs-card:nth-child(3), .catalog-card:nth-child(3) { animation-delay: 0.08s; }
.bs-card:nth-child(4), .catalog-card:nth-child(4) { animation-delay: 0.11s; }
.bs-card:nth-child(5), .catalog-card:nth-child(5) { animation-delay: 0.14s; }
.bs-card:nth-child(6), .catalog-card:nth-child(6) { animation-delay: 0.17s; }

.bs-card:hover, .catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: rgba(61,255,138,0.4);
}
.bs-btn, .btn {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.bs-btn:hover, .btn:hover { transform: translateY(-1px); }
.bs-btn:active, .btn:active { transform: translateY(0); }
.bs-btn-primary { box-shadow: 0 4px 20px rgba(61,255,138,0.25); }
.bs-login-btn { animation: bs-pulse-soft 2.5s ease infinite; }

.bs-user-chip {
  transition: border-color 0.15s, background 0.15s;
}
.bs-user-chip:hover {
  border-color: rgba(61,255,138,0.5);
  background: rgba(61,255,138,0.08);
}

.catalog-tab, .cat-tabs button {
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.catalog-tab:hover, .cat-tabs button:hover { transform: translateY(-1px); }

.catalog-post-form {
  animation: bs-fade-up 0.3s ease both;
}
.catalog-search:focus, .catalog-select:focus {
  outline: none;
  border-color: var(--green, #3dff8a) !important;
  box-shadow: 0 0 0 3px rgba(61,255,138,0.15);
}

/* Sticky catalog toolbar */
.catalog-toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(7,7,12,0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  margin-bottom: 8px;
}

/* Better catalog contact CTA */
.catalog-card-footer .btn-write {
  background: rgba(61,255,138,0.12);
  color: #3dff8a;
  border: 1px solid rgba(61,255,138,0.3);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.catalog-card-footer .btn-write:hover {
  background: rgba(61,255,138,0.22);
}

/* Skeleton */
.bs-skeleton {
  background: linear-gradient(90deg, #12121c 25%, #1a1a28 50%, #12121c 75%);
  background-size: 200% 100%;
  animation: bs-shimmer 1.2s infinite;
  border-radius: 8px;
  height: 14px;
}
@keyframes bs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
