/* ============================================
   POWER-UI.CSS
   Estilos visuales de encendido, boton fisico
   y animacion de arranque (Boot Animation).
   Proyecto: Tablet Android - Yeligzon
   ============================================ */

/* --- Boton Fisico Power (Lateral Derecho) --- */
.power-button {
  position: fixed;
  right: -4px;
  top: 140px;
  width: 6px;
  height: 65px;
  background: #2a2a2a;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: -1px 0 4px rgba(0, 0, 0, 0.5);
}

.power-button:hover {
  background: #444444;
}

.power-button:active {
  transform: translateX(-2px);
  background: #00e676;
}

/* --- Indicador de Mantener Presionado (5s) --- */
.power-hold-indicator {
  position: fixed;
  right: 25px;
  top: 145px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.power-hold-indicator.active {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.hold-progress-svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

.hold-progress-track {
  fill: none;
  stroke: #333333;
  stroke-width: 3;
}

.hold-progress-circle {
  fill: none;
  stroke: #00e676;
  stroke-width: 3;
  stroke-dasharray: 56.54;
  stroke-dashoffset: 56.54;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

/* ============================================
   PANTALLA DE ANIMACION DE ARRANQUE (BOOT)
   ============================================ */

.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.boot-screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* Contenedor principal del Logo */
.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: boot-zoom-in 1.2s ease-out forwards;
}

/* Anillo Futurista de Arranque */
.boot-glow-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.boot-glow-ring::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-top-color: #00e676;
  border-right-color: #00e676;
  border-radius: 50%;
  animation: spin-ring 1.5s linear infinite;
}

.boot-glow-ring::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-bottom-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 50%;
  animation: spin-ring-reverse 2s linear infinite;
}

/* Texto "android" Brillante */
.boot-logo-text {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 12px;
  color: #ffffff;
  text-transform: lowercase;
  position: relative;
  background: linear-gradient(90deg, #444444 0%, #ffffff 50%, #444444 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 2.5s linear infinite;
}

/* Subtexto "POWERED BY YELIGZON" */
.boot-subtext {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #666666;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -10px;
}

/* ============================================
   KEYFRAMES DE ANIMACIONES DE ARRANQUE
   ============================================ */

/* Animacion de brillo recorriendo el texto */
@keyframes shine-text {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Rotacion del anillo hacia la derecha */
@keyframes spin-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Rotacion del anillo hacia la izquierda */
@keyframes spin-ring-reverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Latido de luz neón verde */
@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.3));
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(0, 230, 118, 0.7));
  }
}

/* Entrada suave con zoom */
@keyframes boot-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
