/* ================================
   MODO SALVAPANTALLAS - PROFENINJA
   ================================ */

/* Botón de activar salvapantallas */
.screensaver-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9998;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.screensaver-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contenedor principal del salvapantallas */
.screensaver-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.screensaver-mode.active {
  display: flex;
  opacity: 1;
}

/* Reloj central */
.screensaver-clock {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
  user-select: none;
}

.screensaver-mode.active .screensaver-clock {
  opacity: 1;
  transform: translateY(0);
}

.screensaver-time {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.screensaver-date {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Botones de tema en el salvapantallas */
.screensaver-theme-buttons {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: all 1.2s ease 0.5s;
}

.screensaver-mode.active .screensaver-theme-buttons {
  opacity: 1;
}

.screensaver-theme-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.screensaver-theme-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.screensaver-theme-btn.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(102, 126, 234, 0.4);
}



/* Estados de transición para elementos ocultos */
.dashboard-main.screensaver-hidden,
.global-user-controls.screensaver-hidden,
#supabase-sync-panel.screensaver-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.8s ease;
}

/* Responsive para salvapantallas */
@media (max-width: 768px) {
  .screensaver-btn {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .screensaver-time {
    font-size: 4rem;
  }
  
  .screensaver-date {
    font-size: 1.8rem;
  }
  
  .screensaver-theme-buttons {
    bottom: 60px;
    gap: 10px;
  }
  
  .screensaver-theme-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .screensaver-btn {
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .screensaver-time {
    font-size: 3rem;
  }
  
  .screensaver-date {
    font-size: 1.4rem;
  }
  
  .screensaver-theme-buttons {
    bottom: 40px;
    gap: 8px;
  }
  
  .screensaver-theme-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  

}

/* Temas específicos para el salvapantallas */
body.theme-light .screensaver-time {
  color: #1a202c;
  text-shadow: 
    0 0 20px rgba(26, 32, 44, 0.2),
    0 0 40px rgba(26, 32, 44, 0.1),
    0 4px 8px rgba(255, 255, 255, 0.5);
}

body.theme-light .screensaver-date {
  color: rgba(26, 32, 44, 0.8);
  text-shadow: 
    0 0 15px rgba(26, 32, 44, 0.1),
    0 2px 4px rgba(255, 255, 255, 0.5);
}

body.theme-rosa .screensaver-time {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(236, 72, 153, 0.4),
    0 0 40px rgba(236, 72, 153, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

body.theme-rosa .screensaver-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 0 15px rgba(236, 72, 153, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

body.theme-neon .screensaver-time {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.5),
    0 0 40px rgba(139, 92, 246, 0.4),
    0 0 60px rgba(236, 72, 153, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

body.theme-neon .screensaver-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 0 15px rgba(139, 92, 246, 0.4),
    0 0 30px rgba(236, 72, 153, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
} 