/* Mystic Hands — brand skins for the block patterns registered in
   inc/block-patterns.php, plus the zone "edit" badge.

   Loaded on the front end only where block content can actually render
   (homepage free zones / singular block content — gated in mh_assets), and in
   the block editor via add_editor_style, so what the owner builds is what ships.

   Colours mirror the Tailwind palette (tailwind.config.js) — hex on purpose,
   this file is hand-written and needs no build step. */

.mh-bp-eyebrow {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cfa75f;
  margin: 0 0 0.9rem;
}

.mh-bp-title {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #f4ead7;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
}

.mh-bp-divider {
  color: #cfa75f;
  letter-spacing: 0.5em;
  margin: 0.9rem 0 0;
}

/* ── Section heading ─────────────────────────────────────────────── */
.mh-bp-heading {
  text-align: center;
}

/* ── CTA banner ──────────────────────────────────────────────────── */
.mh-bp-cta {
  background: linear-gradient(180deg, rgba(44, 28, 66, 0.55), rgba(24, 14, 38, 0.35));
  border: 1px solid rgba(207, 167, 95, 0.28);
  border-radius: 1.25rem;
  padding: 2.6rem 1.8rem;
  text-align: center;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.7);
}
.mh-bp-cta p {
  color: #c8b6dd;
}

/* Gold pill button — apply the class to the Button block. */
.mh-bp-btn .wp-block-button__link,
.wp-block-button.mh-bp-btn .wp-block-button__link {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b1330;
  background: linear-gradient(180deg, #f3dca0, #cfa75f);
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mh-bp-btn .wp-block-button__link:hover {
  box-shadow: 0 0 30px -6px rgba(207, 167, 95, 0.55);
  transform: translateY(-1px);
  color: #1b1330;
}

/* Ghost-outline companion button. */
.mh-bp-btn-ghost .wp-block-button__link {
  color: #e8cd8f;
  background: transparent;
  border: 1px solid rgba(207, 167, 95, 0.5);
}
.mh-bp-btn-ghost .wp-block-button__link:hover {
  border-color: #cfa75f;
  box-shadow: 0 0 22px -8px rgba(207, 167, 95, 0.5);
  color: #f3dca0;
}

/* ── Text / image split ──────────────────────────────────────────── */
.mh-bp-split {
  align-items: center;
  gap: 2rem;
}
.mh-bp-split .wp-block-image img {
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.7);
}

/* ── Verse / pull quote ──────────────────────────────────────────── */
.mh-bp-verse {
  text-align: center;
  padding: 1.6rem 0;
}
.mh-bp-verse-mark {
  color: #cfa75f;
  opacity: 0.85;
  letter-spacing: 0.6em;
  margin: 0;
}
.mh-bp-verse-text {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #eee2cc;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 2;
  max-width: 44rem;
  margin: 1rem auto;
}

/* ── Feature grid ────────────────────────────────────────────────── */
.mh-bp-feats {
  gap: 1.4rem;
}
.mh-bp-feats .wp-block-column {
  background: linear-gradient(180deg, rgba(44, 28, 66, 0.55), rgba(24, 14, 38, 0.35));
  border: 1px solid rgba(207, 167, 95, 0.22);
  border-radius: 1.25rem;
  padding: 1.7rem 1.3rem;
  text-align: center;
}
.mh-bp-glyph {
  color: #cfa75f;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
}
.mh-bp-feat-title {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #f4ead7;
  font-size: 1.15rem;
  margin: 0.7rem 0 0.45rem;
}
.mh-bp-feats p {
  color: #c8b6dd;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Image hero (cover) ──────────────────────────────────────────── */
.mh-bp-hero .wp-block-cover__inner-container {
  text-align: center;
}
.mh-bp-hero h1,
.mh-bp-hero h2 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #f4ead7;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

/* ── Centered prose ──────────────────────────────────────────────── */
.mh-bp-prose p {
  color: #d8cbe6;
  font-size: 1.02rem;
  line-height: 1.9;
}

/* ── Zone edit badge (only rendered for users who can edit the page) ── */
.mh-free-zone {
  position: relative;
}
.mh-zone-edit {
  position: absolute;
  top: 0.6rem;
  inset-inline-end: 0.9rem;
  z-index: 30;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1b1330;
  background: linear-gradient(180deg, #e8cd8f, #cfa75f);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.8);
}
.mh-zone-edit::before {
  content: "✎ ";
}
.mh-zone-edit:hover {
  opacity: 1;
  color: #1b1330;
}
@media (prefers-reduced-motion: reduce) {
  .mh-zone-edit {
    transition: none;
  }
}

/* ---------------------------------------------------------------
 * Editor tiles for the mh/* homepage section blocks + page-ref.
 * The real sections render server-side; in the canvas each shows a
 * branded tile so the layout reads clearly while arranging.
 * --------------------------------------------------------------- */
.mh-blk-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(120deg, #241a38, #2e2047);
  border: 1px solid rgba(207, 167, 95, 0.45);
  border-radius: 10px;
  color: #f4ead7;
  font-family: Jost, sans-serif;
}
.mh-blk-tile .dashicons {
  color: #cfa75f;
  font-size: 26px;
  width: 26px;
  height: 26px;
  flex: none;
}
.mh-blk-tile-txt {
  flex: 1;
  min-width: 0;
}
.mh-blk-tile strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mh-blk-tile small {
  display: block;
  margin-top: 2px;
  color: #9785ac;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.mh-blk-tile em {
  flex: none;
  font-style: normal;
  font-size: 10px;
  color: #c8b6dd;
  opacity: 0.8;
}
.mh-blk-side p {
  margin: 0 0 10px;
  color: #646970;
  font-size: 12px;
}
/* ServerSideRender output inside the editor keeps the zone skin. */
.mh-free-zone .mh-bp-heading,
.mh-free-zone .mh-bp-cta,
.mh-free-zone .mh-bp-verse {
  margin-left: auto;
  margin-right: auto;
}
