/*
  Breguet Sky Map
  File: style.css

  Poster configurator layout
  Visual direction:
  - full page gradient background
  - transparent poster card
  - dense but readable stars
  - visible constellation lines
  - optional constellation names
  - glass-like right configurator
  - orbit reveal animation
  - one action only: Export JPG
*/

:root {
  --page-bg: #1f3245;
  --panel-bg: rgba(255, 255, 255, 0.92);

  --poster-blue: #1f3245;
  --poster-blue-dark: #0f1826;

  --ink: #0d2038;
  --muted: #747b85;
  --line: rgba(13, 32, 56, 0.14);
  --field-bg: rgba(243, 243, 243, 0.92);

  --primary: #cdad69;
  --primary-dark: #cdad69;

  --white: #ffffff;
  --shadow: none;

  --side-width: 430px;
}

@font-face {
  font-family: "SangBleuKingdom-Regular-WebS";
  src:
    url("fonts/SangBleuKingdom-Regular-WebXL.woff2") format("woff2"),
    url("fonts/SangBleuKingdom-Regular-WebXL.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SuisseScreen-Regular-WebS";
  src:
    url("fonts/SuisseScreen-Monitor-WebXL.woff2") format("woff2"),
    url("fonts/SuisseScreen-Monitor-WebXL.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Base */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "SuisseScreen-Regular-WebS", Arial, Helvetica, sans-serif;
  color: var(--ink);

  background: #080c12;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 1) 10%,
    rgba(31, 50, 69, 1) 46%,
    rgba(117, 121, 133, 1) 67%,
    rgba(225, 156, 102, 1) 90%,
    rgba(191, 176, 176, 1) 98%
  );
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
}

/* Main layout */

.configurator {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-width);
}

/* Left preview */

.preview-side {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 17px 27px;
}

.poster-shell {
  width: min(660px, calc(100vw - var(--side-width) - 80px));
  min-width: 520px;
}

.poster-card {
  position: relative;
  width: 100%;
  height: 900px;
  color: var(--white);
  overflow: hidden;
  box-shadow: none;
  contain: paint;
  background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  font-family: "SangBleuKingdom-Regular-WebS", Georgia, "Times New Roman", serif;
  color: #000;
}

/* Sky disc */

.sky-disc-wrap {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 80%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
}

