/*
 * styles.css — local replacement for the Tailwind 2.2.19 CDN build.
 * Defines only the utility classes the site actually uses (plus a small
 * preflight so removing Tailwind's reset doesn't shift the layout) and the
 * site's custom components. Keep this in sync if new utility classes are
 * added to the markup; there is no build step that generates it.
 */

/* --- Preflight (subset of Tailwind's reset) --- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  line-height: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, iframe { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }

/* --- Layout / position --- */
.container { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.aspect-video { aspect-ratio: 16 / 9; }

/* --- Display / flexbox / grid --- */
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* --- Spacing --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-8 { padding-top: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.h-full { height: 100%; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.min-h-\[100px\] { min-height: 100px; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }

/* --- Colors --- */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }
.text-blue-500 { color: #3b82f6; }
.text-red-500 { color: #ef4444; }

/* --- Borders / radius / shadow --- */
.rounded-lg { border-radius: 0.5rem; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-gray-700 { border-color: #374151; }
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Opacity (spinner parts) --- */
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }

/* --- Hover states --- */
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-gray-200:hover { color: #e5e7eb; }

/* --- Responsive (md: ≥ 768px) --- */
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) {
  .container { max-width: 768px; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:gap-8 { gap: 2rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* --- Custom components --- */
.wave-pattern {
  background: linear-gradient(45deg, #1e3a8a 25%, transparent 25%) -50px 0,
              linear-gradient(-45deg, #1e3a8a 25%, transparent 25%) -50px 0,
              linear-gradient(45deg, transparent 75%, #1e3a8a 75%),
              linear-gradient(-45deg, transparent 75%, #1e3a8a 75%);
  background-size: 100px 100px;
  background-color: #2563eb;
}
@media (max-width: 768px) {
  .wave-pattern { background-size: 50px 50px; }
}

.loading-spinner { animation: spin 1s linear infinite; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.play-button-overlay:hover { background: rgba(0, 0, 0, 0.6); }
