/**
 * Frontend Styles for RPC Achievements
 * Matches the provided design exactly
 */

/* =========================================
   ACHIEVEMENTS LIST (PNG icon swap on hover)
========================================= */

.rpc-achievements {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card base (NO green by default) */
.rpc-achievement {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;

  padding: 22px 26px;
  border-radius: 18px;

  background: linear-gradient(180deg, rgba(18, 40, 70, 0.85), rgba(14, 32, 58, 0.85));
  border: 1px solid rgba(255,255,255,0.06);

  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover glow (ONLY on hover) */
.rpc-achievement:hover {
  border-color: rgba(183,255,42,0.85);
  box-shadow:
    0 0 0 1px rgba(183,255,42,0.45),
    0 0 28px rgba(183,255,42,0.20),
    0 0 90px rgba(183,255,42,0.10);
}

/* Icon box */
.rpc-achievement-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  transition: background-color 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

/* The PNG icon itself (grey by default) */
.rpc-trophy {
  width: 22px;
  height: 22px;
  background-image: var(--trophy-grey);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Swap to green on hover (hover card OR hover icon) */
.rpc-achievement:hover .rpc-trophy,
.rpc-achievement-icon:hover .rpc-trophy {
  background-image: var(--trophy-green);
}

/* Icon box styling turns slightly greener on hover */
.rpc-achievement:hover .rpc-achievement-icon,
.rpc-achievement-icon:hover {
  background: rgba(183,255,42,0.10);
  border-color: rgba(183,255,42,0.28);
}

/* Title */
.rpc-achievement-content h4 {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 0 0 6px 0;
}

/* Subtitle default = grey */
.rpc-achievement-content p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin: 0;

  transition: color 0.25s ease;
}

/* Subtitle turns green on hover */
.rpc-achievement:hover .rpc-achievement-content p {
  color: #b7ff2a;
}

/* Date */
.rpc-achievement-date {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
}

/* Mobile */
@media (max-width: 767px) {
  .rpc-achievement {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .rpc-achievement-date {
    grid-column: 2 / -1;
    margin-top: 6px;
    justify-self: start;
  }
}

