/* Statler's Fun Center — Custom Stylesheet */

/* ── Checkered flag pattern ──────────────────────────────────────────────── */
.checkered-bar {
  background-image: repeating-conic-gradient(#111827 0% 25%, #fff 0% 50%);
  background-size: 20px 20px;
}

.checkered-overlay {
  background-image: repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%);
  background-size: 40px 40px;
}

.checkered-divider {
  width: 80px;
  height: 8px;
  background-image: repeating-conic-gradient(#DC2626 0% 25%, #F59E0B 0% 50%);
  background-size: 16px 8px;
  border-radius: 4px;
}

/* ── Hero section confetti dots ──────────────────────────────────────────── */
.confetti-dot {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  50%       { transform: translateY(-20px) rotate(180deg); opacity: 0.4; }
}

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

/* ── Focus ring for accessibility ────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #DC2626;
  outline-offset: 2px;
}

/* ── Lazy image placeholder ──────────────────────────────────────────────── */
.lazy-img {
  background: #f3f4f6;
  transition: opacity 0.3s;
}

/* ── Alpine.js cloak ─────────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── FullCalendar overrides ──────────────────────────────────────────────── */
/* Fix Tailwind preflight stripping native button styles */
.fc .fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: #DC2626;
  color: #fff;
  transition: background-color 0.15s;
}
.fc .fc-button:hover { background-color: #b91c1c; }
.fc .fc-button:disabled { opacity: 0.6; cursor: not-allowed; }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background-color: #991b1b; }
.fc .fc-button-group { display: inline-flex; }
.fc .fc-button-group .fc-button { border-radius: 0; }
.fc .fc-button-group .fc-button:first-child { border-radius: 0.375rem 0 0 0.375rem; }
.fc .fc-button-group .fc-button:last-child  { border-radius: 0 0.375rem 0.375rem 0; }

/* Restore FullCalendar prev/next chevron icons wiped by Tailwind preflight */
.fc .fc-icon {
  display: inline-block;
  font-family: inherit;
  font-size: 1.2em;
  line-height: 1;
  speak: never;
  -webkit-font-smoothing: antialiased;
}
.fc .fc-icon-chevron-left::before  { content: "‹"; font-size: 1.4em; line-height: 0.8; }
.fc .fc-icon-chevron-right::before { content: "›"; font-size: 1.4em; line-height: 0.8; }
.fc .fc-prev-button,
.fc .fc-next-button { min-width: 2rem; padding: 0.375rem 0.5rem; }

.fc .fc-toolbar-title {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
}

.fc .fc-event {
  border-radius: 6px;
  border: none;
  padding: 1px 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.fc .fc-daygrid-event-dot {
  border-color: #DC2626;
}

/* ── Print styles ────────────────────────────────────────────────────────── */
@media print {
  nav, footer, .checkered-bar { display: none !important; }
}

/* ── Responsive table ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  table { font-size: 0.8rem; }
}

/* ── Custom scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #DC2626; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b91c1c; }

/* ── Skip to content (accessibility) ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #DC2626;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 6px; }
