/*
 * Velvet Sylph — extra.css
 * Loads on the front end after theme.json output.
 * Keeps the gilded ornamentation theme.json can't express: smoke gradients,
 * gilded card edges, soft texture, scent-card hover, and form polish.
 */

:root {
  --vs-gold: #C9A449;
  --vs-gold-bright: #E5C76B;
  --vs-parchment: #F0E4CC;
  --vs-parchment-dim: #C8B894;
  --vs-base: #14080F;
  --vs-surface: #2A0E1B;
  --vs-surface-lift: #3A1A2A;
  --vs-smoke: #9A8A95;
}

/* --- prevent horizontal overflow anywhere -------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* --- ambient parchment texture on the base background ------------------- */
body {
  background-image:
    radial-gradient(ellipse at top, rgba(74, 45, 106, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(139, 58, 42, 0.08), transparent 60%);
  background-attachment: fixed;
}

/* --- scent cards: equal height + vertically centered content ------- */
.wp-block-columns:has(.vs-scent-card) {
  align-items: stretch;
}
.wp-block-column:has(> .vs-scent-card) {
  display: flex;
  flex-direction: column;
}
.vs-scent-card {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  min-height: 240px;
}
.vs-scent-card > * {
  margin: 0 !important;
  width: 100%;
}

/* number label "No. I" */
.vs-scent-number {
  font-size: 0.7rem !important;
  letter-spacing: 0.42em !important;
  text-transform: uppercase;
  opacity: 0.85;
}

/* scent name — sized so 11-char HEARTHFRUIT fits a 4-column card at any reasonable viewport */
.vs-scent-card h3.vs-scent-name,
h3.vs-scent-name {
  font-size: clamp(0.95rem, 1.35vw, 1.3rem) !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  overflow: visible !important;
  line-height: 1.1 !important;
  margin: 0.4rem 0 !important;
}

/* italic notes underneath */
.vs-scent-notes {
  font-size: 0.92rem !important;
  font-style: italic;
  line-height: 1.5;
  text-wrap: balance;
  max-width: 24ch;
  margin-inline: auto !important;
}

/* "Inspired by ..." attribution line on the /scents page */
.vs-inspired-by {
  opacity: 0.78;
  position: relative;
}
.vs-inspired-by::before,
.vs-inspired-by::after {
  content: "·";
  display: inline-block;
  margin: 0 0.6em;
  opacity: 0.55;
}

/* --- selection ------------------------------------------------------- */
::selection {
  background: var(--vs-gold);
  color: var(--vs-base);
}

/* --- gilded edges on scent cards ------------------------------------ */
.vs-scent-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.vs-scent-card::before,
.vs-scent-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(229, 199, 107, 0.25);
  pointer-events: none;
  transition: inset 0.4s ease, border-color 0.4s ease;
}
.vs-scent-card::after {
  inset: 12px;
  border-color: rgba(229, 199, 107, 0.1);
}
.vs-scent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.vs-scent-card:hover::before {
  border-color: rgba(229, 199, 107, 0.55);
  inset: 6px;
}
.vs-scent-card:hover::after {
  border-color: rgba(229, 199, 107, 0.25);
  inset: 14px;
}

/* --- gilded edges on product cards (shop archive) ------------------- */
.vs-product-card {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.vs-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--vs-gold) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* --- buttons --------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
  transition: background-color 0.3s ease, color 0.3s ease, letter-spacing 0.3s ease;
}
.wp-block-button .wp-block-button__link:hover {
  letter-spacing: 0.22em;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--vs-gold);
  color: var(--vs-gold-bright);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--vs-gold);
  color: var(--vs-base);
}

/* --- separator: gilded fade, not a flat line ------------------------- */
.wp-block-separator.has-gold-background-color {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--vs-gold) 50%,
    transparent 100%);
  border: 0;
  opacity: 0.85;
}

/* --- typography refinements ----------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .has-cinzel-font-family {
  text-shadow: 0 0 24px rgba(229, 199, 107, 0.08);
}
.has-cinzel-font-family em,
h1 em, h2 em, h3 em {
  font-family: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* --- waitlist signup form (Newsletter plugin output) ---------------- */
.vs-waitlist .tnp-subscription form,
.vs-waitlist .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.vs-waitlist input[type="email"],
.vs-waitlist input[type="text"] {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 1px solid var(--vs-gold);
  border-radius: 0;
  color: var(--vs-parchment);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.vs-waitlist input[type="email"]:focus,
.vs-waitlist input[type="text"]:focus {
  outline: none;
  border-color: var(--vs-gold-bright);
  background: rgba(229, 199, 107, 0.05);
}
.vs-waitlist input[type="email"]::placeholder,
.vs-waitlist input[type="text"]::placeholder {
  color: var(--vs-smoke);
  font-style: italic;
  letter-spacing: 0.02em;
}
.vs-waitlist input[type="submit"],
.vs-waitlist button[type="submit"] {
  padding: 0.95rem 2rem;
  background: transparent;
  border: 1px solid var(--vs-gold);
  border-radius: 0;
  color: var(--vs-gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.vs-waitlist input[type="submit"]:hover,
.vs-waitlist button[type="submit"]:hover {
  background: var(--vs-gold);
  color: var(--vs-base);
  letter-spacing: 0.28em;
}
.vs-waitlist .tnp-field-privacy,
.vs-waitlist .tnp-privacy-field {
  font-size: 0.85rem;
  color: var(--vs-smoke);
}
.vs-waitlist .tnp-field-privacy a,
.vs-waitlist .tnp-privacy-field a {
  color: var(--vs-gold-bright);
}

/* --- site logo + identity in header -------------------------------- */
.wp-block-site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.wp-block-site-logo img {
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
  filter: drop-shadow(0 0 12px rgba(229, 199, 107, 0.25));
}
.wp-block-site-title {
  line-height: 1;
}

/* --- hero flame mark ------------------------------------------------ */
.vs-hero-mark {
  margin-bottom: 0 !important;
  filter: drop-shadow(0 0 24px rgba(229, 199, 107, 0.35));
  animation: vs-hero-mark-glow 6s ease-in-out infinite;
}
.vs-hero-mark img {
  display: block;
  margin-inline: auto;
}
@keyframes vs-hero-mark-glow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(229, 199, 107, 0.25)); }
  50% { filter: drop-shadow(0 0 32px rgba(229, 199, 107, 0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .vs-hero-mark { animation: none; }
}

/* --- header navigation polish --------------------------------------- */
.wp-block-navigation a {
  position: relative;
}
.wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--vs-gold);
  transition: width 0.3s ease, left 0.3s ease;
}
.wp-block-navigation a:hover::after {
  width: 100%;
  left: 0;
}

/* --- mini cart polish ------------------------------------------------ */
.wp-block-woocommerce-mini-cart-contents .wc-block-mini-cart__items {
  background: var(--vs-surface);
}

/* --- WooCommerce: price color in archive --------------------------- */
.woocommerce-Price-amount {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
}

/* --- responsive: tighten hero padding on phones --------------------- */
@media (max-width: 640px) {
  .wp-block-cover {
    min-height: 60vh !important;
  }
  .vs-scent-card {
    padding: 2rem 1.25rem !important;
  }
}

/* --- print: hide nav/footer so blog posts print cleanly ------------- */
@media print {
  header, footer, .wp-block-navigation, .vs-waitlist {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
