/* ============================================================
   XMPanels — Maintenance Page Styles
   File: public/maintenance.css
   Tata letak terminal maintenance & responsivitas
   ============================================================ */

:root {
  --ink: #0a0a0d;
  --ink-2: #101015;
  --ink-3: #15151c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --orange: #ff6a00;
  --orange-2: #ff8d3a;
  --ember: #ff3d00;
  --amber: #ffb04a;
  --lime: #c7ff3d;
  --rose: #ff4d6d;
  --text: #f3f2ee;
  --text-soft: #c9c7be;
  --text-dim: #7f7d75;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Noto Sans SC', monospace;
  --display: 'Space Grotesk', 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
  --sans: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --grad: linear-gradient(135deg, #ff6a00 0%, #ff3d00 55%, #ffb04a 100%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* overflow:hidden dihapus: di layar pendek (HP landscape, HP kecil)
   kartu lebih tinggi dari layar dan bagian bawahnya terpotong tanpa
   bisa di-scroll. Sekarang scroll vertikal diizinkan, horizontal tidak. */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 76px 30px 30px; /* ruang atas untuk tombol bahasa */
  position: relative;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 65%);
  filter: blur(40px);
  animation: pulse 4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.terminal-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  /* margin:auto memusatkan kartu, tapi tetap aman di-scroll kalau
     kartu lebih tinggi dari layar (align-items:center memotong atasnya) */
  margin: auto;
  flex-shrink: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 106, 0, 0.06);
}

.terminal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.4), transparent 50%, rgba(255, 176, 74, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28ca42; }

.term-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content {
  padding: 42px 36px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 50px;
  background: rgba(255, 106, 0, 0.06);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: dot 1.8s ease-in-out infinite;
}

@keyframes dot {
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--grad);
  color: #fff;
  /* display:flex (bukan inline-flex) agar ikon selalu di baris sendiri.
     Sebelumnya ikon & label "/ system_maintenance" sama-sama inline,
     jadi di layar yang cukup lebar keduanya tampil bersebelahan. */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
  box-shadow: 0 18px 50px -12px rgba(255, 106, 0, 0.55);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}

h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desc {
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}

.progress::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  height: 100%;
  width: 30%;
  background: var(--grad);
  border-radius: 10px;
  animation: slide 1.8s var(--ease) infinite;
}

@keyframes slide {
  to { left: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 40px -10px rgba(255, 106, 0, 0.55);
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.socials {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.socials a:hover {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.copy {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.lang-fix {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100;
}

.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.lang-current:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-current .lang-flag {
  font-size: 0.95rem;
}

.lang-current .lang-caret {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.lang-switcher.open .lang-current {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-switcher.open .lang-current .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 106, 0, 0.08);
  color: var(--text);
}

.lang-option.active {
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  font-weight: 600;
}

.lang-option.active::after {
  content: "✓";
  margin-left: auto;
  color: var(--orange);
  font-weight: 700;
}

/* Responsiveness: Tablet (501px - 1024px) */
@media (min-width: 501px) and (max-width: 1024px) {
  .terminal-box {
    max-width: 600px;
  }
  .content {
    padding: 40px 32px;
  }
}

/* Responsiveness: Layar pendek (HP landscape) */
@media (max-height: 560px) {
  body {
    padding-top: 64px;
    padding-bottom: 16px;
  }
  .content {
    padding: 22px 24px;
  }
  .eyebrow {
    margin-bottom: 14px;
  }
  .icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 18px;
    margin-bottom: 14px;
    animation: none;
  }
  h1 {
    margin-bottom: 10px;
  }
  .desc {
    margin-bottom: 18px;
  }
  .progress {
    margin-bottom: 18px;
  }
  .socials,
  .copy {
    margin-top: 18px;
  }
}

/* Perangkat sentuh: hover tidak "nyangkut" setelah tap */
@media (hover: none) {
  .btn:hover,
  .socials a:hover {
    transform: none;
  }
}

/* Responsiveness: Mobile */
@media (max-width: 500px) {
  body {
    padding: 64px 12px 16px;
  }
  .term-head {
    padding: 12px 14px;
  }
  .term-title {
    margin-left: 8px;
    font-size: 0.7rem;
  }
  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }
  .content {
    padding: 32px 18px;
  }
  .icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .desc {
    font-size: 0.88rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .lang-fix {
    top: 12px;
    right: 12px;
  }
  .lang-menu {
    max-width: calc(100vw - 24px);
  }
}

/* HP sangat kecil (≤360px) */
@media (max-width: 360px) {
  .content {
    padding: 26px 14px;
  }
  h1 {
    font-size: 1.4rem;
  }
  .term-title {
    display: none;
  }
}
