/* ================================================
   CISLUNAR VISUALIZER — INDEX PAGE WRAPPER STYLES
   Mirrors /tools/orbit-visualizer/index.css conventions
   ================================================ */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: #eee;
}

body { display: flex; flex-direction: column; }

.cislunar-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
}

@media (max-width: 768px) {
  .cislunar-wrapper { padding: 10px; }
}

#cislunar-frame {
  width: 100%;
  height: 100%;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: #0b0d12;
}

.collapse-toggle {
  position: absolute;
  top: 30px; right: 30px;
  z-index: 1000;
  background: rgba(42, 42, 42, 0.9);
  border: 1px solid #555; color: #fff;
  width: 44px; height: 44px;
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.collapse-toggle:hover { background: rgba(102, 126, 234, 0.9); border-color: #667eea; transform: scale(1.05); }
.collapse-toggle:active { transform: scale(0.95); }
.collapse-toggle::after {
  content: attr(data-tooltip);
  position: absolute; bottom: -35px; right: 0;
  background: rgba(0, 0, 0, 0.9); color: #fff;
  padding: 6px 12px; border-radius: 4px;
  font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.collapse-toggle:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .collapse-toggle { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
}

body.fullscreen-mode .site-header,
body.fullscreen-mode .mobile-nav-menu,
body.fullscreen-mode .footer { display: none; }
body.fullscreen-mode .cislunar-wrapper { padding: 10px; max-width: 100%; }

@media (prefers-color-scheme: dark) {
  html, body { background: #0a0a0a; color: #e0e0e0; }
  #cislunar-frame { border: 2px solid #2a2a2a; background: #0a0a0a; }
  .collapse-toggle { background: rgba(26, 26, 26, 0.95); border: 1px solid #2a2a2a; color: #e0e0e0; }
  .collapse-toggle:hover { background: rgba(77, 166, 255, 0.9); border-color: #4da6ff; }
  .collapse-toggle::after { background: rgba(10, 10, 10, 0.95); color: #e0e0e0; }
}
