/* UI Components - Reusable styles for buttons, forms, and other UI elements */

/* ===== BUTTON STYLES ===== */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Primary button */
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 172, 132, 0.3);
}

.btn-primary:hover {
  background: #0e9a7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 172, 132, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(16, 172, 132, 0.3);
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: #000;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(232, 232, 233, 0.1);
  border-color: var(--secondary-color);
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

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

/* Button with icon */
.btn-icon {
  padding: 0.75rem;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}

.btn-icon.btn-sm {
  padding: 0.5rem;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon.btn-lg {
  padding: 1rem;
  min-width: 52px;
  min-height: 52px;
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent;
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Button group */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Section styles */
.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  padding-bottom: 1rem;
}

.section-description {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--secondary-color);
  text-align: center;
  padding-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
    font-weight: 300;
  }
}
