/* ===========================
   BUTTON BASE - Default Style
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0.3px;

  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;

  background-color: #000000;
  color: #ffffff;
  border-color: #000000;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.1s ease;
}

/* Hover — sadece default (siyah) button için.
   Renkli buttonlar hover'ı colors.css'den alır. */
.btn:hover {
  background-color: #222222;
  border-color: #222222;
}

/* Active (click) */
.btn:active {
  transform: scale(0.97);
}

/* Focus (accessibility) */
.btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

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

/* ===========================
   SIZE VARIANTS
   =========================== */

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 8px;
}

/* ===========================
   OUTLINE VARIANT
   =========================== */

.btn-outline {
  background-color: transparent;
  color: #000000;
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: #000000;
}

/* ===========================
   FULL WIDTH
   =========================== */

.btn-block {
  display: flex;
  width: 100%;
}

/* ===========================
   ICON SUPPORT
   =========================== */

/* İkon elementini normalize et (svg veya img) */
.btn svg,
.btn img.btn-icon {
  display: block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  /* Yazı büyüklüğü ile orantılı */
  font-size: inherit;
}

/* Sadece ikon — metin olmadan, kare/daire buton */
.btn-icon-only {
  padding: 10px;
  gap: 0;
}

.btn-icon-only.btn-sm {
  padding: 6px;
}

.btn-icon-only.btn-lg {
  padding: 14px;
}

/* Yuvarlak ikon butonu */
.btn-round {
  border-radius: 50%;
}
