/**
 * Button component styles — .btn, variants, states
 * Split from components.css — Phase 3.2
 */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Primary Button - Premium Gradient */
.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn--primary:hover:not(:disabled)::before {
  left: 100%;
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-primary);
}

/* Secondary Button */
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-lighter);
}

/* Ghost/Text Button */
.btn--text {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
}

.btn--text:hover:not(:disabled) {
  color: var(--color-primary);
  background: var(--color-primary-lighter);
}

/* Icon Button */
.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
}

.btn--icon:hover:not(:disabled) {
  background: var(--color-surface);
  border-color: var(--color-border-hover);
}

/* Full Width */
.btn--full {
  width: 100%;
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-md);
}

/* Button States */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn__loader {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

