/* ========================================
   VINSNAP BUTTON SYSTEM
   Standardized button styles for consistency
   ======================================== */

/* Primary Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d6fff, #8b5cf6);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(139, 92, 246, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Action Buttons */
.btn-secondary {
  background: transparent;
  color: #8b5cf6;
  border: 1px solid #8b5cf6;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #9d6fff;
  color: #9d6fff;
}

.btn-secondary:active {
  background: rgba(139, 92, 246, 0.15);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tertiary/Text Buttons */
.btn-text {
  background: transparent;
  color: #8b5cf6;
  border: none;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-text:hover {
  text-decoration: underline;
  color: #9d6fff;
}

.btn-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Danger/Delete Buttons */
.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
  background: #b91c1c;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ghost Buttons */
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Icon Buttons */
.btn-icon {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
}

.btn-icon:active {
  background: rgba(139, 92, 246, 0.2);
}

/* Button Sizes */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-md {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 18px;
}

/* Full Width Button */
.btn-full {
  width: 100%;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 8px;
}

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Button States */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
  to { transform: rotate(360deg); }
}

/* Button with Icon */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-with-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Success Button */
.btn-success {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-success:hover {
  background: #059669;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Warning Button */
.btn-warning {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Info Button */
.btn-info {
  background: #0ea5e9;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-info:hover {
  background: #0284c7;
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}
