/* Static page styles */
.static-page {
  background: rgba(10, 10, 30, 0.85);
  color: #e0e6f0;
  max-width: 700px;
  margin: 6rem auto 2rem auto;
  border-radius: 18px;
  box-shadow: 0 0 32px 0 #003cff33;
  padding: 2rem 2.5rem;
  z-index: 2;
  position: relative;
  text-align: left;
}
.static-page h2 {
  color: #7ecbff;
  text-shadow: 0 0 8px #003cff, 0 0 16px #00aaff;
}
.static-page ul {
  margin: 1rem 0 1.5rem 1.5rem;
}
.back-btn {
  background: linear-gradient(90deg, #003cff 0%, #00aaff 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 8px #003cff, 0 0 16px #00aaff;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.3s, transform 0.2s;
}
.back-btn:hover {
  background: linear-gradient(90deg, #00aaff 0%, #003cff 100%);
  transform: scale(1.06);
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0a0a1a;
  color: #e0e6f0;
  min-height: 100vh;
  overflow-x: hidden;
}

#bubbles-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
}

.background-waves {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
.background-waves::before, .background-waves::after {
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 60% 40%, rgba(0,60,255,0.15) 0%, transparent 70%),
              radial-gradient(circle at 30% 70%, rgba(0,255,255,0.10) 0%, transparent 80%);
  animation: waveMove 12s linear infinite alternate;
  opacity: 0.7;
  filter: blur(60px);
}
.background-waves::after {
  background: radial-gradient(circle at 80% 80%, rgba(0,60,255,0.10) 0%, transparent 80%),
              radial-gradient(circle at 20% 20%, rgba(0,255,255,0.08) 0%, transparent 80%);
  animation-duration: 18s;
  opacity: 0.5;
}
@keyframes waveMove {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-48%, -52%) scale(1.08); }
}

.navbar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(10, 10, 30, 0.7);
  box-shadow: 0 2px 24px 0 rgba(0,0,40,0.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,60,255,0.12);
  overflow: visible;
}
.navbar-glow {
  position: absolute;
  left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, rgba(0,60,255,0.7) 0%, rgba(0,255,255,0.4) 100%);
  box-shadow: 0 0 24px 8px #00aaff, 0 0 60px 16px #003cff;
  filter: blur(2px);
  opacity: 0.8;
  animation: glowPulse 2.5s infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav-3d-box {
  position: absolute;
  left: -1.2rem;
  right: -1.2rem;
  top: -0.7rem;
  bottom: -0.7rem;
  z-index: -1;
  background: rgba(10, 30, 60, 0.32);
  border-radius: 18px;
  box-shadow: 0 4px 32px #003cff44, 0 1.5px 8px #00aaff33, 0 0 0 2px rgba(0,60,255,0.08) inset;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: box-shadow 0.3s, background 0.3s;
  border: 1.5px solid rgba(0,60,255,0.13);
}
.nav-links:hover .nav-3d-box,
.nav-links:focus-within .nav-3d-box {
  box-shadow: 0 8px 48px #003cff77, 0 2px 12px #00aaff55, 0 0 0 2.5px #003cff55 inset;
  background: rgba(10, 30, 60, 0.44);
}
.nav-links li {
  position: relative;
  z-index: 1;
}
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: bold;
  color: #7ecbff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #003cff, 0 0 16px #00aaff;
}

