/* ═══════════════════════════════════════
   Azura Cheat Status Status Widget – Frontend
   ═══════════════════════════════════════ */

.acs-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.acs-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e0e0e0;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ── Legend ── */
.acs-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.acs-legend-pill {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid;
}
.acs-legend-pill.ud {
  background: rgba(34, 110, 34, 0.3);
  border-color: #3a8a3a;
  color: #4cdf4c;
}
.acs-legend-pill.up {
  background: rgba(100, 90, 20, 0.3);
  border-color: #6a6a28;
  color: #c8b030;
}
.acs-legend-pill.dt {
  background: rgba(130, 30, 30, 0.3);
  border-color: #8a3030;
  color: #ff4060;
}
.acs-legend-pill.ol {
  background: rgba(80, 80, 80, 0.3);
  border-color: #555;
  color: #888;
}
.acs-legend-pill.bt {
  background: rgba(70, 70, 90, 0.25);
  border-color: #505068;
  color: #9a9ab0;
}

/* ── Game Box ── */
.acs-box {
  background: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
}

/* ── Rows ── */
.acs-row {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}
.acs-row:last-child { border-bottom: none; }
.acs-row:hover { background: rgba(255, 255, 255, 0.025); }

.acs-name {
  flex: 1 1 35%;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acs-plat {
  flex: 1 1 28%;
  min-width: 0;
  padding: 0 16px;
}
.acs-plat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  line-height: 1.2;
}
.acs-plat-value {
  font-size: 0.88rem;
  color: #b388ff;
  line-height: 1.35;
}

.acs-status {
  flex: 0 0 auto;
  margin-right: 14px;
}
.acs-badge {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 118px;
  text-align: center;
  white-space: nowrap;
}
.acs-badge.ud { background: #1e5a1e; color: #4cdf4c; }
.acs-badge.up { background: #4a4a18; color: #d4b830; }
.acs-badge.dt { background: #5a1a1a; color: #ff4060; }
.acs-badge.ol { background: #2a2a2a; color: #888; }
.acs-badge.bt { background: #2a2a40; color: #9a9ad0; }

.acs-buy { flex: 0 0 auto; }
.acs-buy a {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #9b59b6, #e74c9a, #2ecc71);
  background-size: 250% 250%;
  animation: acs-grad 6s ease infinite;
  transition: transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
  white-space: nowrap;
}
.acs-buy a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(155, 89, 182, 0.5);
}
.acs-buy a:active { transform: scale(0.96); }

.acs-buy span.acs-btn-disabled {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #666;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  cursor: not-allowed;
  white-space: nowrap;
  user-select: none;
  box-shadow: none;
  animation: none;
}

/* ── Footer ── */
.acs-footer {
  text-align: right;
  padding: 10px 28px 14px;
  font-size: 0.73rem;
  color: #555;
}

/* ── Smooth status transitions ── */
.acs-badge {
  transition: background-color 0.4s ease, color 0.4s ease;
}

@keyframes acs-grad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .acs-row { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .acs-name { flex: 1 1 100%; font-size: 1rem; }
  .acs-plat { display: none; }
  .acs-status { margin-right: 8px; }
  .acs-badge { min-width: 90px; font-size: 0.7rem; padding: 6px 14px; }
  .acs-buy a, .acs-buy span.acs-btn-disabled { padding: 7px 14px; font-size: 0.76rem; }
  .acs-legend { gap: 6px; }
  .acs-legend-pill { padding: 8px 8px; font-size: 0.68rem; min-width: 60px; }
}
