/* ============================================
   ALASKA GAMES – GLOBAL ADMIN STYLES
   ============================================ */

/* ===============================
   IMAGE LIBRARY – ADMIN (FIX)
   =============================== */

.alaska-images-library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* CONTENITORE IMMAGINE */
.alaska-images-library .image-item {
  aspect-ratio: 1 / 1;
  border: 2px dashed #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  cursor: grab;

  /* FIX CRITICO */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* IMMAGINE */
.alaska-images-library .image-item img {
  width: 100%;
  height: auto;          /* FIX: evita collasso in wp-admin */
  max-height: 100%;
  object-fit: cover;

  position: static;      /* FIX: neutralizza CSS media WP */
  display: block;
}

/* ============================================
   ALASKA GAMES - STILI GLOBALI
   ============================================ */

/* --- Contatore Ciliegie --- */
.alaska-cherries-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  z-index: 9999;
  color: #d32f2f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.alaska-cherries-counter:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.25);
}

.alaska-cherries-counter .count {
  font-size: 1.3rem;
  color: #d32f2f;
}

.alaska-cherries-counter .icon {
  font-size: 1.6rem;
  animation: cherryPulse 2s ease-in-out infinite;
}

@keyframes cherryPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Animazione quando guadagni ciliegie */
.alaska-cherries-counter.earned {
  animation: bounceEarn 0.6s ease;
}

@keyframes bounceEarn {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(5deg); }
  75% { transform: scale(1.2) rotate(-3deg); }
}

/* --- Container gioco --- */
.alaska-game-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* --- Richiesta login --- */
.alaska-game-login-required {
  background: #f9f9f9;
  border: 2px solid #d32f2f;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 60px auto;
}

.alaska-game-login-required p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 25px;
}

.alaska-game-login-required .button {
  background-color: #d32f2f;
  color: #fff;
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.alaska-game-login-required .button:hover {
  background-color: #b71c1c;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .alaska-cherries-counter {
    top: 10px;
    right: 10px;
    padding: 10px 18px;
    font-size: 1rem;
  }
  
  .alaska-cherries-counter .count {
    font-size: 1.1rem;
  }
  
  .alaska-cherries-counter .icon {
    font-size: 1.3rem;
  }
}