.lessonloop-logo {
  margin-right: 8px;
  filter: drop-shadow(0 0 8px #003cff88) drop-shadow(0 0 16px #00aaff55);
}
.lessonloop-logo .loop-outer {
  stroke: #00aaff;
  filter: drop-shadow(0 0 8px #00aaff88);
  animation: logo-glow 2.2s infinite alternate;
}
.lessonloop-logo .loop-inner {
  stroke: #7ecbff;
  opacity: 0.7;
}
.lessonloop-logo .loop-dot {
  transform-origin: 19px 19px;
  animation: logo-dot-spin 2.8s linear infinite;
}
@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 8px #00aaff88); }
  100% { filter: drop-shadow(0 0 24px #003cffcc); }
}
@keyframes logo-dot-spin {
  0% { transform: rotate(0deg) translate(13px,0); }
  100% { transform: rotate(360deg) translate(13px,0); }
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #e0e6f0;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.2s;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  z-index: 2;
}
.nav-links a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #003cff, #00aaff);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -4px;
  border-radius: 2px;
}
.nav-links a:hover {
  color: #7ecbff;
}
.nav-links a:hover::after {
  width: 100%;
}

.hero {
  margin-top: 7rem;
  text-align: center;
  z-index: 2;
  position: relative;
}

main, .submit-lesson, .lessons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.submit-lesson, .lessons {
  width: 100%;
  position: relative;
  z-index: 2;
}
.submit-lesson form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Category select and filter */
#categoryInput, #categoryFilter {
  background: rgba(20,30,60,0.7);
  color: #e0e6f0;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 8px #003cff33;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  transition: box-shadow 0.2s, background 0.2s;
}
#categoryInput:focus, #categoryFilter:focus {
  outline: 2px solid #00aaff;
  box-shadow: 0 0 16px #00aaff55;
}
#categoryFilter {
  margin-bottom: 0;
  min-width: 120px;
}
#lessonForm button[type="submit"] {
  background: linear-gradient(90deg, #003cff 0%, #00aaff 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 0 16px #003cff, 0 0 32px #00aaff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
#lessonForm button[type="submit"]:hover {
  background: linear-gradient(90deg, #00aaff 0%, #003cff 100%);
  transform: scale(1.06);
  box-shadow: 0 0 32px #00aaff, 0 0 64px #003cff;
}
#lessonForm button[type="submit"]::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, #00aaff55 0%, transparent 80%);
  transform: translate(-50%, -50%);
  opacity: 0.7;
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  z-index: -1;
}
#lessonForm button[type="submit"]:active::before {
  width: 220%;
  height: 220%;
  opacity: 0;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
#lessonInput {
  width: 100%;
  max-width: 420px;
  min-width: 220px;
  min-height: 80px;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  background: rgba(20,30,60,0.7);
  color: #e0e6f0;
  box-shadow: 0 0 8px #003cff33;
  resize: vertical;
}
#lessonInput:focus {
  outline: 2px solid #00aaff;
}
.lessons h2 {
  text-align: center;
}
#lessonsList {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.lesson-card {
  background: rgba(10, 10, 30, 0.8);
  border-radius: 14px;
  box-shadow: 0 0 16px #003cff33, 0 2px 8px #0008;
  padding: 1.1rem 1.5rem;
  color: #e0e6f0;
  width: 100%;
  max-width: 420px;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lesson-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px #003cff66, 0 2px 8px #000a;
}
.lesson-text {
  margin-bottom: 0.5rem;
}
.lesson-date {
  font-size: 0.9rem;
  color: #7ecbff;
  opacity: 0.7;
}

/* 3D Card for Modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 30, 0.7);
  z-index: 100;
  transition: opacity 0.3s;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: linear-gradient(135deg, #0a0a1a 70%, #003cff 100%);
  border-radius: 22px;
  box-shadow: 0 12px 48px #003cff99, 0 2px 8px #000a;
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  min-width: 320px;
  max-width: 90vw;
  color: #e0e6f0;
  text-align: center;
  transform-style: preserve-3d;
  perspective: 800px;
  animation: modal3d 0.5s cubic-bezier(.68,-0.55,.27,1.55);
  position: relative;
}
@keyframes modal3d {
  0% { transform: rotateY(60deg) scale(0.7); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
.modal-content h3 {
  color: #7ecbff;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #003cff, 0 0 16px #00aaff;
}
.close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 1.7rem;
  color: #7ecbff;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #00aaff;
}

.hero h1 {
  font-size: 2.7rem;
  color: transparent;
  background: linear-gradient(120deg, #7ecbff 10%, #003cff 40%, #00aaff 60%, #7ecbff 90%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px #003cff, 0 0 48px #00aaff;
  margin-bottom: 0.7rem;
  animation: aurora-move 3.5s linear infinite alternate;
}

@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero p {
  font-size: 1.2rem;
  color: #b0b8d0;
  margin-bottom: 2.2rem;
}
.mystery-btn {
  background: linear-gradient(90deg, #003cff 0%, #00aaff 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 0 16px #003cff, 0 0 32px #00aaff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  outline: none;
}
.mystery-btn:hover {
  background: linear-gradient(90deg, #00aaff 0%, #003cff 100%);
  transform: scale(1.06);
}

.lessons {
  margin: 4rem auto 0 auto;
  max-width: 700px;
  background: rgba(10, 10, 30, 0.6);
  border-radius: 18px;
  box-shadow: 0 0 32px 0 #003cff33;
  padding: 2rem 2.5rem;
  min-height: 180px;
  z-index: 2;
  position: relative;
}

@media (max-width: 700px) {
  .navbar-content { padding: 0.7rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .lessons { padding: 1rem 0.5rem; }
}
