/* ESTILOS PARA LA PÁGINA GAMECARD         */
/* 
 * Este archivo contiene los estilos específicos para la página del juego .
 * Incluye el diseño de:
 * - Área principal del juego donde se desarrolla 
 * - Marcador de puntuaciones 
 * - Botones interactivos 
 * - Pantalla de juego con placeholder
 * - Instrucciones y consejos para el usuario
 */

/* CONTENEDORES PRINCIPALES DEL JUEGO */

/* Estilo común para el área de juego y el marcador */
#scoreboard {
  margin-top: 2rem;
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.06) 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* BOTÓN PRINCIPAL DEL JUEGO */

/* Botón para iniciar el juego */
#start-btn {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  color: #fff;
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

#start-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

/* Efecto hover del botón de inicio */
#start-btn:hover {
  background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: 
    0 6px 25px rgba(30, 144, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

#start-btn:hover::before {
  width: 300px;
  height: 300px;
}

#start-btn:active {
  transform: translateY(0) scale(0.98);
}

/* PANTALLA DEL JUEGO */

/* Área donde se desarrollará el juego */
.game-screen {
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.03) 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 1.5rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.game-screen:hover {
  border-color: rgba(30, 144, 255, 0.3);
  box-shadow: 
    0 6px 25px rgba(30, 144, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-screen p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* TEXTO DE INSTRUCCIONES */

/* Estilo para consejos e instrucciones del juego */
.instructions {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  line-height: 1.6;
  padding: 1rem;
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.05) 0%,
    rgba(10, 10, 15, 0.3) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* ===========================================================
   GAMECARD.CSS — Estilos visuales y animaciones del mini-juego
   Celeste & Blanca Space · Módulo GameCard
   =========================================================== */

/* === Layout general === */
body {
  background: linear-gradient(180deg, 
    rgba(5, 8, 15, 0.98) 0%,
    rgba(10, 16, 32, 0.95) 50%,
    rgba(5, 8, 15, 0.98) 100%
  );
  color: #fff;
  font-family: "Inter", sans-serif;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 144, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-section {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  letter-spacing: 0.3px;
  text-align: center;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
}

#game-area {
  margin-top: 2rem;
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.05) 0%,
    rgba(10, 10, 15, 0.6) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* === Barra de estado === */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.08) 0%,
    rgba(10, 10, 15, 0.4) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
  box-shadow: 
    0 2px 10px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === Cartas === */
.card {
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.06) 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 
    0 2px 10px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-info {
  padding: 0.8rem 1rem;
}

.card-info h3,
.card-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.card-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* === Meteoro principal === */
.meteor-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.meteor-card {
  width: 220px;
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.meteor-card:hover {
  transform: scale(1.05) translateY(-3px);
  border-color: rgba(30, 144, 255, 0.6);
  box-shadow: 
    0 8px 30px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* === Grid de defensas === */
.defense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.defense-card {
  cursor: pointer;
}

.defense-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: 
    0 6px 20px rgba(30, 144, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === Selección === */
.selected {
  border-color: rgba(100, 255, 218, 0.6);
  box-shadow: 
    0 6px 25px rgba(100, 255, 218, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  background: linear-gradient(135deg, 
    rgba(100, 255, 218, 0.1) 0%,
    rgba(30, 144, 255, 0.08) 100%
  );
}

/* === Botones === */
.controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  color: #fff;
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(30, 144, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover:not(.disabled) {
  background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: 
    0 6px 20px rgba(30, 144, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn:hover:not(.disabled)::before {
  width: 300px;
  height: 300px;
}

.btn:active:not(.disabled) {
  transform: translateY(0) scale(0.98);
}

.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.3) 0%, rgba(0, 102, 204, 0.3) 100%);
}

.hidden {
  display: none;
}

/* === Resultados === */
.result-text {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.5rem;
  margin-top: 0.8rem;
  padding: 0.5rem;
}

/* === Animaciones === */
@keyframes shake {
  0% { transform: translate(0); }
  25% { transform: translate(-5px, 0); }
  50% { transform: translate(5px, 0); }
  75% { transform: translate(-5px, 0); }
  100% { transform: translate(0); }
}

@keyframes explode {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,200,255,0.8); }
  50% { transform: scale(1.3); box-shadow: 0 0 60px rgba(0,200,255,0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,200,255,0); }
}

.shake {
  animation: shake 0.4s ease;
}

.explode {
  animation: explode 0.8s ease;
}
