/* Sortibecuriousattic – global styles (complements Tailwind CSS) */
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

/* Hero background: subtle sports imagery (floodlit football stadium) */
.hero-sports-texture {
  background-image: url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=60");
  background-size: cover;
  background-position: center;
}

/* 3D map pins */
.sba-pin { background: transparent !important; border: 0 !important; }
.pin {
  position: relative; display: block; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0; background: var(--pin, #D61F2C);
  transform: rotate(-45deg);
  box-shadow: -4px 4px 8px rgba(0,0,0,.45), inset -3px 3px 0 rgba(255,255,255,.22), inset 2px -2px 0 rgba(0,0,0,.18);
  animation: pinDrop .8s cubic-bezier(.2,1.4,.4,1) both;
}
.pin::after {
  content: ""; position: absolute; width: 10px; height: 10px; top: 8px; left: 8px;
  background: #F5F5F5; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08);
}
.pin-pulse {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2px solid var(--pin, #D61F2C); opacity: 0;
  animation: pinPulse 2.6s ease-out infinite;
}
.pin-user { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }

@keyframes pinDrop { from { transform: translateY(-36px) rotate(-45deg); opacity: 0; } to { transform: translateY(0) rotate(-45deg); opacity: 1; } }
@keyframes pinPulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Floating hero cards */
.float-card { animation: floatY 6s ease-in-out infinite; transform-style: preserve-3d; }
.float-card.delay { animation-delay: -3s; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotateX(6deg) rotateY(-8deg); } 50% { transform: translateY(-12px) rotateX(6deg) rotateY(-8deg); } }

/* Venue cards */
.venue-card { transition: transform .35s ease, box-shadow .35s ease; }
.venue-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(16,24,39,.45); }

/* Leaflet adjustments */
.leaflet-container { font-family: inherit; background: #101827; }
.map-light.leaflet-container { background: #e5e7eb; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); }
.leaflet-popup-content { margin: 14px 16px; min-width: 210px; }

/* Cookie banner & toast */
.cookie-in { animation: slideUp .45s ease both; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#sbaToast { transition: opacity .3s ease, transform .3s ease; }

/* Cookie settings: toggle switches */
.sba-switch { position: relative; display: inline-flex; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.sba-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sba-slider { position: absolute; inset: 0; background: #D1D5DB; border-radius: 999px; transition: background .2s ease; pointer-events: none; }
.sba-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease;
}
.sba-switch input:checked + .sba-slider { background: #D61F2C; }
.sba-switch input:checked + .sba-slider::after { transform: translateX(20px); }
.sba-switch input:focus-visible + .sba-slider { outline: 2px solid #D4AF37; outline-offset: 2px; }

/* Cookie settings: detail disclosure */
.cookie-details summary { list-style: none; }
.cookie-details summary::-webkit-details-marker { display: none; }
.cookie-details summary::after { content: "▾"; font-size: 10px; transition: transform .2s ease; }
.cookie-details[open] summary::after { transform: rotate(180deg); }

/* FAQ */
details summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .25s ease; }

/* Lightbox */
#lightbox.open { display: flex; }

/* ---------- 18+ age gate ---------- */
/* Site content stays hidden until the visitor has confirmed their age */
html:not(.sba-content-ok) body { background: #101827; overflow: hidden; }
html:not(.sba-content-ok) body > *:not(#sbaAgeGate):not(#cookieModal):not(#sbaToast) { visibility: hidden !important; }

/* Without JavaScript the age check cannot run – explain instead of showing content */
@media (scripting: none) {
  html:not(.sba-content-ok) body::before {
    content: "18+ only. Please enable JavaScript to confirm that you are 18 years or older and access this website.";
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 2rem;
    text-align: center; font-weight: 600; font-size: 1.05rem; line-height: 1.6; color: #F5F5F5; background: #101827;
  }
}

.sba-gate {
  position: fixed; inset: 0; z-index: 2000; display: flex; padding: 1rem;
  overflow-y: auto; background: #101827; font-family: inherit; -webkit-overflow-scrolling: touch;
}
.sba-gate-stadium-backdrop {
  position: absolute; inset: 0; opacity: .2;
  background-image: url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=60");
  background-size: cover; background-position: center;
}
.sba-gate__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(16,24,39,.55) 0%, #101827 78%); }
.sba-gate__inner { position: relative; width: 100%; max-width: 31rem; margin: auto; }
.sba-gate__card {
  background: #fff; color: #1C1F24; border-radius: 1.5rem; padding: 2rem 1.25rem; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  animation: gateIn .45s ease both;
}
@media (min-width: 640px) { .sba-gate__card { padding: 2.5rem; } }
.sba-gate__brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #101827; }
.sba-gate__logo { width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: #D61F2C; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(214,31,44,.6); }
.sba-gate__logo svg { width: 1.25rem; height: 1.25rem; }
.sba-gate__gold { color: #A8841A; }
.sba-gate__badge {
  margin: 1.5rem auto 0; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
  color: #101827; background: #D4AF37; box-shadow: 0 0 0 6px rgba(212,175,55,.22);
}
.sba-gate__badge--stop { background: #D61F2C; color: #fff; box-shadow: 0 0 0 6px rgba(214,31,44,.15); }
.sba-gate__title { margin-top: 1.25rem; font-size: 1.6rem; line-height: 1.2; font-weight: 800; color: #101827; letter-spacing: -.02em; }
.sba-gate__title:focus { outline: none; }
@media (min-width: 640px) { .sba-gate__title { font-size: 1.9rem; } }
.sba-gate__text { margin-top: .75rem; font-size: .95rem; line-height: 1.6; color: #4B5563; }
.sba-gate__actions { margin-top: 1.75rem; display: grid; gap: .75rem; }
@media (min-width: 480px) { .sba-gate__actions { grid-template-columns: 1fr 1fr; } .sba-gate__actions--single { grid-template-columns: 1fr; } }
.sba-gate__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1rem;
  border-radius: .75rem; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sba-gate__btn--yes { background: #D61F2C; color: #fff; }
.sba-gate__btn--yes:hover { background: #B91C1C; }
.sba-gate__btn--no { background: #fff; color: #101827; border-color: #101827; }
.sba-gate__btn--no:hover { background: #101827; color: #fff; }
.sba-gate__btn:focus-visible { outline: 3px solid #D4AF37; outline-offset: 2px; }
.sba-gate__note { margin-top: 1.25rem; font-size: .75rem; line-height: 1.55; color: #6B7280; }
.sba-gate__info { margin-top: 1.25rem; padding: 1rem; border-radius: .75rem; background: #F5F5F5; font-size: .85rem; line-height: 1.55; color: #374151; text-align: left; }
.sba-gate__info a { color: #D61F2C; font-weight: 700; white-space: nowrap; }
.sba-gate__links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #F3F4F6; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; font-size: .75rem; }
.sba-gate__links a, .sba-gate__links button {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #D61F2C; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.sba-gate__links a:focus-visible, .sba-gate__links button:focus-visible, .sba-gate__info a:focus-visible, .sba-gate__legal a:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; border-radius: 2px; }
.sba-gate__legal { margin-top: 1rem; text-align: center; font-size: .72rem; line-height: 1.5; color: rgba(245,245,245,.7); }
.sba-gate__legal a { color: #D4AF37; font-weight: 600; white-space: nowrap; }
@keyframes gateIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}