/* ==========================================================================
   Under construction — inc/under-construction.php
   Matches the home page palette: ink #2D3142, slate #4F5D75,
   accent #EF8354, coral #F87060.
   ========================================================================== */

.construction-page {
  --construction-ink: #2D3142;
  --construction-slate: #4F5D75;
  --construction-accent: #EF8354;
  --construction-coral: #F87060;
  --construction-line: rgba(255, 255, 255, 0.14);
  --construction-radius: 24px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--construction-ink);
  color: #fff;
}

.construction-header {
  background-color: rgba(45, 49, 66, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.construction-header .header-logo {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.construction-header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.construction-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--construction-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.construction-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--construction-accent);
  box-shadow: 0 0 0 4px rgba(239, 131, 84, 0.18);
}

.construction-login-button button {
  height: 32px;
  padding: 0 18px;
  border-radius: 999px;
  background-color: var(--construction-accent);
  font-weight: 600;
}

.construction-login-button button:hover {
  background-color: var(--construction-coral);
}

/* Hero ------------------------------------------------------------------ */

.construction-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 53px);
  min-height: calc(100svh - 53px);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 6vw, 80px);
  background:
    radial-gradient(55% 60% at 88% 10%, rgba(239, 131, 84, 0.2), transparent 65%),
    radial-gradient(50% 60% at 0% 92%, rgba(79, 93, 117, 0.6), transparent 70%),
    var(--construction-ink);
  overflow: hidden;
}

.construction-main::before,
.construction-main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.construction-main::before {
  width: 520px;
  height: 520px;
  top: -220px;
  left: -160px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.construction-main::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -150px;
  border: 1px solid rgba(239, 131, 84, 0.16);
}

.construction-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.construction-copy {
  max-width: 620px;
}

.construction-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--construction-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.construction-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--construction-accent);
  box-shadow: 0 0 0 4px rgba(239, 131, 84, 0.18);
}

.construction-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.construction-copy h1 span {
  color: var(--construction-accent);
}

.construction-copy > p {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.construction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.construction-actions .btn-regular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 176px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 46px;
}

.construction-btn-primary {
  background-color: var(--construction-accent);
  color: #fff;
}

.construction-btn-primary:hover {
  background-color: var(--construction-coral);
  color: #fff;
}

.construction-btn-ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.construction-btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.construction-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.construction-point {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.construction-point strong {
  font-size: 0.88rem;
  color: #fff;
}

.construction-point span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Visual ---------------------------------------------------------------- */

.construction-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.construction-orbit {
  position: absolute;
  inset: 6% 4%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: construction-spin 36s linear infinite;
}

.construction-orbit::before,
.construction-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--construction-accent);
  box-shadow: 0 0 0 6px rgba(239, 131, 84, 0.14);
}

.construction-orbit::before {
  top: 4%;
  left: 50%;
}

.construction-orbit::after {
  bottom: 8%;
  right: 12%;
  background: var(--construction-coral);
}

.construction-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--construction-radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.construction-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(239, 131, 84, 0.16);
  color: #ffb99d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.construction-window-dots {
  display: flex;
  gap: 6px;
}

.construction-window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.construction-window-dots span:first-child {
  background: var(--construction-accent);
}

.construction-skeleton {
  display: grid;
  gap: 12px;
}

.construction-skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(45, 49, 66, 0.45);
}

.construction-skeleton-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(239, 131, 84, 0.7), rgba(248, 112, 96, 0.35));
}

.construction-skeleton-lines {
  flex: 1;
  display: grid;
  gap: 7px;
}

.construction-skeleton-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.construction-skeleton-line.is-short {
  width: 58%;
  background: rgba(255, 255, 255, 0.1);
}

.construction-float {
  position: absolute;
  right: -6px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(45, 49, 66, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.construction-float i {
  color: var(--construction-accent);
  font-size: 14px;
}

@keyframes construction-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Login modal ----------------------------------------------------------- */

.construction-page .modal {
  z-index: 3000;
  padding: 20px;
  background-color: rgba(18, 22, 34, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.construction-page .modal-content {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.construction-page .modal-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.construction-page .modal-content .custom-control {
  height: 44px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.construction-page .modal-content .btn-regular {
  height: 44px;
  border-radius: 999px;
  line-height: 44px;
}

.construction-page .toggle-buttons button {
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* Tablet / phone -------------------------------------------------------- */

@media (max-width: 900px) {
  .construction-main {
    min-height: auto;
    padding: clamp(36px, 8vw, 64px) clamp(18px, 6vw, 40px) clamp(44px, 9vw, 72px);
  }

  .construction-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .construction-copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .construction-copy > p {
    margin-inline: auto;
  }

  .construction-actions {
    justify-content: center;
  }

  .construction-points {
    justify-content: center;
    text-align: center;
  }

  .construction-visual {
    width: min(460px, 100%);
    min-height: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .construction-header-buttons {
    display: flex;
  }

  .construction-pill {
    display: none;
  }

  .construction-login-button button {
    width: auto;
    padding: 0 18px;
  }

  .construction-copy h1 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  .construction-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .construction-actions .btn-regular {
    width: 100%;
  }

  .construction-points {
    gap: 14px 20px;
  }

  .construction-point {
    flex: 1 1 40%;
  }

  .construction-card {
    padding: 18px;
  }

  .construction-float {
    right: 0;
    bottom: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-orbit {
    animation: none;
  }
}
