/* ============================================
   app-base.css
   ============================================
   Base styles including CSS variables comment, global resets,
   typography (h1-h6), body styles, and mobile tab-bar navigation.
   ============================================ */

/* ============================================ CSS VARIABLES CONSOLIDATED ============================================ All CSS variables have been consolidated into wodpilot.css See :root block in app/static/wodpilot.css for the complete list ============================================ */
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-surface-page);
  color: var(--color-text-primary);
}

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

a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

a:visited {
  color: var(--color-primary);
}

/* Movement-glossary link: keeps the board terse - the name stays its normal colour with a subtle
   dotted underline signalling it is tappable, going solid on hover. See brief-movement-glossary. */
.glossary-link,
.glossary-link:visited {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 2px;
}

.glossary-link:hover {
  color: var(--color-primary);
  text-decoration-style: solid;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  margin-top: 0;
  line-height: var(--wp-leading-tight);
}

h1 {
  font-size: var(--wp-text-2xl);
  font-weight: var(--wp-weight-medium);
}

h2 {
  font-size: var(--wp-text-xl);
  font-weight: var(--wp-weight-medium);
}

h3 {
  font-size: var(--wp-text-lg);
  font-weight: var(--wp-weight-medium);
}

h4 {
  font-size: var(--wp-text-base);
  font-weight: var(--wp-weight-medium);
}

h5 {
  font-size: var(--wp-text-sm);
  font-weight: var(--wp-weight-medium);
}

h6 {
  font-size: var(--wp-text-xs);
  font-weight: var(--wp-weight-medium);
  letter-spacing: 0.04em;
}

.tab-bar {
  display: none;
}

@media (max-width: 640px) {
  .tab-bar {
    display: flex;
    position: fixed;
    /* Cancel the inherited `top: 0` from the bare `nav` selector (nav.css) - without
       this the tab-bar resolves to `fixed; top:0; bottom:0` and stretches to full
       viewport height, painting its opaque background over the whole page on mobile. */
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface-nav);
    border-top: var(--border-default);
    padding: 0;
    gap: 0;
    z-index: var(--wp-z-sticky);
  }

  .tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    color: var(--wp-text-nav);
    text-decoration: none;
    font-size: 0.7rem;
    opacity: 0.65;
    transition: opacity var(--wp-duration-base);
  }

  .tab-bar__item:hover,
  .tab-bar__item--active {
    opacity: 1;
    color: var(--wp-interactive);
  }

  .tab-bar__icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .tab-bar__label {
    display: block;
  }

  main {
    padding-bottom: 5rem;
  }
}

.banner-onboarding-incomplete {
  background: var(--color-info-bg);
  color: var(--color-info-light);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: var(--wp-text-base);
  border-bottom: var(--border-emphasis);
  margin-bottom: 1rem;
}

.banner-verify-email {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: var(--wp-text-base);
  border-bottom: var(--border-emphasis);
  margin-bottom: 1rem;
}

.banner-onboarding-incomplete__link {
  color: var(--color-info-light);
}