/* ============================================================
   Ace Realms Maintenance Page - Stylesheet
   Identical to reference design with animated socket spark
   ============================================================ */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-color: #ffffff;
  --text-main: #2b3642;
  --text-muted: #7b8897;
  --border-subtle: #f0f3f6;
  
  --cyan-primary: #0091ea;
  --cyan-bright: #00e5ff;
  --cyan-soft: #bdf1fc;

  --green-primary: #00e676;
  --green-bright: #69f0ae;
  --green-deep: #009624;
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  font-family: var(--font-family);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Page Layout */
.maintenance-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
}

/* ------------------------------------------------------------
   Header & Brand Logo
   ------------------------------------------------------------ */
.site-header {
  padding: 3rem 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #27313b;
}

/* ------------------------------------------------------------
   Main Hero Content
   ------------------------------------------------------------ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}

.text-group {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  margin-bottom: 3.5rem;
}

.main-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.sub-title {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Vector Illustration
   ------------------------------------------------------------ */
.illustration-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.canvas-wrapper {
  width: 100%;
  max-width: 1540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circuit-svg {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 340px;
  display: block;
}

/* ------------------------------------------------------------
   Socket Spark Animation (ONLY animation active)
   ------------------------------------------------------------ */
.spark-line {
  stroke-dasharray: 6 3;
  animation: sparkFlicker 1.6s steps(4) infinite;
}

@keyframes sparkFlicker {
  0%, 100% {
    opacity: 0.1;
    stroke-dashoffset: 0;
  }
  25% {
    opacity: 0.95;
    stroke-dashoffset: 10;
  }
  50% {
    opacity: 0.3;
    stroke-dashoffset: 5;
  }
  75% {
    opacity: 1;
    stroke-dashoffset: 15;
  }
}

.socket-glow {
  animation: socketGlowAura 2s ease-in-out infinite alternate;
}

@keyframes socketGlowAura {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

/* ------------------------------------------------------------
   Footer (Matching Reference: Clean, No Social Icons)
   ------------------------------------------------------------ */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-color);
  padding: 1.8rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.contact-label {
  font-weight: 500;
  color: #798797;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.item-label {
  color: #798797;
  font-weight: 500;
}

.contact-email {
  color: #2b3642;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-email:hover {
  color: var(--cyan-primary);
  background-color: #f1f9ff;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Toast Notification
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  visibility: hidden;
  background: #1e293b;
  color: #f8fafc;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-check {
  width: 18px;
  height: 18px;
  color: #00e676;
}

/* ------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-header {
    padding: 2rem 1.5rem 0.5rem;
  }
  
  .text-group {
    margin-bottom: 2rem;
  }

  .main-title {
    font-size: 2rem;
  }
  
  .sub-title {
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }
  
  .contact-line {
    gap: 0.75rem;
    flex-direction: column;
  }
}
