/* ===============================================
   Astravon Mercura — Global Buttons
   Author: House Astravon
   =============================================== */

/* Base Button Style */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff88;
  margin-right: 16px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Secondary / Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-right: 16px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Accent Button */
.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  margin-right: 16px;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

/* Small Buttons */
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

/* Large Buttons */
.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.125rem;
}

/* Disabled Button */
.btn:disabled,
.btn-disabled {
  background-color: #e0e0e0;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

/* Full-width Buttons */
.btn-block {
  width: 100%;
  display: block;
}

/* Icon Buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

/* Button with Loading State */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
  right: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
