/* =========================================================
   AniLog — кнопки и иконочные кнопки
   ========================================================= */

.button {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.3s ease;
}

.button .icon {
  width: 17px;
  height: 17px;
}

.button:active {
  transform: scale(0.975);
}

.button--primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, #8b5cf6 0%, #705cf7 52%, #4f8ff5 130%);
  box-shadow:
    0 9px 25px rgba(110, 85, 245, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 34%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(20deg);
  transition: left 0.55s ease;
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 13px 32px rgba(110, 85, 245, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.button--primary:hover::after {
  left: 120%;
}

.button--ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.button--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button--small {
  height: 37px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(8, 9, 14, 0.54);
  color: var(--text-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out);
}

.icon-button .icon {
  width: 16px;
  height: 16px;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(33, 35, 50, 0.82);
  color: #fff;
  transform: translateY(-1px);
}
