/* ===== SOLAR SYSTEM — style.css ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Root container ── */
#sr {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #00000a;
  font-family: 'Courier New', monospace;
}

/* ── WebGL canvas ── */
#c {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── HUD — top-left ── */
#hud-tl {
  position: absolute;
  top: 14px;
  left: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 2px;
  pointer-events: none;
}

#hud-tl span {
  display: block;
  color: rgba(80, 200, 255, 0.85);
  font-size: 11px;
  margin-top: 2px;
  letter-spacing: 3px;
}

#live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Live indicator dot */
#ld {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── HUD — bottom-center controls ── */
#hud-br {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: center;
}

/* Control buttons */
.hbtn {
  background: rgba(0, 10, 30, 0.7);
  border: 1px solid rgba(80, 180, 255, 0.25);
  color: rgba(180, 220, 255, 0.8);
  font-size: 10px;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 1.5px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
}

.hbtn:hover {
  background: rgba(80, 180, 255, 0.15);
  border-color: rgba(80, 180, 255, 0.5);
}

.hbtn.on {
  border-color: rgba(80, 200, 255, 0.7);
  color: rgba(80, 200, 255, 1);
}

/* ── Side info panel ── */
#panel {
    display: none;
    position: absolute;
    top: 100px;         /* ĐỔI TỪ 0 THÀNH 100px: Đẩy bảng thông tin xuống dưới Navbar */
    right: 0;
    width: 265px;
    height: calc(100% - 100px); /* TÍNH LẠI CHIỀU CAO: Để không bị tràn xuống đáy màn hình */
    background: rgba(0, 4, 18, 0.94);
    border-left: 1px solid rgba(80, 180, 255, 0.12);
    z-index: 20;        /* Giữ z-index thấp hơn Navbar (100) để Navbar luôn nổi lên trên */
    overflow-y: auto;
}

#pin {
  padding: 20px 16px 30px;
}

/* Close button */
#pcl {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  z-index: 21;
  line-height: 1;
  font-family: 'Courier New', monospace;
}

#pcl:hover {
  color: #fff;
}

/* Panel typography */
.ptitle {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 2px;
}

.psub {
  font-size: 10px;
  color: rgba(80, 200, 255, 0.6);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.pdiv {
  height: 1px;
  background: rgba(80, 180, 255, 0.12);
  margin: 12px 0;
}

.psec {
  font-size: 9px;
  color: rgba(80, 200, 255, 0.55);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.prow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.plbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.pval {
  font-size: 11px;
  color: rgba(100, 200, 255, 0.9);
  font-weight: 500;
  text-align: right;
  max-width: 120px;
  line-height: 1.4;
}

#planet-canvas {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent);
}

#back-btn:hover {
  background: rgba(80, 200, 255, 0.25);
  border-color: rgba(80, 200, 255, 0.7);
  color: rgba(80, 200, 255, 1);
}

.pdesc {
  font-size: 11px;
  color: rgba(180, 200, 230, 0.6);
  line-height: 1.75;
  margin-top: 6px;
}

/* ── Hint overlay ── */
#hint {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1.5px;
  text-align: right;
  line-height: 2;
  pointer-events: none;
}

/* ── Thanh Navbar đè lên không gian 3D ── */
.navbar-3d {
    position: absolute;
    top: 40px;      
    left: 60px;     /* THÊM DÒNG NÀY: Mở rộng vùng phủ ra tận góc trái màn hình */
    right: 60px;    /* Giữ khoảng cách cách mép phải */
    display: flex;
    align-items: center;
    gap: 40px;      
    z-index: 100;   
    pointer-events: none; /* Giúp không bị cản trở thao tác xoay camera ở khoảng trống */
}

.navbar-3d a {
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    transition: all 0.3s ease;
    pointer-events: auto; /* Bật lại tương tác click riêng cho các thẻ chữ */
}

/* ── THÊM ĐOẠN NÀY: Đẩy chữ ← QUAY LẠI sang góc trái biệt lập ── */
.navbar-3d a.back-btn {
    margin-right: auto; /* Tuyệt chiêu đẩy cụm menu còn lại sang phải */
    color: rgba(252, 252, 252, 0.85); /* Chuyển thành màu xanh neon nhẹ giống HUD cho đồng bộ */
    font-family: 'Courier New', monospace; /* Dùng font monospace tạo cảm giác công nghệ kĩ thuật */
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-3d a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(80, 200, 255, 0.6); 
}

.navbar-3d a.active-link {
    color: rgba(255, 255, 255, 0.827);
    padding-bottom: 3px;
}


