/* =========================
   PlaygroundsGuide.com
   Global styles (clean)
   ========================= */

/* Design tokens */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --ring: rgba(15, 23, 42, 0.12);

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 10px 25px rgba(2, 6, 23, 0.08);

  --radius: 16px;
  --radius-sm: 12px;

  --max: 1100px;
}

/* Base reset */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;

  /* Keep the nice background, but make it consistent */
  background: radial-gradient(1200px 500px at 50% -100px, #e0f2fe 0%, var(--bg) 55%);
}

/* Typography */
h1 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 20px;
  margin: 22px 0 10px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 16px;
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}
p { margin: 0 0 12px; line-height: 1.65; }

.muted { color: var(--muted); }
.kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

main {
  padding: 26px 0 48px;
  /* Prevent “mystery divider lines” from wrapper borders */
  border: 0;
  background: transparent;
}

/* If your layout uses .page, keep it simple */
.page { padding: 0; }

/* =========================
   Header (BaseLayout.astro)
   Markup expected:
   .site-header > .container.nav-row
   .brand + .nav-links with .nav-link + .nav-dropdown
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 252, 0.78);

  /* Default: NO full-width rule */
  border-bottom: 0;
}

.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Brand (top-left) */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.brand-name {
  font-size: 16px;
}

/* Header nav items (links + dropdown button) */
.site-header .nav-link,
.site-header .nav-dropdown-toggle {
  font-family: inherit;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;

  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-header .nav-link:hover,
.site-header .nav-dropdown-toggle:hover,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  background: rgba(226, 232, 240, 0.55);
  color: var(--text);
}

/* Button reset */
.site-header .nav-dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 220px;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);

  display: none;
  z-index: 60;
  padding: 6px;
}

/* Hover bridge */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 10px;
}

.nav-dropdown-item:hover {
  background: rgba(226, 232, 240, 0.55);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* =========================
   Cards / Lists / Grid
   ========================= */

.card,
.list-item {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card { padding: 16px; }

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.list-item {
  padding: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.list-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 163, 184, 0.55);
}

.title {
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 14px;
  color: rgba(30, 41, 59, 0.85);
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 163, 184, 0.55);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

/* Utilities */
.section { margin-top: 18px; }

/* Make long URLs wrap nicely */
a, p, li { overflow-wrap: anywhere; }

/* Kill accidental divider elements */
hr { display: none; }

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.75);
}
.footer-inner {
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   Dev bar suppression (covers common patterns)
   ========================= */

/* Your earlier selector suggests a dev bar exists; hide common IDs/classes */
#dev-bar,
.dev-bar,
[data-dev-bar],
#devbar,
#debug-bar,
.debug-bar {
  display: none !important;
}

.footer-cities-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 10px;
}

.footer-cities-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin-right: 6px;
}

.footer-cities-inline a {
  color: var(--muted);
  text-decoration: none;
}

.footer-cities-inline a:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--border);
}
