/**
 * ROMSFUN — New-pages CSS patch
 * ---------------------------------------------------------------------------
 * assets/css/site.css is a pre-built, static snapshot of Tailwind's output —
 * it only contains the exact utility classes that existed in the theme at
 * the time it was generated. Every page added since then (the dashboard,
 * the submit-ROM form, the community page, the user profile page) uses
 * class combinations that snapshot never captured, which is why inputs,
 * spacing, and cards on those pages look wrong/unstyled.
 *
 * This file supplies every class actually missing across those four
 * templates, checked directly against site.css + style.css. Enqueued only
 * on those templates — see romsfun_v2_scripts() in functions.php.
 *
 * If/when the real Tailwind build is re-run with all current .php files
 * included in its content scan, everything here becomes redundant (but
 * harmless) and this file + its enqueue can be deleted.
 */

/* ── Spacing: padding ─────────────────────────────────────────────────── */
.p-5 { padding: 1.25rem; }
.pt-5 { padding-top: 1.25rem; }
.pr-3 { padding-right: 0.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }

/* ── Spacing: margin ──────────────────────────────────────────────────── */
.mt-3 { margin-top: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }

/* ── Spacing: gap ─────────────────────────────────────────────────────── */
.gap-1\.5 { gap: 0.375rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ── Spacing: space-between ───────────────────────────────────────────── */
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

/* ── Sizing ───────────────────────────────────────────────────────────── */
.w-7 { width: 1.75rem; }
.w-9 { width: 2.25rem; }
.w-14 { width: 3.5rem; }
.h-7 { height: 1.75rem; }
.h-9 { height: 2.25rem; }
.h-14 { height: 3.5rem; }
.max-h-40 { max-height: 10rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-\[160px\] { max-width: 160px; }
.min-h-\[140px\] { min-height: 140px; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ── Grid / layout ────────────────────────────────────────────────────── */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-50 > :not([hidden]) ~ :not([hidden]) { border-color: #f9fafb; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f3f4f6; }

/* ── Borders / radius ─────────────────────────────────────────────────── */
.border-b-0 { border-bottom-width: 0px; }
.border-dashed { border-style: dashed; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* ── Typography ───────────────────────────────────────────────────────── */
.font-normal { font-weight: 400; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[11px\] { font-size: 11px; }
.list-disc { list-style-type: disc; }
.pl-5 { padding-left: 1.25rem; }

/* ── Colors ───────────────────────────────────────────────────────────── */
.text-blue-500 { color: #3b82f6; }
.text-red-500 { color: #ef4444; }
.text-green-700 { color: #15803d; }
.text-red-700 { color: #b91c1c; }
.text-green-800 { color: #166534; }
.text-red-800 { color: #991b1b; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-romfun-pink:hover { color: var(--romfun-pink, #ec4899); }
.hover\:bg-romfun-pink-dark:hover { background-color: #d6377f; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:border-romfun-pink:hover { border-color: var(--romfun-pink, #ec4899); }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:underline:hover { text-decoration-line: underline; }

/* ── Focus states ─────────────────────────────────────────────────────── */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(236,72,153,0.4)); }
.focus\:ring-romfun-pink\/30:focus { --tw-ring-color: rgb(236 72 153 / 0.3); }
.focus\:ring-romfun-pink\/40:focus { --tw-ring-color: rgb(236 72 153 / 0.4); }
.focus\:border-romfun-pink:focus { border-color: var(--romfun-pink, #ec4899); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-start { align-items: flex-start; }
  .sm\:text-left { text-align: left; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:table-cell { display: table-cell; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:table-cell { display: table-cell; }
}

@media (min-width: 1024px) {
  .lg\:w-56 { width: 14rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

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

/* Utility classes not caught by static analysis but used by the same pages */
.last\:border-0:last-child { border-width: 0px; }
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0px; }
