/* Bila Lučica — newsletter pop-up (preview 2026-11-17)
   Uses the site's existing CSS variables and fonts. Does not change the logo or font-face rules. */

.nl-pop-root[hidden] { display: none !important; }

.nl-pop-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.nl-pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 32, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.nl-pop-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: var(--paper, #181a1d);
  color: var(--text, #e8e2d6);
  color-scheme: dark;
  padding: 2.6rem 2.1rem 2.2rem;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.nl-pop-dialog::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 143, 90, 0.45);
  pointer-events: none;
}

.nl-pop-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text, #e8e2d6);
  font: 300 1.6rem/1 var(--sans, 'Jost', system-ui, sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-pop-close:hover { color: var(--gold, #b08f5a); }
.nl-pop-close:focus-visible { outline: 2px solid var(--gold, #b08f5a); outline-offset: 2px; }

.nl-pop-ornament {
  width: 64px;
  height: 12px;
  margin: 0 auto 1.35rem;
  background:
    linear-gradient(var(--gold, #b08f5a), var(--gold, #b08f5a)) left center / 24px 1px no-repeat,
    linear-gradient(var(--gold, #b08f5a), var(--gold, #b08f5a)) right center / 24px 1px no-repeat;
  position: relative;
}
.nl-pop-ornament::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold, #b08f5a);
  transform: translate(-50%, -50%) rotate(45deg);
}

.nl-pop-dialog h2 {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1.15;
  color: var(--text, #e8e2d6);
  margin: 0 0 0.55rem;
}

.nl-pop-text {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text-light, #a39d91);
  margin: 0 auto 1.7rem;
  max-width: 22em;
}

.nl-pop-form {
  position: relative;
  text-align: left;
}

.nl-pop-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.05rem;
}

.nl-pop-field span {
  font-family: var(--sans, 'Jost', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #b08f5a);
}

.nl-pop-field input[type="text"],
.nl-pop-field input[type="email"] {
  font: 400 1.02rem/1.4 var(--sans, 'Jost', system-ui, sans-serif);
  color: var(--text, #e8e2d6);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(176, 143, 90, 0.5);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  width: 100%;
}

.nl-pop-field input::placeholder { color: rgba(232, 226, 214, 0.42); }
.nl-pop-field input:focus { outline: none; border-bottom-color: var(--gold, #b08f5a); }

.nl-pop-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.15rem 0 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light, #a39d91);
  cursor: pointer;
}
.nl-pop-consent input {
  margin-top: 0.28rem;
  flex-shrink: 0;
  accent-color: var(--gold, #b08f5a);
}

.nl-pop-actions { text-align: center; }

.nl-pop-submit {
  display: inline-block;
  min-width: 200px;
  padding: 0.85rem 1.6rem;
  background: var(--gold, #c9a46a);
  color: #0d0f12;
  border: 1px solid var(--gold, #c9a46a);
  font-family: var(--sans, 'Jost', system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s cubic-bezier(.2, .7, .2, 1), color .35s, border-color .35s;
}
.nl-pop-submit:hover { background: #f3ede2; border-color: #f3ede2; color: #0d0f12; }
.nl-pop-submit:disabled { opacity: 0.6; cursor: wait; }
.nl-pop-submit:focus-visible { outline: 2px solid var(--gold, #b08f5a); outline-offset: 3px; }

.nl-pop-msg { margin-top: 0.9rem; text-align: center; min-height: 1.2em; font-size: 0.95rem; }
.nl-pop-msg.ok { color: #b9d7a8; }
.nl-pop-msg.err { color: #f0a9a0; }

.nl-pop-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.nl-pop-open { overflow: hidden; }

@media (max-width: 420px) {
  .nl-pop-dialog { padding: 2.3rem 1.35rem 1.8rem; }
  .nl-pop-submit { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-pop-submit { transition: none; }
}
