/* Education views — shared styling */

/* Tab bar */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.tab-btn { flex: 1; padding: 0.5rem 0.8rem; font-size: 0.75rem; font-family: 'Space Grotesk', sans-serif;
  font-weight: bold; background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--text-dim); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Education canvas area */
.edu-canvas-area { display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; height: 100%; padding: 1rem; background: #0f1923; }

/* Clock containers */
.clock-container { display: flex; flex-direction: column; align-items: center; }
.clock-canvas { width: 200px; height: 260px; }

/* Difference display */
.diff-display { text-align: center; padding: 0.8rem; }
.diff-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.2rem; }
.diff-value { font-size: 1.8rem; font-weight: bold; font-family: 'JetBrains Mono', monospace; }
.diff-value.ahead { color: #18d6e0; }
.diff-bar-track { width: 120px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 0.4rem auto 0; overflow: hidden; }
.diff-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #18d6e0);
  width: 0%; transition: width 0.3s; }

/* Narrative panel */
.narrative { line-height: 1.7; font-size: 0.8rem; color: var(--text-main); }
.narrative strong { color: var(--accent); }
.narrative em { color: var(--text-dim); }

/* Time readouts */
.time-readouts { display: flex; justify-content: center; gap: 2rem; margin-top: 0.5rem; }
.time-readout { text-align: center; }
.time-readout-label { font-size: 0.75rem; color: var(--text-dim); }
.time-readout-value { font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; }
.time-readout-earth .time-readout-value { color: #f59e0b; }
.time-readout-space .time-readout-value { color: #18d6e0; }

/* Responsive */
@media (max-width: 600px) {
  .edu-canvas-area { flex-direction: column; gap: 0.5rem; padding: 0.5rem; }
  .clock-canvas { width: 150px; height: 200px; }
}

/* ============================================================
   Education landing page
   ============================================================ */

.edu-landing {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.edu-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.edu-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.edu-subtitle {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.edu-intro {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Demo cards */
.edu-demos {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.edu-demo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.edu-demo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.edu-demo-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
}

.edu-demo-text {
  flex: 1;
}

.edu-demo-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.edu-demo-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.edu-demo-desc {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.6;
}

.edu-demo-arrow {
  font-size: 1.4rem;
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.15s;
}

.edu-demo-card:hover .edu-demo-arrow {
  color: var(--accent);
}

.edu-coming-soon {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.edu-footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 2rem;
}

@media (max-width: 500px) {
  .edu-landing { margin-top: 1.5rem; }
  .edu-hero h1 { font-size: 1.5rem; }
  .edu-demo-card { flex-direction: column; text-align: center; }
  .edu-demo-arrow { display: none; }
}
