/* GiftABook — custom styles (Tailwind CSS loaded via CDN in base.html) */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Typography — apply Inter globally */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif headings utility — used with font-serif Tailwind class (Lora) */
.font-serif {
  font-family: 'Lora', Georgia, serif;
}

/* Better focus rings — override Tailwind default */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth hover transitions on interactive elements */
a, button {
  transition: color 150ms ease, background-color 150ms ease,
              border-color 150ms ease, box-shadow 150ms ease,
              transform 150ms ease, opacity 150ms ease;
}

/* Auth form inputs — allauth renders plain <input> elements without CSS classes */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #111827;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.auth-form input.is-invalid {
  border-color: #f87171;
}

/* HTMX loading indicator — hidden by default, shown during in-flight requests */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* Inline remove confirmation — toggled via .confirming class on [data-remove] */
[data-remove] .remove-init   { display: flex; align-items: center; }
[data-remove] .remove-confirm { display: none; }
[data-remove].confirming .remove-init { display: none; }
[data-remove].confirming .remove-confirm { display: inline-flex; align-items: center; }
/* Keep the control visible while awaiting confirmation (even if row is un-hovered) */
[data-remove].confirming { opacity: 1 !important; }
