/**
 * Photonic Visualization Page Styles
 */

h1 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

#photonic-container {
  width: 100%;
  height: 600px; /* Default height for desktop */
  position: relative;
  overflow: hidden;
  background: #000; /* Fallback while loading */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

#photonic-container canvas {
  display: block;
  width: 100%;
  height: auto;
}

.viz-controls {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.viz-controls h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #2c3e50;
}

.viz-controls h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #555;
}

.viz-controls ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.viz-controls li {
  margin: 0.3rem 0;
  color: #666;
}

.viz-controls code {
  background: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
  border: 1px solid #e0e0e0;
}

.viz-info-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.viz-info-box p {
  margin: 0;
  color: #856404;
}

/* Loading state */
.photonic-loading {
  position: relative;
  min-height: 400px;
  background: #f5f5f5;
  border-radius: 8px;
}

.photonic-loading::before {
  content: "Loading Photonic...";
  display: block;
  padding: 1rem;
  color: #666;
  font-size: 1.2rem;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #photonic-container {
    margin: 1rem 0;
    border-radius: 4px;
    /* On mobile, use most of the viewport height for immersive 3D experience */
    height: 70vh;
    min-height: 400px;
  }
  
  .viz-controls {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .viz-controls h2 {
    font-size: 1.1rem;
  }
  
  .viz-controls ul {
    padding-left: 1.2rem;
  }
}

/* Wide desktop screens - maximize horizontal space */
@media (min-width: 1400px) {
  #photonic-container {
    height: 700px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  #photonic-container {
    height: 800px;
  }
}
