/* ===== CSLE v3.0 Styles ===== */

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

:root {
  --primary: #00ffff;
  --secondary: #ff00ff;
  --bg-dark: #0a0a0a;
  --text-light: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --glass: rgba(22, 33, 62, 0.8);
  --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
}

body, html {
  height: 100%;
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.screen {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  padding: 2rem;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.setup-container {
  background: var(--glass);
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.setup-container h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.setup-container p {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.file-label {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--primary);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.file-info {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

input[type="file"] {
  display: none;
}

#launch-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  color: #000;
  cursor: pointer;
  transition: 0.3s ease;
}

#launch-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

#launch-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

/* Visualizer Screen */
#visualizer-screen {
  background: var(--bg-dark);
  overflow: hidden;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

#slideshow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10;
}

#slide {
  max-width: 100%;
  max-height: 100%;
  border-radius: 15px;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s ease;
}

#slide.fade-left {
  opacity: 1;
  transform: translateX(-50px);
}

#slide.fade-right {
  opacity: 1;
  transform: translateX(50px);
}

#controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

#controls button {
  font-size: 1.5rem;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--text-light);
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

#controls button:hover {
  background: var(--primary);
  color: #000;
}

/* Footer */
footer#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.4);
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  z-index: 99;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .setup-container {
    padding: 1.5rem;
  }

  #controls {
    gap: 0.5rem;
  }

  #controls button {
    width: 40px;
    height: 40px;
  }
}
