/* ==================== Button Styles ====================
   All button variants and states
   Extracted from legacy.css for better organization */

/* ==================== Base Button ==================== */

.button {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--color-button-border);
  overflow: hidden;
  color: var(--color-button-text);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  background: var(--color-button-bg);
  cursor: pointer;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--color-button-hover-bg);
  transform: translateX(-100%);
  pointer-events: none;
  mix-blend-mode: difference;
}

.button:hover::before {
  transform: translateX(0%);
}

.button:hover {
  color: var(--color-button-border);
  background: var(--color-button-hover-bg);
}

/* ==================== Icon Button ==================== */

.card__icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==================== Like Button ==================== */

.card__like-button {
  width: 130px;
  height: 38px;
}

/* ==================== Save Button ==================== */

.save-button {
  display: flex;
  gap: 8px;
  width: 335px;
  height: 55px;
}

@media (max-width: 375px) {
  .save-button {
    flex-direction: column;
    width: 306px;
    height: 80px;
  }
}

/* ==================== Dialog OK Button ==================== */

.save-dialog__ok {
  width: 293px;
  height: 38px;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 375px) {
  .save-dialog__ok {
    width: 100%;
    max-width: 293px;
  }
}

