/* ============================================================
   서버 점검 모드
   - 점검 안내 화면 (일반 회원)
   - 운영자 상단 배너
   - 관리자 페이지 상태 카드
   ============================================================ */

/* ---------- 점검 안내 화면 ---------- */
.gg-maint {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: var(--bg);
}

.gg-maint-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 45, 90, .12);
  padding: 38px 30px 30px;
  text-align: center;
  animation: ggMaintPop .45s cubic-bezier(.22, .9, .3, 1) backwards;
}

@keyframes ggMaintPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.gg-maint-duck {
  display: block;
  margin: 0 auto;
  width: 108px;
  height: 108px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: ggMaintBob 2.4s ease-in-out infinite;
}

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

.gg-maint-tag {
  display: inline-block;
  margin: 12px 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
}

.gg-maint-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 900;
  color: var(--tx);
}

.gg-maint-msg {
  margin: 0 0 20px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--tx-sub);
  white-space: normal;
  word-break: keep-all;
}

/* ---------- 완료 예정 시각 + 남은 시간 ---------- */
.gg-maint-eta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ffe2b8;
  background: #fff8ec;
}

.gg-maint-eta-label {
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffb020;
  color: #4a2600;
  font-size: 10.5px;
  font-weight: 900;
}

.gg-maint-eta-when {
  font-size: 14px;
  font-weight: 900;
  color: #a8620f;
}

.gg-maint-eta-left {
  font-size: 12px;
  font-weight: 800;
  color: #c2761a;
}

.gg-maint-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f8ff;
  font-size: 12px;
  font-weight: 800;
  color: #5b7ba8;
}

.gg-maint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: ggMaintBlink 1.3s ease-in-out infinite;
}

@keyframes ggMaintBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

.gg-maint-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 운영자 상단 배너 ---------- */
.gg-maint-bar {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: linear-gradient(180deg, #ffb020, #ff8f1f);
  color: #4a2600;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(120, 70, 0, .22);
}

.gg-maint-bar-txt b { font-weight: 900; }

.gg-maint-bar-btn {
  border: none;
  border-radius: 999px;
  height: 26px;
  padding: 0 14px;
  background: #4a2600;
  color: #ffd9a0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}

.gg-maint-bar-btn:disabled { opacity: .5; cursor: default; }

/* ---------- 관리자 페이지 상태 카드 ---------- */
.gg-maint-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dcedd9;
  background: #f2fbf3;
}

.gg-maint-state.is-on {
  border-color: #f6ddb4;
  background: #fff7ea;
}

.gg-maint-state b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #2f7d3a;
  margin-bottom: 3px;
}

.gg-maint-state.is-on b { color: #c2761a; }

.gg-maint-state small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx-sub);
  line-height: 1.6;
}

.gg-maint-state-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43b75a;
  box-shadow: 0 0 0 4px rgba(67, 183, 90, .18);
}

.gg-maint-state.is-on .gg-maint-state-dot {
  background: #ff9f1a;
  box-shadow: 0 0 0 4px rgba(255, 159, 26, .2);
  animation: ggMaintBlink 1.3s ease-in-out infinite;
}

.gg-maint-eta-inline {
  display: inline-block;
  margin-top: 5px;
  color: #c2761a;
  font-weight: 900;
}

/* ---------- 자동 해제 시간 입력 ---------- */
.gg-maint-when-input {
  width: 220px;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--tx);
}

.gg-maint-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gg-maint-preset {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  height: 30px;
  padding: 0 14px;
  background: #f5f9ff;
  color: #4a6a9c;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.gg-maint-preset:hover { background: #e8f1ff; }

.gg-maint-preset.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- 운영자 배너 안의 자동 해제 안내 ---------- */
.gg-maint-bar-eta {
  font-weight: 900;
  opacity: .92;
}