.sky-map {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Stars */

.star-layer circle {
  fill: rgba(255, 255, 255, 0.99);
}

.star-halo-layer circle {
  fill: rgba(255, 255, 255, 1);
}

/* Constellations */

.constellation-layer {
  opacity: 1;
}

.constellation-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Constellation names */

.constellation-name-layer {
  pointer-events: none;
}

.constellation-name {
  font-family: "SuisseScreen-Regular-WebS", Arial, Helvetica, sans-serif;
  font-size: 16px;
	font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.62);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Orbit reveal animation */

.sky-map.is-orbit-revealing .sky-root {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitReveal 1800ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.sky-map.is-orbit-revealing .star-layer {
  animation: orbitStarsFade 1800ms ease-out both;
}

.sky-map.is-orbit-revealing .star-halo-layer {
  animation: orbitHalosFade 1800ms ease-out both;
}

.sky-map.is-orbit-revealing .constellation-layer {
  animation: orbitConstellationsFade 1800ms ease-out both;
}

.sky-map.is-orbit-revealing .constellation-name-layer {
  animation: orbitConstellationNamesFade 1800ms ease-out both;
}

@keyframes orbitReveal {
  0% {
    opacity: 0;
    transform: rotate(var(--orbit-start, -90deg)) scale(1.03);
  }

  35% {
    opacity: 1;
    transform: rotate(calc(var(--orbit-start, -90deg) * 0.45)) scale(1.02);
  }

  68% {
    transform: rotate(8deg) scale(1.005);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes orbitStarsFade {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.35;
  }

  100% {
    opacity: 1;
  }
}

@keyframes orbitHalosFade {
  0% {
    opacity: 0;
  }

  28% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

@keyframes orbitConstellationsFade {
  0% {
    opacity: 0;
  }

  38% {
    opacity: 0.15;
  }

  100% {
    opacity: 1;
  }
}

@keyframes orbitConstellationNamesFade {
  0% {
    opacity: 0;
  }

  48% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Grid, if ever activated internally */

.grid-layer {
  opacity: 0.12;
}

.grid-layer line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.6;
}

/* Milky Way disabled */

.milkyway {
  display: none;
}

/* Poster text */

.poster-meta {
  position: absolute;
  top: 75%;
  left: 50%;
  bottom: 58px;
  width: 82%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "SangBleuKingdom-Regular-WebS", Georgia, "Times New Roman", serif;
  color: var(--white);
}

.poster-meta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poster-meta span {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.poster-meta .coordinates {
  text-transform: none;
}

.poster-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0;
  border: 0;
}

.poster-logo-placeholder img,
.poster-logo-img {
  display: block;
  height: 35px;
  width: auto;
  margin: 0 auto;
}

.poster-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 16px auto 0;
}

/* Right panel */

.config-side {
  height: 100vh;
  background: var(--panel-bg);
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.config-scroll {
  min-height: 100vh;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  text-align: center;
}

.brand-header img {
  display: block;
  height: 50px;
  width: auto;
  margin: 0 auto 18px;
}

.brand-logo {
  width: 62px;
  height: auto;
  object-fit: contain;
}

.brand-logo-img {
  display: block;
  height: 35px;
  width: auto;
  flex: 0 0 auto;
}

.brand-logo-text {
  font-family: "SangBleuKingdom-Regular-WebS", Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.intro {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Form */

.form-block {
  margin: 0 0 18px;
}

.form-block h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.field {
  margin: 0;
}

label,
.helper {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--field-bg);
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
}

textarea {
  min-height: 94px;
  padding: 12px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(49, 93, 147, 0.35);
}

/* Location suggestions */

.location-field {
  position: relative;
}

.location-suggestions {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.location-suggestions.is-open {
  display: block;
}

.location-suggestion {
  width: 100%;
  display: block;
  padding: 11px 12px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.location-suggestion:last-child {
  border-bottom: 0;
}

.location-suggestion:hover,
.location-suggestion:focus {
  background: var(--field-bg);
}

.location-suggestion strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--ink);
}

.location-suggestion span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.location-suggestions-empty,
.location-suggestions-loading {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Date */

.date-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.9fr;
  gap: 9px;
}

/* Time */

.time-row {
  display: grid;
  grid-template-columns: 85px 85px 1fr;
  gap: 9px;
}

.choice-button {
  height: 50px;
  background: var(--field-bg);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.choice-button.is-active {
  color: var(--ink);
}

.time-field {
  margin: 0;
}

.time-field input {
  height: 50px;
}

/* Rendering */

.rendering-block {
  margin-top: 18px;
}

.rendering-block .single-option + .single-option {
  margin-top: 10px;
}

.single-option {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 16px;
}

.single-option span {
  display: block;
}

/* Switch */

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #b9b9b9;
  transition: background 0.18s ease;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s ease;
}

.switch.is-active {
  background: var(--primary);
}

.switch.is-active span {
  transform: translateX(22px);
}

/* Dedication */

.helper {
  margin-top: -3px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

/* Utilities */

.sr-only,
[hidden] {
  display: none !important;
}

/* Bottom action */

.config-actions {
  margin-top: auto;
  padding-top: 22px;
}

.download-title {
  margin: 0 0 10px;
  font-family: "SangBleuKingdom-Regular-WebS", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-actions .export-button,
.download-actions .export-button-secondary {
  width: 100%;
  height: 48px;
}

.export-button {
  background: var(--primary);
  color: #fff; 
	border-color: #000;
border: 1px solid rgba(13, 32, 56, 0);
  
}

.export-button:hover {
  background: transparent;
  color: var(--primary);
  border-color: #000;
	border: 1px solid rgba(13, 32, 56, 0.18);
}

/* Reveal button */

.reveal-button {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid rgba(13, 32, 56, 0.18);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.reveal-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Legacy buttons: intentionally disabled */

.back-button,
.continue-button,
.download-button {
  display: none;
}

/* Compatibility with older generated HTML */

.site-header,
.preview-header,
.summary-panel,
.progress-steps,
.panel-intro .eyebrow {
  display: none;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .sky-map.is-orbit-revealing .sky-root,
  .sky-map.is-orbit-revealing .star-layer,
  .sky-map.is-orbit-revealing .star-halo-layer,
  .sky-map.is-orbit-revealing .constellation-layer,
  .sky-map.is-orbit-revealing .constellation-name-layer {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --side-width: 400px;
  }

  .poster-shell {
    width: min(600px, calc(100vw - var(--side-width) - 60px));
    min-width: 480px;
  }

  .sky-disc-wrap {
    top: 52px;
  }
}

@media (max-width: 940px) {
  .configurator {
    grid-template-columns: 1fr;
  }

  .preview-side {
    min-height: auto;
    padding: 18px;
  }

  .poster-shell {
    width: min(660px, 100%);
    min-width: 0;
  }

  .config-side {
    height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .config-scroll {
    min-height: auto;
  }
}

/* Mobile */

@media (max-width: 620px) {
  .configurator {
    display: block;
  }

  .preview-side {
    min-height: auto;
    padding: 0;
  }

  .poster-shell {
    width: 100%;
    min-width: 0;
  }

  .poster-card {
    width: 100%;
    height: 620px;
    aspect-ratio: auto;
    background: transparent;
  }

  .sky-disc-wrap {
    top: 26px;
    width: 74%;
  }

  .poster-meta {
    top: auto;
    bottom: 44px;
    width: 88%;
  }

  .poster-meta strong {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .poster-meta span {
    font-size: 12px;
    line-height: 1.45;
  }

  .poster-logo-placeholder img,
  .poster-logo-img {
    height: 27px;
  }

  .poster-logo {
    width: 82px;
    margin-top: 12px;
  }

  .constellation-name {
    font-size: 14px;
	  font-weight: 600;
    letter-spacing: 0.1em;
  }

  .config-side {
    height: auto;
    border-left: 0;
    border-top: 0;
    background: rgba(255, 255, 255, 0.94);
  }

  .config-scroll {
    min-height: auto;
    padding: 34px 20px 24px;
  }

  .brand-header {
    margin-bottom: 28px;
  }

  .brand-header img {
    height: 50px;
    margin: 0 auto 18px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.45;
  }

  .date-grid,
  .time-row {
    grid-template-columns: 1fr;
  }

  .config-actions {
    padding-top: 18px;
  }
}