/* Button Component Styles */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--bg-black);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
  outline: 1px solid rgba(255, 255, 255, 0.15);
}

.btn:hover:not(:disabled) {
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.3);
}

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

/* Primary Variant */
.btn-primary {
  background: var(--white);
  color: black;
}

/* Ghost Variant (icon buttons) */
.btn-ghost {
  background: transparent;
  border-color: transparent;
  padding: 6px;
}

/* Loading State */
.btn-loading {
  cursor: wait;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .btn-ghost {
    min-height: 36px;
    padding: 6px;
  }
}
