/* Information Page Styles */

.info-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Provide a short alias so centralized selectors using .info-page will match
   the existing container class used by pages. Avoids touching HTML markup. */
.info-page {
  /* Minimal alias so centralized selectors (in style.css) match without
     requiring HTML changes. This avoids changing layout; the property is
     intentionally small and non-destructive. */
  --info-page-flag: 1;
}

.info-content {
  background: rgba(18, 18, 18, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

html.light .info-content {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(68, 218, 255, 0.2);
  transition: border-color var(--transition-base);
}

html.light .info-section {
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}

.info-section:last-child {
  border-bottom: none;
}

.info-section h2 {
  color: #44daff;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  transition: color var(--transition-base);
}

html.light .info-section h2 {
  color: #0284c7;
}

.info-section p {
  color: #88e0ff;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 16px;
  transition: color var(--transition-base);
}

html.light .info-section p {
  color: #475569;
}

/* theme overrides moved to styles/style.css to centralize theme tokens and behavior */


/* Aurora Wave Animation */
.aurora-animation {
  height: 150px;
  position: relative;
  margin: 30px 0;
  background: linear-gradient(to bottom, #001a33, #000);
  border-radius: 8px;
  overflow: hidden;
}

.wave-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.wave1 {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 136, 0.4) 25%, 
    transparent 50%, 
    rgba(0, 255, 136, 0.4) 75%, 
    transparent 100%);
  animation: wave 8s ease-in-out infinite;
}

.wave2 {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(68, 218, 255, 0.3) 20%, 
    transparent 45%, 
    rgba(68, 218, 255, 0.3) 70%, 
    transparent 100%);
  animation: wave 12s ease-in-out infinite;
  animation-delay: -2s;
}

.wave3 {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 136, 255, 0.2) 30%, 
    transparent 60%, 
    rgba(255, 136, 255, 0.2) 85%, 
    transparent 100%);
  animation: wave 10s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-20px) scaleY(1.2);
  }
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.step {
  background: rgba(0, 26, 51, 0.5);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(68, 218, 255, 0.2);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: #44daff;
  box-shadow: 0 5px 15px rgba(68, 218, 255, 0.3);
}

.step-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.step h3 {
  color: #44daff;
  margin-bottom: 10px;
  font-size: 18px;
}

.step p {
  color: #88e0ff;
  font-size: 14px;
  line-height: 1.6;
}

/* Aurora Types */
.aurora-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.aurora-type {
  background: rgba(0, 26, 51, 0.5);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(68, 218, 255, 0.2);
}

.type-animation {
  height: 120px;
  margin-bottom: 15px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #001a33;
}

.arc-animation {
  background: linear-gradient(to bottom, 
    transparent 0%,
    rgba(0, 255, 136, 0.5) 40%,
    rgba(0, 255, 136, 0.8) 50%,
    rgba(0, 255, 136, 0.5) 60%,
    transparent 100%);
  animation: arcGlow 3s ease-in-out infinite;
}

.band-animation {
  background: repeating-linear-gradient(
    45deg,
    rgba(68, 218, 255, 0.3) 0px,
    rgba(68, 218, 255, 0.6) 10px,
    rgba(68, 218, 255, 0.3) 20px,
    transparent 30px,
    transparent 40px
  );
  animation: bandMove 4s linear infinite;
}

.corona-animation {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 136, 255, 0.8) 0%,
    rgba(255, 136, 255, 0.4) 30%,
    rgba(68, 218, 255, 0.3) 60%,
    transparent 100%
  );
  animation: coronaPulse 2.5s ease-in-out infinite;
}

@keyframes arcGlow {
  0%, 100% {
    opacity: 0.7;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

@keyframes bandMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

@keyframes coronaPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.aurora-type h3 {
  color: #44daff;
  margin-bottom: 10px;
  font-size: 20px;
}

.aurora-type p {
  color: #88e0ff;
  font-size: 14px;
  line-height: 1.6;
}

/* Color Guide */
.color-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 26, 51, 0.5);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(68, 218, 255, 0.2);
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 20px currentColor;
  animation: colorPulse 3s ease-in-out infinite;
}

.color-swatch.green {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #00ff88;
}

.color-swatch.red {
  background: linear-gradient(135deg, #ff4466, #cc2244);
  color: #ff4466;
}

.color-swatch.blue {
  background: linear-gradient(135deg, #4488ff, #2266cc);
  color: #4488ff;
}

.color-swatch.pink {
  background: linear-gradient(135deg, #ff88ff, #cc66cc);
  color: #ff88ff;
}

@keyframes colorPulse {
  0%, 100% {
    box-shadow: 0 0 10px currentColor;
  }
  50% {
    box-shadow: 0 0 25px currentColor;
  }
}

.color-info h4 {
  color: #44daff;
  font-size: 16px;
  margin-bottom: 5px;
}

.color-info p {
  color: #88e0ff;
  font-size: 13px;
  margin: 0;
}

/* Viewing Tips */
.viewing-tips {
  list-style: none;
  margin-top: 20px;
}

.viewing-tips li {
  color: #88e0ff;
  padding: 12px 20px;
  margin-bottom: 10px;
  background: rgba(0, 26, 51, 0.5);
  border-left: 4px solid #44daff;
  border-radius: 4px;
  line-height: 1.6;
}

.viewing-tips strong {
  color: #44daff;
}

/* Sources */
.sources {
  background: rgba(0, 26, 51, 0.3);
  border-radius: 8px;
  padding: 25px;
}

.source-list {
  list-style: none;
  margin-top: 20px;
}

.source-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.source-list li::before {
  content: "📚";
  position: absolute;
  left: 0;
}

.source-list a {
  color: #44daff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.source-list a:hover {
  border-bottom-color: #44daff;
  color: #88e0ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-content {
    padding: 20px;
  }

  .info-section h2 {
    font-size: 24px;
  }

  .process-steps,
  .aurora-types,
  .color-guide {
    grid-template-columns: 1fr;
  }


/* Fix: ensure elements that used .text-white on info pages become dark in light mode
   Target header/main/section scope so we don't globally override intentional white text
   (e.g. buttons with colored backgrounds) */
/* Prefer design-system variables so elements automatically match the active theme */
header .text-white,
main .text-white,
section .text-white,
.info-section .text-white,
.aurora-type .text-white {
  color: var(--color-text-primary) !important;
}

/* Generic info-page headings and strong labels should follow the theme tokens */
.info-section h2,
.explorer-section h2,
.chart-panel h3,
.bz-chart-title,
.speed-info-panel h3,
.kp-info-display h4,
.info-card h3,
h1, h2, h3, h4, strong {
  /* Be conservative: only apply when inside info pages (scoped by stylesheet inclusion) */
  color: var(--color-text-primary) !important;
}

/* Secondary text on info pages */
.info-section p,
.explorer-section .subtitle,
.bz-explorer-description,
.bz-range,
.info-card p,
.why-content p,
.bz-impact,
.speed-info-panel .range {
  color: var(--color-text-secondary) !important;
}

  .aurora-animation {
    height: 100px;
  }
}
