/* ══════════════════════════════════════════
   maintenance.css — Заглушка «Технические работы»
   Показать:  #maintenance-overlay { display: flex }
   Скрыть:    #maintenance-overlay { display: none }
   ══════════════════════════════════════════ */

#maintenance-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  background: var(--bg, #212121);
  color: var(--text, #ececec);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  text-align: center;
}

#maintenance-overlay .m-icon {
  font-size: 64px;
  line-height: 1;
  animation: m-pulse 2s ease-in-out infinite;
}

#maintenance-overlay .m-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#maintenance-overlay .m-desc {
  font-size: 0.95rem;
  color: var(--text-sec, #a0a0a0);
  max-width: 360px;
  line-height: 1.6;
}

#maintenance-overlay .m-pill {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

#maintenance-overlay .m-progress {
  width: 200px;
  height: 4px;
  background: var(--border, rgba(255,255,255,0.1));
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

#maintenance-overlay .m-progress-bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 2px;
  animation: m-slide 1.8s ease-in-out infinite;
}

@keyframes m-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes m-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Светлая тема */
[data-theme="light"] #maintenance-overlay {
  background: #f0f2f5;
  color: #1a1a2e;
}

[data-theme="light"] #maintenance-overlay .m-desc {
  color: #6b7280;
}

[data-theme="light"] #maintenance-overlay .m-progress {
  background: #d1dff0;
}
