/**
 * JamWatHQ Shared Button Styles
 * Standardized button styling for consistent UI across the site
 */

:root {
  --btn-standard-font-size: 1rem;
  --btn-standard-font-weight: 600;
  --btn-standard-padding-y: 0.85em;
  --btn-standard-padding-x: 2.4em;
  --btn-standard-radius: 999px;
  --btn-standard-gap: 0.55em;
  --btn-standard-line-height: 1.2;
  --btn-standard-transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-standard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-standard-gap);
  padding: var(--btn-standard-padding-y) var(--btn-standard-padding-x);
  border-radius: var(--btn-standard-radius);
  border: none;
  font-size: var(--btn-standard-font-size);
  font-weight: var(--btn-standard-font-weight);
  line-height: var(--btn-standard-line-height);
  background-color: #28a745;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  min-height: 2.75em;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.25);
  transition: var(--btn-standard-transition);
  white-space: nowrap;
  text-align: center;
}

.btn-standard:hover,
.btn-standard:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(40, 167, 69, 0.35);
  text-decoration: none;
  color: inherit;
}

.btn-standard:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-standard:focus-visible {
  outline: 3px solid #ffee00;
  outline-offset: 3px;
}

.btn-standard:disabled,
.btn-standard[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-standard:disabled:hover,
.btn-standard[disabled]:hover {
  transform: none;
}

.btn-standard i,
.btn-standard svg {
  flex-shrink: 0;
}

/* ============================================
   VARIANT STYLES
   ============================================ */

.btn-standard.btn-primary {
  background: #ffee00;
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 238, 0, 0.35);
}

.btn-standard.btn-primary:hover,
.btn-standard.btn-primary:focus {
  background: #fff45a;
  box-shadow: 0 8px 20px rgba(255, 238, 0, 0.4);
}

.btn-standard.btn-success {
  background: #28a745;
  color: #ffffff;
}

.btn-standard.btn-success:hover,
.btn-standard.btn-success:focus {
  background: #218838;
}

.btn-standard.btn-danger,
.btn-standard.btn-decline {
  background: #dc3545;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
}

.btn-standard.btn-danger:hover,
.btn-standard.btn-danger:focus,
.btn-standard.btn-decline:hover,
.btn-standard.btn-decline:focus {
  background: #c82333;
}

.btn-standard.btn-secondary {
  background: #343a40;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(52, 58, 64, 0.35);
}

.btn-standard.btn-secondary:hover,
.btn-standard.btn-secondary:focus {
  background: #23272b;
}

.btn-standard.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: #ffee00;
  box-shadow: none;
}

.btn-standard.btn-outline:hover,
.btn-standard.btn-outline:focus {
  background: rgba(255, 238, 0, 0.1);
  box-shadow: 0 6px 16px rgba(255, 238, 0, 0.3);
}

.btn-standard.btn-neutral {
  background: #2e2e2e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-standard.btn-neutral:hover,
.btn-standard.btn-neutral:focus {
  background: #474747;
}

.btn-standard.btn-google {
  background: #4285f4;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}

.btn-standard.btn-google:hover,
.btn-standard.btn-google:focus {
  background: #2f6be1;
}

.btn-standard.btn-facebook {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.btn-standard.btn-facebook:hover,
.btn-standard.btn-facebook:focus {
  background: #0f62d6;
}

.btn-standard.btn-light {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

.btn-standard.btn-light:hover,
.btn-standard.btn-light:focus {
  background: #f2f2f2;
}

/* Keep backwards compatibility for legacy class names */
.btn-standard.btn-accept {
  background: #28a745;
}

.btn-standard.btn-decline {
  background: #dc3545;
}

/* ============================================
   SIZE & LAYOUT VARIANTS
   ============================================ */

.btn-standard.btn-small {
  --btn-standard-font-size: 0.9rem;
  --btn-standard-padding-y: 0.55em;
  --btn-standard-padding-x: 1.6em;
}

.btn-standard.btn-large {
  --btn-standard-font-size: 1.1rem;
  --btn-standard-padding-y: 1em;
  --btn-standard-padding-x: 3em;
}

.btn-standard.btn-block {
  width: 100%;
  display: inline-flex;
}

.btn-standard.btn-inline {
  margin: 0.4em 0.4em 0.4em 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media screen and (max-width: 768px) {
  .btn-standard {
    --btn-standard-font-size: 0.95rem;
    --btn-standard-padding-y: 0.75em;
    --btn-standard-padding-x: 2em;
  }
}

@media screen and (max-width: 480px) {
  .btn-standard {
    --btn-standard-font-size: 0.9rem;
    --btn-standard-padding-y: 0.7em;
    --btn-standard-padding-x: 1.7em;
    min-height: 2.5em;
  }
}

/* ============================================
   DISABLED STATE
   ============================================ */

.btn-standard:disabled,
.btn-standard.disabled,
.btn-standard[aria-disabled="true"] {
  background: #5a5a5a;
  color: #d9d9d9;
  box-shadow: none;
}

.btn-standard.btn-primary:disabled,
.btn-standard.btn-primary[disabled] {
  background: rgba(255, 238, 0, 0.4);
  color: rgba(0, 0, 0, 0.55);
}
