/* =====================================================
   WILDVERSE ACTIONS COLUMN
   File: /wildverse/assets/css/actions.css
   Purpose: all Like / Share / Add / Download button styling
   Load this AFTER wildverse-library.css and stats.css
===================================================== */

/* Actions cell */
td[data-label="Actions"] {
  vertical-align: middle;
}

/* Icon-only row: Like | Share | Add | Download */
td[data-label="Actions"] .wv-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 36px) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: max-content !important;
  max-width: none !important;
  margin-inline: auto !important;
}

td[data-label="Actions"] .wv-actions > button,
td[data-label="Actions"] .wv-actions > a {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;

  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;

  padding: 8px !important;
  margin: 0 !important;
  gap: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045) !important;
  color: transparent !important;

  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  cursor: pointer !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 0 rgba(120, 247, 255, 0) !important;

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease !important;
}

/* Icons stay visible while labels remain hidden */
td[data-label="Actions"] .wv-actions > button i,
td[data-label="Actions"] .wv-actions > a i {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f1fbff !important;
  font-size: 17px !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  pointer-events: none !important;
}

/* Lock each action into one clean row */
td[data-label="Actions"] .wv-like {
  grid-column: 1 !important;
}

td[data-label="Actions"] .wv-share {
  grid-column: 2 !important;
}

td[data-label="Actions"] .wv-queue-add {
  grid-column: 3 !important;
}

td[data-label="Actions"] .wv-download {
  grid-column: 4 !important;
  border-color: rgba(120, 247, 255, 0.56) !important;
  background:
    radial-gradient(circle at 35% 20%, #ffffff, #78f7ff 58%, #55dce7) !important;
  box-shadow:
    0 0 14px rgba(120, 247, 255, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.18) !important;
}

td[data-label="Actions"] .wv-download i {
  color: #031016 !important;
}

/* Hover / keyboard focus */
td[data-label="Actions"] .wv-actions > button:hover,
td[data-label="Actions"] .wv-actions > a:hover,
td[data-label="Actions"] .wv-actions > button:focus-visible,
td[data-label="Actions"] .wv-actions > a:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(120, 247, 255, 0.7) !important;
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.14), rgba(255, 79, 216, 0.07)),
    rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    0 0 18px rgba(120, 247, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.04) !important;
  outline: none !important;
}

/* Liked state */
td[data-label="Actions"] .wv-like.is-liked {
  border-color: rgba(255, 79, 216, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.22), rgba(120, 247, 255, 0.06)),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 0 16px rgba(255, 79, 216, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.035) !important;
}

td[data-label="Actions"] .wv-like.is-liked i {
  color: #ffd6f5 !important;
}

/* Added-to-deck state */
td[data-label="Actions"] .wv-queue-add.is-added {
  border-color: rgba(84, 242, 167, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(84, 242, 167, 0.22), rgba(120, 247, 255, 0.08)),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 0 16px rgba(84, 242, 167, 0.16),
    inset 0 0 12px rgba(255, 255, 255, 0.035) !important;
}

td[data-label="Actions"] .wv-queue-add.is-added i {
  color: #baffdf !important;
}

/* Keep the compact table row from stretching because of actions */
td[data-label="Actions"] .wv-actions,
td[data-label="Actions"] .wv-actions > button,
td[data-label="Actions"] .wv-actions > a {
  max-height: 36px !important;
}

/* Mobile / narrow table: slightly smaller icons */
@media (max-width: 760px) {
  td[data-label="Actions"] .wv-actions {
    grid-template-columns: repeat(4, 32px) !important;
    gap: 5px !important;
  }

  td[data-label="Actions"] .wv-actions > button,
  td[data-label="Actions"] .wv-actions > a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 10px !important;
  }

  td[data-label="Actions"] .wv-actions > button i,
  td[data-label="Actions"] .wv-actions > a i {
    font-size: 15px !important;
  }
}
