/* Shared styles — Pokestir Website */

/* ── Custom properties ── */
:root {
  --bg: #0b0f19;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --ring: #10B1FF;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(2,6,23,.35);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --accentbar: linear-gradient(90deg, #0050B3 0%, #10B1FF 18%, #c8eeff 32%, #FF8327 44%, #FE0E0E 50%, #FF8327 56%, #c8eeff 68%, #10B1FF 82%, #0050B3 100%);
}

/* ── Global reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Custom scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 9999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(16,177,255,.45); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) var(--bg); scroll-behavior: smooth; }

/* ── Accessibility utilities ── */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 14px; top: 14px; width: auto; height: auto; padding: 10px 12px; z-index: 100; border-radius: 12px; background: var(--panel); color: var(--text); outline: 3px solid var(--ring); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  width: 100%; box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 100%),
    rgba(11,15,25,.82);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(32px) saturate(180%) brightness(0.82);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(0.82);
}
.site-nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 6px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; box-sizing: border-box;
}
.site-nav__brand {
  flex: 0 0 auto; color: #fff; font-family: "Lato", var(--font); font-weight: 800;
  letter-spacing: .2px; line-height: 1; text-decoration: none;
  padding: 9px 10px; border: 1px solid transparent; border-radius: 12px;
}
.site-nav__logo {
  height: 36px; width: auto; display: block; transform: scale(1.25); transform-origin: center center;
}
.site-nav__toggle { display: none; }
.site-nav__links {
  flex: 0 0 auto; margin-left: auto;
  display: grid; grid-template-columns: repeat(4, auto); gap: 5px;
}
.site-nav__links a {
  box-sizing: border-box; color: var(--text); text-align: center;
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1;
  white-space: nowrap;
  padding: 9px 12px; border-radius: 12px; border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.site-nav__brand:hover,
.site-nav__links a:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.site-nav__brand:focus-visible,
.site-nav__links a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.site-nav__links a[aria-current="page"] { color: #001827; background: var(--ring); border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) {
  .site-nav__inner { padding: 10px 14px; }
  .site-nav__toggle {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; padding: 8px 10px;
    background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
    color: #fff; font-size: 20px; cursor: pointer; line-height: 1;
  }
  .site-nav__toggle:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
  .site-nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
    padding: 8px 14px 12px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 100%),
      rgba(11,15,25,.55);
    border-top: 1px solid rgba(255,255,255,.22);
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(32px) saturate(190%) brightness(0.88);
    -webkit-backdrop-filter: blur(32px) saturate(190%) brightness(0.88);
    opacity: 0; transform: translateY(-6px);
    visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .site-nav__links.is-open {
    opacity: 1; transform: translateY(0);
    visibility: visible; pointer-events: auto;
  }
  .site-nav__links a { text-align: center; }
}

/* ── Card (shared across all pages) ── */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 120%),
    var(--panel);
  border: 1px solid rgba(255,255,255,.16);
}
@supports (backdrop-filter: blur(1px)) {
  .card {
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
  }
}

/* ── Inset panel (darker nested card, no accent bar) ── */
.card-inset {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 100%),
    rgba(2,6,23,.32);
}

/* ── Accent bar (top of every .card) ── */
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  z-index: 1; pointer-events: none; opacity: .95;
  background: var(--accentbar); background-size: 200% 100%;
  animation: slidebar 9s linear infinite;
}

/* ── Keyframe animations ── */
@keyframes slidebar { 0% { background-position: 0% 0; }   100% { background-position: 200% 0; } }
@keyframes floaty   { 0% { transform: translateY(0px) rotate(0.5deg) scale(1.00); }  100% { transform: translateY(6px) rotate(-0.5deg) scale(1.01); } }

/* ── Footer ── */
.site-footer {
  text-align: center; color: var(--muted); font-size: 12px;
  padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 24px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
