/**
 * Public maintenance screen styles.
 *
 * @package Polanger_Maintenance_Center
 */

:root {
  --pmc-shell-background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
  --pmc-accent-primary: #0f172a;
  --pmc-accent-secondary: #312e81;
  --pmc-card-surface: rgba(8, 15, 33, 0.62);
  --pmc-card-border: rgba(255, 255, 255, 0.14);
  --pmc-card-text: rgba(255, 255, 255, 0.88);
}

html,
body {
  min-height: 100%;
}

body.pmc-maintenance-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--pmc-shell-background);
  color: #ffffff;
}

.pmc-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
}

.pmc-shell__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 78%);
  pointer-events: none;
}

.pmc-shell__orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.pmc-shell__orb--one {
  top: 6%;
  left: 8%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
}

.pmc-shell__orb--two {
  right: 5%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: rgba(129, 140, 248, 0.26);
}

.pmc-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--pmc-card-surface);
  border: 1px solid var(--pmc-card-border);
  box-shadow: 0 38px 90px rgba(6, 12, 27, 0.34);
  backdrop-filter: blur(16px);
}

.pmc-card__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pmc-card__brand.pmc-align-center {
  justify-content: center;
}

.pmc-card__brand.pmc-align-right {
  justify-content: flex-end;
}

.pmc-card__logo,
.pmc-card__logo-fallback {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.pmc-card__logo-fallback {
  font-size: 32px;
  font-weight: 800;
}

.pmc-card__brand-name {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.pmc-card__copy {
  margin-top: 26px;
}

.pmc-card__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.pmc-card__message {
  color: var(--pmc-card-text);
  font-size: 18px;
  line-height: 1.85;
}

.pmc-card__message p:first-child {
  margin-top: 0;
}

.pmc-card__message p:last-child {
  margin-bottom: 0;
}

.pmc-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pmc-card__meta-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pmc-card__meta-item span,
.pmc-card__meta-item strong {
  display: block;
}

.pmc-card__meta-item span {
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pmc-card__meta-item strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.pmc-countdown {
  margin-top: 26px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pmc-countdown.is-complete .pmc-countdown__unit strong {
  color: #c7d2fe;
}

.pmc-countdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pmc-countdown__head strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.pmc-countdown__eyebrow {
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pmc-countdown__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 12px;
}

.pmc-countdown__unit {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.pmc-countdown__unit strong,
.pmc-countdown__unit span {
  display: block;
}

.pmc-countdown__unit strong {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pmc-countdown__unit span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pmc-card__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.pmc-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.pmc-card__button:hover,
.pmc-card__button:focus {
  color: #111827;
  text-decoration: none;
}

.pmc-card__footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.pmc-card__footer p:first-child {
  margin-top: 0;
}

.pmc-card__footer p:last-child {
  margin-bottom: 0;
}

.pmc-align-left {
  text-align: left;
}

.pmc-align-center {
  text-align: center;
}

.pmc-align-right {
  text-align: right;
}

@media (max-width: 860px) {
  .pmc-shell {
    padding: 20px;
  }

  .pmc-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .pmc-card__meta {
    grid-template-columns: 1fr;
  }

  .pmc-card__brand {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .pmc-countdown__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmc-card__actions {
    justify-content: stretch;
  }

  .pmc-card__button {
    width: 100%;
  }
}
