/* ==========================================================================
   BRITISH PUDDLEBALL DIRECTORY — THEME FRAMEWORK
   Domain: britishpuddleball.com
   Location: London, UK
   Theme: Nordic Frost & Arctic Glaze (Dark Mode)
   Prefix: bsl-
   ========================================================================== */

:root {
  --bg: #09141b;
  --surface: #17253a;
  --surface-hover: #1f324d;
  --surface-border: rgba(66, 233, 251, 0.22);
  --surface-border-subtle: rgba(255, 255, 255, 0.08);
  --primary: #42e9fb;
  --primary-hover: #68f1f8;
  --primary-dim: rgba(66, 233, 251, 0.15);
  --accent: #a2d7fb;
  --accent-soft: rgba(162, 215, 251, 0.12);
  --text-main: #f0f9ff;
  --text-muted: #7fb4d6;
  --text-dim: #537591;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(66, 233, 251, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --header-bg: rgba(9, 20, 27, 0.94);
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Layout Utilities */
.bsl-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.bsl-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;
}

/* Badge & Buttons */
.bsl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--surface-border);
}

.bsl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.bsl-btn-primary {
  background: var(--primary);
  color: #09141b;
  box-shadow: 0 4px 20px rgba(66, 233, 251, 0.35);
}

.bsl-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 233, 251, 0.5);
}

.bsl-btn-outline {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.bsl-btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.bsl-btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Interactive Link Button Helper */
.bsl-btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.bsl-btn-link:hover {
  color: var(--primary-hover);
}

/* Selection & Scrollbar */
::selection {
  background: var(--primary);
  color: #09141b;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1c304a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
