/*
  버튼 컴포넌트 스타일 (divetobada.com 디자인 시스템 이식)
  사용법:
    기본: <button class="btn btn-primary">버튼</button>
    사이즈: btn-sm / btn-lg
    풀 너비: btn-full
  타입: btn-primary, btn-secondary, btn-danger, btn-ghost
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  border: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background-color: #1a1a1a;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #2d2d2d;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e5e5e5;
}

.btn-danger {
  background-color: #fff;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: #1a1a1a;
}

.btn-ghost:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

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

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.btn-icon.btn-sm {
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
}
