/**
 * Interactive Elements - Links and Buttons
 * Consolidated from links.css + button.css
 */

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--color-text-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-yellow);
}

a:visited {
  color: var(--color-text-secondary);
}

a:active {
  color: var(--color-accent-yellow);
  transition: color 0.1s ease;
}

a:focus {
  outline: none;
}

/* Navigation Links (override defaults) */
nav a,
.nav-link {
  text-decoration: none;
  font-family: var(--font-main);
  font-size: var(--menu-size);
  letter-spacing: var(--tracking-wide);
}

/* ============================================
   BUTTONS
   ============================================ */

/* 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;
  }
}

