/* Sportio static pages — shared design tokens and layout.
   Do NOT import assets/styles/main.css (Angular bundle). */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
  --theme-green: #cdfe44;
  --theme-blue: #2694ff;
  --theme-light-gray: #7676801f;
  --theme-dark: #072030;

  --bg-lime-green: #cdfe44;
  --bg-gray: #07203012;

  --text-dark: #072030;
  --text-white: #fafafa;
  --text-gray: #808080;
  --text-muted: #64748b;

  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #d97706;

  --border-radius: 40px;
  --border-radius-s: 8px;
  --border-radius-m: 12px;
  --border-radius-l: 16px;

  --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-sm: 0 1px 5px 0.1px rgba(0, 0, 0, 0.12);

  --header-height: 93px;
  --content-max-width: 640px;
  --page-max-width: 1024px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--text-dark);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────── */

.sportio-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: #fff;
  box-shadow: var(--shadow-header);
}

.sportio-header__logo {
  height: 45px;
  width: auto;
}

.sportio-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Page shell ───────────────────────────────────────── */

.sportio-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 4rem;
}

.sportio-page--centered {
  justify-content: center;
  padding-top: var(--header-height);
}

.sportio-content {
  width: 100%;
  max-width: var(--content-max-width);
}

.sportio-content--wide {
  max-width: var(--page-max-width);
}

/* ── Card ─────────────────────────────────────────────── */

.sportio-card {
  background: #fff;
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-align: center;
}

@media (max-width: 480px) {
  .sportio-card {
    padding: 1.5rem 1rem;
  }
}

/* ── Typography ───────────────────────────────────────── */

.sportio-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.sportio-subtitle {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.sportio-text {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.sportio-text--small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sportio-text--blue {
  color: var(--theme-blue);
}

/* ── Buttons ──────────────────────────────────────────── */

.sportio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sportio-btn--green {
  background-color: var(--theme-green);
  color: var(--text-dark);
}

.sportio-btn--green:hover {
  background-color: #bcf526;
}

.sportio-btn--blue {
  background-color: var(--theme-blue);
  color: var(--text-white);
}

.sportio-btn--blue:hover {
  background-color: #1b7bf5;
}

.sportio-btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.sportio-btn--outline:hover {
  background-color: var(--bg-gray);
}

.sportio-link {
  font-weight: 600;
  font-style: italic;
  color: var(--theme-blue);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.sportio-link:hover {
  color: #1b7bf5;
}

/* ── State panels ─────────────────────────────────────── */

.sportio-state {
  display: none;
}

.sportio-state.is-active {
  display: block;
}

.sportio-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.sportio-state__icon--success {
  background-color: #dcfce7;
  color: var(--color-success);
}

.sportio-state__icon--error {
  background-color: #fee2e2;
  color: var(--color-error);
}

.sportio-state__icon--info {
  background-color: #dbeafe;
  color: var(--theme-blue);
}

/* ── Spinner ──────────────────────────────────────────── */

.sportio-spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--bg-gray);
  border-top-color: var(--theme-blue);
  border-radius: 50%;
  animation: sportio-spin 0.8s linear infinite;
}

@keyframes sportio-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Alert banners ────────────────────────────────────── */

.sportio-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-s);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}

.sportio-alert--success {
  background-color: #dcfce7;
  color: #166534;
}

.sportio-alert--error {
  background-color: #fee2e2;
  color: #991b1b;
}

.sportio-alert--warning {
  background-color: #fef3c7;
  color: #92400e;
}

.sportio-alert--info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* ── Form fields (set-password) ───────────────────────── */

.sportio-field {
  margin-bottom: 1rem;
  text-align: left;
}

.sportio-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.sportio-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--bg-gray);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.sportio-input:focus {
  box-shadow: 0 0 0 2px var(--theme-blue);
}

.sportio-field-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-error);
}

/* ── Deeplink bridge splash ───────────────────────────── */

.sportio-bridge-splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.sportio-bridge-splash__logo {
  display: block;
  margin: 0 auto 1.25rem;
  height: 45px;
  width: auto;
}

.sportio-bridge-splash__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--bg-gray);
  border-top-color: var(--theme-blue);
  border-radius: 50%;
  animation: sportio-bridge-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes sportio-bridge-spin {
  to {
    transform: rotate(360deg);
  }
}

.sportio-bridge-splash__status {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.sportio-bridge-splash__link {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.sportio-bridge-splash__link a {
  color: var(--theme-blue);
  text-decoration: underline;
}

.sportio-bridge-splash__link a:hover {
  text-decoration: none;
}

#bridge-help {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
  line-height: 1.4;
}

/* Legacy deeplink card (example pages) */

.sportio-deeplink {
  text-align: center;
}

.sportio-deeplink__app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--bg-gray);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.sportio-deeplink__app-badge svg {
  flex-shrink: 0;
}

/* ── Utilities ────────────────────────────────────────── */

.sportio-mt-1 { margin-top: 0.5rem; }
.sportio-mt-2 { margin-top: 1rem; }
.sportio-mt-3 { margin-top: 1.5rem; }
.sportio-mb-2 { margin-bottom: 1rem; }
.sportio-hidden { display: none !important; }

.sportio-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
