/* ==========================================================================
   Buttons — Edge Pharma
   Base button shell + modifiers. The primary CTA (used by the nav's
   "Contact Us" button) is fully styled here per spec: 48px height, 24px
   horizontal padding, 999px radius, primary color, lift + shadow on
   hover. Every other modifier, plus Pagination and Tabs, remains a
   structural shell to be finished in a later step.
   ========================================================================== */

/* ---------------------------------------------------------------------
   Button
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  padding-block: var(--space-3);
  padding-inline: var(--space-6); /* 24px */
  border-radius: var(--radius-full); /* 999px */
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Higher specificity than the generic .btn hover in css/animations.css,
   so this exact 250ms lift + shadow treatment always wins. */
.btn.btn--primary {
  transition: transform 250ms var(--ease-default),
              background-color 250ms var(--ease-default),
              box-shadow 250ms var(--ease-default);
}

.btn.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

.btn--secondary {
  /* styled in a later step */
}

.btn--outline {
  /* styled in a later step */
}

.btn--ghost {
  /* styled in a later step */
}

.btn--sm {
  height: 40px;
  padding-block: var(--space-2);
  padding-inline: var(--space-4);
  font-size: var(--fs-body-sm);
}

.btn--lg {
  height: 56px;
  padding-block: var(--space-4);
  padding-inline: var(--space-8);
  font-size: var(--fs-body-lg);
}

/* Ripple hook — positioned/triggered by JS in a later step,
   animation itself lives in css/animations.css */
.btn__ripple {
  position: absolute;
  border-radius: var(--radius-full);
  transform: scale(0);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-medium);
}

.pagination__item.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

/* ---------------------------------------------------------------------
   Tabs
   --------------------------------------------------------------------- */

.tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tabs__item {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-2);
  padding-inline: var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--fw-medium);
}

.tabs__item.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}
