/* =========================================================
   retargeting.css
   Styles for:
     - Cookie/DPDP consent banner  (#fn-consent-banner)
     - Exit-intent popup           (#fn-exit-popup)
   Matches the dark 60-30-10 design system (--bg-void, --gold-core, etc.)
   ========================================================= */

/* ---- Consent banner ---- */
#fn-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #1E1E26;
  border-top: 1px solid #2A2A33;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.55);
  animation: fn-slide-up .3s ease;
}

@keyframes fn-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.fn-cb-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fn-cb-text {
  flex: 1 1 320px;
  font-size: .875rem;
  color: #C3C1BC;
  line-height: 1.6;
}

.fn-cb-link {
  color: #C9A227;
  text-decoration: underline;
}

.fn-cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.fn-cb-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}

.fn-cb-btn:hover { opacity: .85; }

.fn-cb-btn--ghost {
  background: transparent;
  color: #85837E;
  border: 1px solid #2A2A33;
}

.fn-cb-btn--gold {
  background: #C9A227;
  color: #1A1305;
}

@media (max-width: 600px) {
  .fn-cb-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .fn-cb-text { flex: none; } /* in a column, flex-basis 320px became a 320px-tall empty block */
  .fn-cb-actions { justify-content: flex-end; }
}

/* ---- Exit-intent popup ---- */
#fn-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.fn-ep-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,.80);
  backdrop-filter: blur(4px);
}

.fn-ep-box {
  position: relative;
  z-index: 1;
  background: #1E1E26;
  border: 1px solid #2A2A33;
  border-radius: 18px;
  box-shadow: 0 32px 64px rgba(0,0,0,.7),
              0 0 0 1px rgba(201,162,39,.12);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 40px 36px 32px;
  animation: fn-ep-in .35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fn-ep-in {
  from { transform: translateY(24px) scale(.97); }
  to   { transform: none; }
}

.fn-ep-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #85837E;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .15s;
}

.fn-ep-close:hover { color: #F4F2EC; }

.fn-ep-eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9A227;
  margin-bottom: 10px;
}

.fn-ep-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #F4F2EC;
  line-height: 1.25;
  margin-bottom: 12px;
}

.fn-ep-title em {
  font-style: italic;
  color: #E8C760;
}

.fn-ep-body {
  font-size: .9375rem;
  color: #C3C1BC;
  line-height: 1.6;
  margin-bottom: 20px;
}

.fn-ep-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-ep-input {
  background: #101014;
  border: 1px solid #2A2A33;
  border-radius: 10px;
  padding: 12px 14px;
  color: #F4F2EC;
  font-size: .9375rem;
  font-family: inherit;
  transition: border-color .15s;
  width: 100%;
}

.fn-ep-input::placeholder { color: #85837E; }
.fn-ep-input:focus { outline: none; border-color: #C9A227; }

.fn-ep-submit {
  background: linear-gradient(160deg, #E8C760 0%, #C9A227 45%, #8A6D14 100%);
  color: #1A1305;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .15s, transform .12s;
}

.fn-ep-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.fn-ep-submit:disabled { opacity: .6; cursor: not-allowed; }

.fn-ep-privacy {
  font-size: .8125rem;
  color: #85837E;
  text-align: center;
  margin-top: 2px;
}

.fn-ep-status {
  font-size: .875rem;
  min-height: 1.25rem;
  text-align: center;
}

@media (max-width: 480px) {
  .fn-ep-box { padding: 32px 20px 24px; }
}
