/* Cyber Classroom RU — หน้าสถานะ (400 / 403 / 404 / 429 / 500)
   ใช้ร่วมกันทุกหน้าเพื่อให้ผู้ใช้เห็นทิศทางเดียวกับหน้าหลัก */

:root {
  --navy:    #0a1330;
  --navy-2:  #101c46;
  --on:      #c5d0ee;
  --mute:    #9aa8d2;
  --gold:    #f0b429;
  --line:    rgba(255,255,255,0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body.status-page {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  overflow-x: hidden;
}

.status {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.status::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 260 260' fill='none' stroke='%23fff' stroke-opacity='.10' stroke-width='1.2'%3E%3Ccircle cx='130' cy='130' r='40'/%3E%3Ccircle cx='130' cy='130' r='75'/%3E%3Ccircle cx='130' cy='130' r='110'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.status > * { position: relative; }

.status-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.status-label i,
.status-label svg { flex: none; }

.status-code {
  margin: 8px 0 4px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(88px, 22vw, 148px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.status-message {
  margin: 0;
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.4;
  text-wrap: balance;
}
.status-sub {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--mute);
}
.status-desc {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--on);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.status-btn:hover { background: #fff; color: var(--navy); }
.status-btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.status-btn.ghost:hover { background: rgba(255,255,255,0.10); color: #fff; }
.status-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* เปลี่ยนหน้าแบบเดียวกับทั้งเว็บ (View Transitions ข้ามเอกสาร) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both; }
@keyframes vt-out { to   { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

.status-foot {
  margin: 44px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.status-foot strong { color: #fff; font-weight: 600; }
