/* ── Amato Travel – Theme CSS ──────────────────────────────────────────────
   Single source of truth for CSS custom properties.
   base.html <style> block handles the actual :root / .dark token definitions
   so this file only adds extra component styles not already in base.html.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Extra button variants ── */
.btn-success {
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(160 84% 39%);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius, 0.75rem);
  font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-success:hover {
  background: hsl(160 84% 33%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34,197,94,0.35);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: hsl(var(--primary));
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius, 0.75rem);
  font-weight: 600; font-size: 0.875rem;
  border: 2px solid hsl(var(--primary)); cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius, 0.75rem);
  font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive {
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius, 0.75rem);
  font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-destructive:hover {
  background: hsl(var(--destructive) / 0.88);
  transform: translateY(-1px);
}

/* ── Alert variants ── */
.alert {
  position: relative; width: 100%;
  border-radius: var(--radius, 0.75rem);
  border: 1px solid; padding: 1rem;
}
.alert-default   { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.alert-success   { background: hsl(160 84% 39% / 0.1); color: hsl(160 84% 39%); border-color: hsl(160 84% 39% / 0.25); }
.alert-warning   { background: hsl(30 80% 55% / 0.1);  color: hsl(30 80% 45%);  border-color: hsl(30 80% 55% / 0.25); }
.alert-destructive { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / 0.25); }

/* ── Badge variants ── */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 9999px; border: 1px solid transparent;
  padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 500;
}
.badge-primary    { background: hsl(var(--primary));   color: hsl(var(--primary-foreground)); }
.badge-secondary  { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-success    { background: hsl(160 84% 39%);      color: #fff; }
.badge-outline    { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }

/* ── Card sub-elements ── */
.card-header      { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.5rem; }
.card-title       { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.card-description { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.card-content     { padding: 0 1.5rem 1.5rem; }
.card-footer      { display: flex; align-items: center; padding: 0 1.5rem 1.5rem; }

/* ── Spinner ── */
.spinner {
  display: inline-block; width: 1.5rem; height: 1.5rem;
  border: 2px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animate helpers ── */
.animate-fade-in  { animation: fadeIn 0.5s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease-out forwards; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
