/* =========================================================
   ARENA UI  CARDS COMPONENT
   (AR Cards + Game Cards)
   Estratto e ottimizzato da arena-ui.css
   Mobile-first  Zero modifiche estetiche
========================================================= */


/* =========================================================
   1) AR CARD  VARIANTI ARENA
========================================================= */

/* ----- Base AR Card ----- */
.ar-card {
  position: relative;
  display: flex;
  flex-direction: column;

  padding: 1.6rem;
  border-radius: 1rem;

  background: rgba(5, 8, 22, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.25);

  box-shadow: 0 0 14px rgba(15, 23, 42, 0.7);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ----- Soft Variant ----- */
.ar-card--soft {
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.45), transparent 60%),
    rgba(5, 8, 22, 0.92);
}

/* ----- Glow Variant ----- */
.ar-card--glow {
  border-color: rgba(34, 211, 238, 0.45);

  background: linear-gradient(
    135deg,
    rgba(5, 8, 22, 0.96),
    rgba(2, 6, 23, 0.96)
  );

  box-shadow:
    0 0 18px rgba(15, 23, 42, 0.9),
    0 0 22px rgba(34, 211, 238, 0.15);
}

/* ----- CTA Variant (arancione) ----- */
.ar-card--cta {
  border-color: rgba(249, 115, 22, 0.75);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.18),
    rgba(250, 204, 21, 0.12)
  );
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.55);
}


/* ----- Typography AR ----- */
.ar-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;

  letter-spacing: 0.22em;
  color: var(--zl-cyan);

  margin-bottom: 0.75rem;
}

.ar-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;

  margin-bottom: 0.5rem;
}

.ar-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;

  margin-bottom: 1rem;
}

.ar-body > *:not(:last-child) {
  margin-bottom: 0.75rem;
}



/* =========================================================
   2) GAME CARD  COMP PAGINA GIOCHI
========================================================= */

/* ----- Wrapper Game Card ----- */
/* ---------------------------------------------------------
   GAME CARD (versione finale e stabile)
--------------------------------------------------------- */

.ar-game-card {
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;

  border-radius: 18px;
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--aa-border-slate);
  box-shadow: var(--aa-shadow-card);
  aspect-ratio: 4 / 5;

  transform: translateY(0);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

/* ----- Background Lazy ----- */
.ar-game-bg {
  position: absolute;
  inset: 0;

  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.02);

  filter: saturate(1.05) contrast(1.05);
  transition:
    opacity .45s ease,
    transform .5s ease,
    filter .5s ease;
}

.ar-game-bg.bg-ready {
  opacity: 1;
}

/* ----- Overlay ----- */
.ar-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(2,6,23,0.10) 0%,
    rgba(2,6,23,0.62) 55%,
    rgba(2,6,23,0.92) 100%
  );
}
/* ----- Content ----- */
.ar-game-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

/* ----- Text ----- */
.ar-game-title {
  margin: 0;
  font-size: 1.28rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
}

.ar-game-desc {
  margin: 0;
  max-width: 90%;
  color: rgba(240,240,245,.92);
  font-size: .93rem;
  line-height: 1.35;
}

.ar-game-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  opacity: .95;
}

/* ----- Badges ----- */
.ar-game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  padding-top: 8px;
  margin-top: auto;
}

/* ----- Game Badge  glass dark + cyan glow (no hover) ----- */
.ar-game-badge{
  display:inline-flex;
  align-items:center;

  padding:4px 10px;
  border-radius:999px;

  font-size:0.72rem;
  font-weight:700;
  line-height:1;

  color:rgba(226,232,240,.95);

  background:rgba(5, 8, 22, 0.55); /* SCURO vetroso */
  border:1px solid rgba(56,189,248,.22);

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  box-shadow:
    0 0 0 1px rgba(56,189,248,.10) inset,
    0 0 12px rgba(56,189,248,.22);

  white-space:nowrap;
}


.ar-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;

  border-radius: 999px;

  background:rgba(56,189,248,.28);   /* CYAN evidente */
  border:1px solid rgba(56,189,248,.38);

  box-shadow:
    0 0 0 1px rgba(56,189,248,.22) inset,
    0 0 22px rgba(56,189,248,.48);
  backdrop-filter: blur(6px);

  font-size: 0.80rem;
  font-weight: 700;
  color: rgba(226,232,240,0.95);

}

/* ----- Footer / CTA area ----- */
.ar-game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
  margin-top: 10px;
}

/* CTA Gioca */
.ar-game-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  padding: 10px 10px;

  width: 100%;

  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: .01em;

  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--aa-pink),
    var(--aa-violet)
  );

  border: 1px solid rgba(255,255,255,.12);
  color: var(--aa-dark);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.15) inset,
    var(--aa-shadow-neon);

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}


/* =========================================================
   3) DESKTOP HOVER (solo desktop)
========================================================= */

@media (hover: hover) and (pointer: fine) {

  /* AR Card */
  .ar-card:hover {
    transform: translateY(-2px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .ar-card--glow:hover {
    box-shadow:
      0 0 24px rgba(56, 189, 248, 0.35),
      0 0 28px rgba(15, 23, 42, 1);
  }

  .ar-card--cta:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.85);
  }

  /* Game Card */
  .ar-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56,189,248,.22);
    box-shadow: var(--aa-shadow-card-hover);
  }

  .ar-game-card:hover .ar-game-bg {
    transform: scale(1.06);
    filter: saturate(1.15) contrast(1.12);
  }

  .ar-game-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.25) inset,
      0 18px 42px rgba(236,72,153,.65),
      0 0 48px rgba(139,92,246,.55);
  }
}
