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

:root {
  --primary-color: #00f3ff;
  --secondary-color: #bc13fe;
  --bg-dark: #050510;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --success-color: #00ff9d;
  --warning-color: #ffb800;
  --danger-color: #ff4d4d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.15) 0%, transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.light-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 8s infinite linear;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Language Switcher */
#language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

#language-switcher:active {
  transform: scale(0.95);
  background: rgba(0, 243, 255, 0.1);
}

/* Layout */
.content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px; /* Mobile constraint */
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header */
.main-header {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 30px;
}

.logo-container {
  margin-bottom: 15px;
  position: relative;
}

.main-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
  animation: logo-pulse 3s infinite alternate;
}

@keyframes logo-pulse {
  from { filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3)); }
  to { filter: drop-shadow(0 0 25px rgba(188, 19, 254, 0.5)); }
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin: 0;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Status Card */
.status-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.queue-info {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.instruction {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Action Area */
.action-area {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(188, 19, 254, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.play-button:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.play-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.play-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Screens Grid */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.screen-status {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.screen-status h3 {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Status Colors (overriding JS inline styles if possible, but JS sets inline style color) */
/* We can force colors if we want, but JS logic is fine. */

@media (min-width: 768px) {
  /* Ensure it looks okay on desktop too, just centered mobile view */
  body {
    align-items: center;
    justify-content: center;
  }
  
  .content-wrapper {
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    height: auto;
    min-height: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
    margin: 40px auto;
  }
}
