/**
 * Mesada Landing - Button Components
 * Primary, secondary, and CTA button styles
 */

/* ===== Base Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-2xl);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;  /* Match Tailwind's transition-all */
}

.btn:active {
  transform: scale(0.98);
}

/* ===== Primary Button (Green CTA) ===== */
.btn-primary {
  background-color: var(--mesada-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--mesada-accent-hover);
  transform: scale(1.05);
  color: var(--color-white);  /* Ensure text stays white */
}

/* ===== Secondary Button (Ghost/Outline) ===== */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);  /* Tailwind ring-1 ring-white/40 */
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  color: var(--color-white);  /* Ensure text stays white */
}

/* ===== Rounded Full (Pill) ===== */
.btn-pill {
  border-radius: var(--radius-full);
}

/* ===== Button with Pulse Animation ===== */
.btn-pulse {
  position: relative;
}

.btn-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(34, 197, 94, 0.4);
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

/* ===== Button with Bounce Animation ===== */
.btn-bounce {
  animation: cta-bounce 10s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  animation-delay: 3s;
}

.btn-bounce:hover {
  animation-play-state: paused;
}

/* ===== Submit Button (Form) ===== */
.btn-submit {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background-color: var(--mesada-accent);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  font-weight: 500;
  transition:
    background-color var(--transition-base),
    transform var(--transition-base);
}

.btn-submit:hover {
  background-color: var(--mesada-accent-hover);
  transform: scale(1.02);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Icon Button ===== */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
