/*!
 * Turla360 — Button Components (Bootstrap-style)
 * Tailwind-friendly. Tema rengi CSS değişkenleri üzerinden uygulanır.
 *   .btn          → temel
 *   .btn-primary  → tema ana rengi
 *   .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-ghost
 *   .btn-outline  → çerçeveli
 *   .btn-sm / .btn-lg → boyutlar
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem 1rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--theme-btn-radius, 10px);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--theme-primary, #2563eb); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 1em; height: 1em; flex-shrink: 0; }

.btn-primary {
  background: var(--theme-primary, #2563eb);
  color: var(--theme-btn-primary-text, #fff);
  border-color: var(--theme-primary, #2563eb);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 14px rgba(37, 99, 235, .22); }

.btn-secondary {
  background: var(--theme-secondary, #7c3aed);
  color: #fff;
  border-color: var(--theme-secondary, #7c3aed);
}
.btn-secondary:hover { filter: brightness(1.08); }

.btn-success { background: var(--theme-success, #10b981); color: #fff; border-color: var(--theme-success, #10b981); }
.btn-success:hover { filter: brightness(1.08); }

.btn-danger  { background: var(--theme-danger, #ef4444); color: #fff; border-color: var(--theme-danger, #ef4444); }
.btn-danger:hover  { filter: brightness(1.08); }

.btn-warning { background: var(--theme-warning, #f59e0b); color: #111827; border-color: var(--theme-warning, #f59e0b); }
.btn-warning:hover { filter: brightness(1.05); }

.btn-ghost {
  background: transparent;
  color: var(--theme-text, #111827);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--theme-surface, #f9fafb); }

.btn-outline {
  background: transparent;
  color: var(--theme-primary, #2563eb);
  border-color: var(--theme-primary, #2563eb);
}
.btn-outline:hover {
  background: var(--theme-primary, #2563eb);
  color: #fff;
}

.btn-sm { padding: .35rem .75rem; font-size: .8125rem; border-radius: 8px; }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; display: flex; }

.btn-icon {
  padding: .5rem;
  width: 2.25rem;
  height: 2.25rem;
}
