/* ==========================================================================
   ANGEL GAMES STUDIO - INDIVIDUAL GAME VIEW COMMON STYLES
   Cyberpunk Console Frame, Game Layout, Status, and Controls
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0b0f19;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --neon-purple: #8b5cf6;
  --neon-purple-glow: rgba(139, 92, 246, 0.45);
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.45);
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: #334155;
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-heading: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
    linear-gradient(to bottom, #090d16 0%, #0b0f19 100%);
  background-attachment: fixed;
}

.game-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header del Juego
   -------------------------------------------------------------------------- */
.game-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-back-home:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.game-header-title {
  text-align: center;
}

.game-header-title h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #fff 0%, var(--neon-cyan) 60%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-header-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Marco Principal de la Consola
   -------------------------------------------------------------------------- */
.game-console {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.game-console::before,
.game-console::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.game-console::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--neon-cyan);
  border-left: 3px solid var(--neon-cyan);
}

.game-console::after {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--neon-purple);
  border-right: 3px solid var(--neon-purple);
}

/* Barra de Estado y Marcador */
.game-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.4rem;
  margin-bottom: 1.8rem;
}

.score-badge {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

/* Botones de Acción del Juego */
.game-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.2s;
}

.btn-game-primary {
  background: linear-gradient(135deg, var(--neon-purple) 0%, #6d28d9 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-game-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
}

.btn-game-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-game-secondary:hover {
  background: rgba(6, 182, 212, 0.15);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Modal o Overlay de Fin de Partida */
.game-overlay-message {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.game-overlay-message.show {
  opacity: 1;
  visibility: visible;
}

.overlay-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.overlay-title.win {
  color: #34d399;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.overlay-title.lose {
  color: var(--neon-pink);
  text-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

.overlay-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Pie de Página Minimalista para las vistas de juegos */
.game-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.game-footer strong {
  color: var(--neon-cyan);
}

/* Responsivo */
@media (max-width: 768px) {
  .game-nav-header {
    flex-direction: column;
    gap: 1rem;
  }
  .game-console {
    padding: 1.2rem;
  }
}
