/* Spolecny vzhled sekce Vesmir */
* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0b0a10;
  color: #d8d4dc;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 0.7rem 1.25rem;
  background: #1c1b23;
  border-bottom: 1px solid #322f3c;
}

.top-nav-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: #cfc4de;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.top-nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

.top-nav-links a,
.sub-nav a {
  color: #a9a3b6;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.top-nav-links a:hover,
.sub-nav a:hover { color: #d8d4dc; }

.top-nav-links a.active { color: #d8d4dc; border-bottom-color: #7a5fae; }

.sub-nav a.active { color: #d8d4dc; border-bottom-color: #6aa7e0; }

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding: 0.55rem 1.25rem;
  background: #15141b;
  border-bottom: 1px solid #26242e;
}

.sub-nav .sub-nav-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: #cfd9f0;
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* --- velka graficka plocha --- */
.stage {
  position: relative;
  height: min(74vh, 115vw);
  min-height: 360px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #120f1d 0%, #07060b 75%);
}

.stage.half { height: min(42vh, 64vw); min-height: 260px; }

.sim-date {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: #a9b4d0;
  font-size: 0.85rem;
  text-shadow: 0 0 8px #000;
  pointer-events: none;
}

.stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }

.stage-title { position: absolute; top: 1.25rem; left: 1.25rem; pointer-events: none; }

.stage-title h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #e3e8f6;
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 0 16px #000;
}

.stage-title p { margin: 0.25rem 0 0; color: #8d90a6; font-size: 0.85rem; text-shadow: 0 0 10px #000; }

.stage-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stage-controls button {
  background: rgba(28, 27, 35, 0.85);
  border: 1px solid #3a3646;
  color: #d8d4dc;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.stage-controls button.active,
.stage-controls button:hover { border-color: #6aa7e0; color: #fff; }

.tip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 0.45rem 0.7rem;
  background: rgba(20, 19, 28, 0.95);
  border: 1px solid #3a3646;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  pointer-events: none;
  transform: translate(14px, -50%);
}

.tip strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: normal; font-size: 1.02rem; color: #fff; }

/* --- obsah --- */
.content { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }

.content.narrow { max-width: 780px; }

.kicker { margin: 0 0 0.3rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #7d8299; }

h1.page-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: #e3e8f6;
  letter-spacing: 0.03em;
  margin: 0 0 0.8rem;
}

.lead {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  background: #16151f;
  border-left: 3px solid #6aa7e0;
  border-radius: 0 6px 6px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #c9cbd8;
}

.content h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  font-size: 1.55rem;
  color: #e3e8f6;
  margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 1rem;
}

.content h2:first-child { margin-top: 0; }

.content p,
.content li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #d0cfdb;
}

.content p { margin: 0 0 1rem; }

.content ul { padding-left: 1.4rem; margin: 0 0 1rem; }

.content li { margin-bottom: 0.4rem; }

.content strong { color: #f0f1fa; }

.content a { color: #8ec2f0; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.fact { background: #16151f; border: 1px solid #2c2a3a; border-radius: 6px; padding: 0.7rem 0.9rem; }

.fact dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7d8299; margin-bottom: 0.25rem; }

.fact dd { margin: 0; font-size: 1rem; color: #e8eaf4; line-height: 1.4; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.2rem; }

.card {
  display: block;
  padding: 1.2rem 1.3rem 1.3rem;
  background: #16151f;
  border: 1px solid #2c2a3a;
  border-top: 3px solid #6aa7e0;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover { border-color: #6aa7e0; transform: translateY(-2px); }

.card h2 { margin: 0 0 0.4rem !important; font-size: 1.4rem !important; }

.card p { margin: 0 !important; font-size: 0.98rem !important; color: #a9abbf !important; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 640px; }

th, td { padding: 0.55rem 0.65rem; border-bottom: 1px solid #22212c; text-align: left; vertical-align: top; }

th { color: #8ec2f0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

td { color: #d0cfdb; }

td a { color: #f0f1fa; text-decoration: none; border-bottom: 1px dotted #6aa7e0; }

td.num { text-align: right; white-space: nowrap; }

.box { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 8px; background: #121a26; border: 1px solid #23364d; }

.box-title { display: block; margin-bottom: 0.4rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8ec2f0; }

.box p:last-child { margin-bottom: 0; }

.quiz details { background: #16151f; border: 1px solid #2c2a3a; border-radius: 8px; margin-bottom: 0.6rem; }

.quiz summary { cursor: pointer; padding: 0.8rem 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; color: #e3e8f6; }

.quiz details p { padding: 0 1rem 0.9rem; margin: 0; color: #9fd0f5; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid #2c2a3a; }

.pager a { color: #8ec2f0; text-decoration: none; }

.pager a:hover { text-decoration: underline; }

.credits { color: #6f7086; font-size: 0.8rem; line-height: 1.5; margin-top: 2rem; }

.credits a { color: #8ec2f0; }

/* --- planeta: otacejici se koule z CSS --- */
.planet-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-bottom: 1.6rem; }

.planet-hero > div:last-child { flex: 1 1 20rem; min-width: 0; }

.planet-wrap { position: relative; width: 200px; height: 200px; flex-shrink: 0; margin: 0 auto; }

.planet {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-size: 200% 100%;
  animation: planet-spin 24s linear infinite;
  box-shadow: inset -30px -18px 50px rgba(0, 0, 0, 0.75), inset 8px 6px 25px rgba(255, 255, 255, 0.12), 0 0 40px rgba(120, 160, 255, 0.12);
}

.planet-wrap.small .planet { inset: 30px; }

.planet-wrap.has-ring { margin: 0 70px; }

.content .kicker { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.78rem; line-height: 1.4; color: #7d8299; }

@keyframes planet-spin { from { background-position: 0 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { .planet { animation: none; } }

.ring {
  position: absolute;
  left: -38%;
  top: 41%;
  width: 176%;
  height: 18%;
  border-radius: 50%;
  border: 9px solid rgba(218, 196, 150, 0.55);
  box-shadow: 0 0 0 5px rgba(180, 160, 120, 0.25);
  transform: rotate(-14deg);
  pointer-events: none;
}

.ring.back { z-index: 0; clip-path: inset(0 0 50% 0); }

.ring.front { z-index: 2; clip-path: inset(50% 0 0 0); }

.planet-wrap .planet { z-index: 1; }

.ring.thin { border-width: 2px; border-color: rgba(170, 210, 230, 0.4); box-shadow: none; transform: rotate(-82deg); }
