/* =============================================================================
   assets/css/buttons.css
   -----------------------------------------------------------------------------
   Every button/link styled to look like a button (class="btn") lives here.
   .btn is the base look; the other classes (.btn-outline, .btn-accent, etc.)
   are added ON TOP of .btn to change its color, e.g.:
     <a class="btn btn-accent">Shop Now</a>
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), background var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

/* Outlined button: just a border, no fill, used for secondary actions. */
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* Accent button: uses the brighter accent color, for the main call-to-action. */
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 70%, var(--color-primary-dark)));
}

.btn-accent:hover {
  box-shadow: var(--shadow-glow);
}

/* Danger button: red, for destructive actions like "Delete" or "Remove". */
.btn-danger {
  background: var(--color-danger);
}

/* Smaller button, e.g. inside a product card. */
.btn-sm {
  padding: .45rem 1rem;
  font-size: .85rem;
}

/* Button used in the top navigation bar ("Sign up").
   border-radius: 999px is what makes this a "pill" shape -- it rounds the
   corners as much as the button's own height allows. That trick only looks
   right if the padding stays small/compact, like the plain text links next
   to it in the nav bar; a big padding value here makes the button grow much
   taller than the nav bar, and the pill shape turns into an oversized blob
   instead of a normal rounded button. Keep padding small (under ~1rem
   vertically) for anything using border-radius: 999px in a nav bar. */
/* Solid color, not a gradient -- a gradient's lighter corner made the white
   text hard to read in one spot. A single darkened accent shade keeps the
   white text at a consistent, readable contrast across the whole button. */
.btn-nav {
  background: color-mix(in srgb, var(--color-accent) 75%, var(--color-primary-dark));
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
}

/* Makes a button/link fill the full width of its parent -- handy for the
   submit button under a narrow login/register form. */
.btn-block {
  width: 100%;
  justify-content: center;
}
