/* The Shop — Under Construction */

.construction-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

html:has(.construction-page) {
  overflow-y: scroll;
  height: auto;
}

.construction-hero {
  position: relative;
  display: block;
  padding: 1.5rem 0 3rem;
}

.construction-bg {
  position: absolute;
  inset: 0;
}

.construction-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: constructionKenBurns 24s ease-in-out infinite alternate;
}

@keyframes constructionKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.construction-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.55) 0%, rgba(10, 11, 12, 0.35) 35%, rgba(10, 11, 12, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.9) 0%, transparent 45%, rgba(10, 11, 12, 0.75) 100%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 162, 39, 0.12) 0%, transparent 55%);
}

.construction-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 60%, rgba(232, 197, 71, 0.9), transparent),
    radial-gradient(2px 2px at 45% 70%, rgba(201, 162, 39, 0.8), transparent),
    radial-gradient(1px 1px at 70% 55%, rgba(232, 197, 71, 0.7), transparent),
    radial-gradient(2px 2px at 85% 65%, rgba(139, 105, 20, 0.9), transparent);
  background-size: 100% 100%;
  animation: sparksFlicker 3s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes sparksFlicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

.construction-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

.construction-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem 1.5rem 2rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.construction-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--text);
  text-decoration: none;
}

.construction-logo:hover { color: var(--text); }

.construction-logo .logo-mark {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.construction-logo .logo-text {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.construction-logo .logo-tag {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 11, 12, 0.6);
  border-radius: var(--radius);
}

.construction-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 12px 4px var(--accent-glow); }
}

.construction-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

.construction-title span {
  display: block;
  color: var(--gold);
  font-size: 0.65em;
  margin-top: 0.15em;
}

.construction-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.construction-progress-wrap {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: left;
}

.construction-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 0.5rem;
}

.construction-progress-bar {
  height: 4px;
  background: var(--charcoal);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.construction-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--gold-bright));
  border-radius: 2px;
  animation: progressForge 4s ease-in-out infinite;
  box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes progressForge {
  0% { width: 42%; }
  50% { width: 68%; }
  100% { width: 42%; }
}

.construction-verse {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.06);
  text-align: left;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.construction-verse cite {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.construction-verse p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

.construction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Launch notify form */
.construction-notify {
  max-width: 440px;
  margin: 0 auto 1.5rem;
  text-align: left;
  padding: 1.75rem;
  padding-bottom: 2rem;
  background: rgba(10, 11, 12, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.construction-notify h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.construction-notify-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.notify-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.notify-form input,
.notify-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.notify-form input:focus,
.notify-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.notify-form textarea {
  resize: vertical;
  min-height: 72px;
}

.notify-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.notify-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
}

.notify-form .checkbox-label input {
  width: auto;
  margin: 0.2rem 0 0;
  accent-color: var(--gold);
}

.notify-form .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.notify-form .btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
  border: 1px solid var(--gold-bright);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.notify-form .btn-primary:hover {
  color: var(--bg-deep);
}

.notify-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.construction-notify-success {
  max-width: 440px;
  margin: 0 auto 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(85, 107, 47, 0.15);
  border: 1px solid var(--olive-light);
  border-radius: var(--radius);
}

.construction-notify-success[hidden],
#launchNotifyForm[hidden] {
  display: none !important;
}

.construction-notify-success h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.construction-notify-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.construction-preview-link {
  margin-top: 1rem;
  text-align: center;
}

.construction-preview-link a {
  font-size: 0.85rem;
  color: var(--steel-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.construction-preview-link a:hover {
  color: var(--gold);
}

.construction-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--charcoal);
  background: var(--bg-deep);
  font-size: 0.8rem;
  color: var(--steel);
}

.construction-footer strong {
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .construction-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .construction-actions .btn { width: 100%; }
  .notify-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-bg img,
  .construction-progress-fill,
  .construction-sparks,
  .construction-status::before {
    animation: none;
  }
  .construction-progress-fill { width: 55%; }
}
