/**
 * Button System
 * Modern buttons with gradients and effects
 */

/* ============================================
   BASE BUTTON
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

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

/* ============================================
   HERO BUTTONS (Primary with Gradient)
   ============================================ */
.btn-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(226, 1, 205, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, var(--secondary), var(--primary)); */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 1, 205, 0.5);
}

.btn-hero:hover::before {
  opacity: 1;
}

.btn-hero span {
  position: relative;
  z-index: 1;
}

/* ============================================
   SECONDARY HERO BUTTON
   ============================================ */
.btn-hero-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
  box-shadow: var(--shadow-md);
}

.btn-hero-secondary:hover {
  background: rgba(226, 1, 205, 0.1);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* ============================================
   GLASS BUTTONS
   ============================================ */
.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
}

.btn-glass:hover {
  background: rgba(226, 1, 205, 0.1);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ============================================
   OUTLINED BUTTONS
   ============================================ */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   GHOST BUTTONS
   ============================================ */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--accent);
}

/* ============================================
   DESTRUCTIVE BUTTON
   ============================================ */
.btn-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.btn-destructive:hover {
  background: hsl(0, 84.2%, 55%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ============================================
   BUTTON SIZES
   ============================================ */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  font-family: inherit;
  border-radius: var(--radius);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* ============================================
   ICON BUTTONS
   ============================================ */
.btn-icon {
  padding: 0.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.btn-icon.btn-sm {
  padding: 0.5rem;
}

.btn-icon.btn-lg {
  padding: 1rem;
}

/* ============================================
   BUTTON GROUP
   ============================================ */
.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   LOADING STATE
   ============================================ */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================
   ADDITIONAL BUTTONS (for additional pages)
   ============================================ */
.btn-additional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    font-family: var(--main-font);
    line-height: 1;
}

.btn-additional svg {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

.btn-additional.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(226, 1, 205, 0.3);
}

.btn-additional.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(226, 1, 205, 0.5);
}

.btn-additional.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-glow) 100%);
    color: var(--secondary-alter-foreground);
    box-shadow: 0 0 20px rgba(51, 240, 240, 0.3);
}

.btn-additional.btn-secondary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(51, 240, 240, 0.5);
}