/* Shared utilities that are used in the Razor views but missing from the
   checked-in static tailwind.css build. Keep additions here rather than
   editing the generated/minified file. */

/* ---------- Buttons (moved from the Home page so every view gets them) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32);
  transform: translateY(-1px);
}
.btn-primary:disabled { box-shadow: none; transform: none; opacity: 0.6; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { background: #fff; border-color: #d1d5db; }

/* ---------- Vertical rhythm ---------- */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f3f4f6; }

/* ---------- Borders, spacing and alignment ---------- */
.border-b { border-bottom-width: 1px; }
.border-blue-700 { border-color: #1d4ed8; }
.border-rose-700 { border-color: #be123c; }
.border-violet-500 { border-color: #8b5cf6; }
.items-end { align-items: flex-end; }
.self-center { align-self: center; }
.pb-2 { padding-bottom: 0.5rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-2 { bottom: 0.5rem; }
.w-28 { width: 7rem; }
.w-40 { width: 10rem; }
.w-44 { width: 11rem; }
.w-px { width: 1px; }
.min-w-\[110px\] { min-width: 110px; }
.min-w-\[120px\] { min-width: 120px; }
.min-w-\[130px\] { min-width: 130px; }
.max-h-full { max-height: 100%; }
.max-w-full { max-width: 100%; }
.max-w-sm { max-width: 24rem; }
.break-all { word-break: break-all; }
.break-words { overflow-wrap: break-word; }
.cursor-move { cursor: move; }
.normal-case { text-transform: none; }
.normal-nums { font-variant-numeric: normal; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.text-violet-300 { color: #c4b5fd; }
.text-violet-800 { color: #5b21b6; }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-violet-500\/10 { background-color: rgba(139, 92, 246, 0.1); }

/* ---------- Hover states used across views ---------- */
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-violet-50:hover { background-color: #f5f3ff; }
.hover\:bg-violet-200:hover { background-color: #ddd6fe; }
.hover\:bg-violet-700:hover { background-color: #6d28d9; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-amber-200:hover { background-color: #fde68a; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-rose-100:hover { background-color: #ffe4e6; }
.hover\:bg-rose-200:hover { background-color: #fecdd3; }
.hover\:bg-rose-700:hover { background-color: #be123c; }
.hover\:bg-sky-100:hover { background-color: #e0f2fe; }
.hover\:bg-sky-700:hover { background-color: #0369a1; }
.hover\:bg-white\/25:hover { background-color: rgba(255, 255, 255, 0.25); }
.hover\:border-violet-300:hover { border-color: #c4b5fd; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-violet-600:hover { color: #7c3aed; }
.hover\:text-violet-700:hover { color: #6d28d9; }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Auth screens ---------- */
.auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: radial-gradient(circle at 15% 10%, #f3e8ff 0, transparent 45%),
              radial-gradient(circle at 85% 90%, #dbeafe 0, transparent 45%), #f8fafc;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-title { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #111827; }
.auth-subtitle { margin: 0 0 24px; font-size: 13px; color: #6b7280; line-height: 1.6; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #d8dce5;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.auth-submit { width: 100%; margin-top: 4px; padding: 13px 16px; }
.auth-foot {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eef0f4;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}
.auth-foot a { color: #6d28d9; font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-alert { margin-bottom: 18px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.auth-alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.auth-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-captcha { margin: 4px 0 12px; }
.auth-captcha-note { margin: -6px 0 12px; font-size: 10px; color: #9ca3af; }
.auth-field > span.auth-hint { margin: 6px 0 0; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #9ca3af; line-height: 1.5; }
.validation-summary-valid { display: none; }
.field-validation-error { display: block; margin-top: 5px; font-size: 12px; color: #dc2626; }

/* ---------- Pattern & gallery pages ---------- */
.page-surface { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 420px); }
.filter-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.pattern-card,
.gallery-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pattern-card:hover,
.gallery-card:hover {
  transform: translateY(-3px);
  border-color: #ddd6fe;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.pattern-card img,
.gallery-card img { transition: transform 0.25s ease; }
.pattern-card a:hover img,
.gallery-card a:hover img { transform: scale(1.03); }
.section-eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
}
