/*
 * File: wp-content/mu-plugins/veil-core/modules/first-fracture/assets/first-fracture-page.css
 * Purpose: Landing page layout and immersive section styling for The First Fracture.
 */

:root {
  --ff-page-bg: #06070b;
  --ff-page-panel: rgba(12, 13, 18, 0.9);
  --ff-page-line: rgba(255,255,255,0.1);
  --ff-page-text: #f2ede6;
  --ff-page-muted: #c8bcad;
  --ff-page-gold: #d6b46a;
  --ff-page-blue: #8fc7ff;
  --ff-page-red: #b9354a;
  --ff-page-blood: #ff2f3f;
  --ff-page-shadow: 0 24px 80px rgba(0,0,0,.45);
}

/* ---------------------------------------------------------
   General Sections
--------------------------------------------------------- */

.ff-section,
.ff-teaser-panel,
.ff-final-cta {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.ff-section__inner,
.ff-teaser-panel__content,
.ff-final-cta__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.ff-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .38rem .85rem;
  border: 1px solid rgba(214,180,106,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--ff-page-gold);
  font-family: Cinzel, Georgia, serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ff-section h2,
.ff-teaser-panel h2,
.ff-final-cta h2 {
  margin: 0 0 1rem;
  color: var(--ff-page-text);
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.ff-section p,
.ff-teaser-panel p,
.ff-final-cta p {
  max-width: 850px;
  color: var(--ff-page-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.ff-hero {
  overflow: hidden;
}

.ff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255,47,63,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(143,199,255,.12), transparent 24%);
  pointer-events: none;
}

/* ---------------------------------------------------------
   Story Intro
--------------------------------------------------------- */

.ff-story-intro {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), transparent),
    var(--ff-page-bg);
}

/* ---------------------------------------------------------
   Teaser Panel
--------------------------------------------------------- */

.ff-teaser-panel {
  overflow: hidden;
}

.ff-teaser-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(185,53,74,.08), transparent 40%),
    radial-gradient(circle at top right, rgba(255,47,63,.14), transparent 28%);
  pointer-events: none;
}

.ff-teaser-panel__content {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(12,13,20,.96), rgba(4,4,8,.96));
  box-shadow: var(--ff-page-shadow);
}

.ff-teaser-panel__content::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255,47,63,.12);
  filter: blur(25px);
  pointer-events: none;
}

/* ---------------------------------------------------------
   Preview Grid
--------------------------------------------------------- */

.ff-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ff-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 2rem;
  border: 1px solid rgba(143,199,255,.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(12,13,20,.95), rgba(5,5,9,.96));
  box-shadow: var(--ff-page-shadow);
}

.ff-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(143,199,255,.12), transparent 35%);
  pointer-events: none;
}

.ff-preview-card--sealed {
  border-color: rgba(255,47,63,.24);
}

.ff-preview-card--sealed::before {
  background:
    radial-gradient(circle at top left, rgba(255,47,63,.14), transparent 35%);
}

.ff-preview-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--ff-page-gold);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ff-preview-card h3 {
  margin: 0 0 .75rem;
  color: var(--ff-page-text);
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: 1.5rem;
}

.ff-preview-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Codex Links
--------------------------------------------------------- */

.ff-codex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ff-codex-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 240px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(20, 22, 34, 0.96),
      rgba(8, 8, 14, 0.98)
    );

  color: var(--ff-page-text);
  text-decoration: none !important;

  box-shadow: var(--ff-page-shadow);

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.ff-codex-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,47,63,.12),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(143,199,255,.10),
      transparent 28%
    );

  opacity: .9;
  pointer-events: none;
}

.ff-codex-card::after {
  content: "";
  position: absolute;

  width: 260px;
  height: 260px;

  right: -120px;
  bottom: -120px;

  border-radius: 50%;

  background: rgba(255,47,63,.08);

  filter: blur(24px);

  pointer-events: none;
}

.ff-codex-card:hover,
.ff-codex-card:focus-visible {
  transform: translateY(-6px);

  border-color: rgba(255,47,63,.45);

  background:
    linear-gradient(
      145deg,
      rgba(26, 28, 42, 0.98),
      rgba(10, 10, 16, 1)
    );

  box-shadow:
    var(--ff-page-shadow),
    0 0 36px rgba(255,47,63,.18);

  outline: none;
}

.ff-codex-card span {
  display: inline-flex;
  margin-bottom: 1rem;

  color: var(--ff-page-gold);

  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ff-codex-card h3 {
  margin: 0 0 .8rem;

  color: #fff;

  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: 1.55rem;

  text-decoration: none !important;
}

.ff-codex-card p {
  margin: 0;

  color: var(--ff-page-muted);

  line-height: 1.7;

  text-decoration: none !important;
}
/* ---------------------------------------------------------
   Final CTA
--------------------------------------------------------- */

.ff-final-cta {
  overflow: hidden;
}

.ff-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,47,63,.1), transparent 30%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  pointer-events: none;
}

.ff-final-cta__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(12,13,20,.96), rgba(3,3,7,.98));
  text-align: center;
  box-shadow: var(--ff-page-shadow);
}

.ff-final-cta__inner::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -180px;
  right: -180px;
  border-radius: 50%;
  background: rgba(255,47,63,.12);
  filter: blur(30px);
  pointer-events: none;
}

.ff-final-cta p {
  margin-inline: auto;
}

.ff-final-cta .lv-hero-ctas {
  justify-content: center;
  margin-top: 2rem;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 980px) {
  .ff-preview-grid,
  .ff-codex-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ff-section,
  .ff-teaser-panel,
  .ff-final-cta {
    padding-inline: 1rem;
  }

  .ff-preview-card,
  .ff-codex-card,
  .ff-final-cta__inner,
  .ff-teaser-panel__content {
    border-radius: 22px;
  }

  .ff-section p,
  .ff-teaser-panel p,
  .ff-final-cta p {
    font-size: 1rem;
  }
}
/* ---------------------------------------------------------
   Remove Link Underlines Inside Fracture Cards
--------------------------------------------------------- */

.ff-codex-card,
.ff-codex-card *,
.ff-download-card,
.ff-download-card *,
.ff-tier-card,
.ff-tier-card *,
.ff-preview-card,
.ff-preview-card * {
  text-decoration: none !important;
}

.ff-codex-card:hover,
.ff-codex-card:hover *,
.ff-download-card:hover,
.ff-download-card:hover *,
.ff-tier-card:hover,
.ff-tier-card:hover *,
.ff-preview-card:hover,
.ff-preview-card:hover * {
  text-decoration: none !important;
}
/* ---------------------------------------------------------
   Fracture Card Link Color Fixes
--------------------------------------------------------- */

/* Entire card clickable without theme link styling */

.ff-codex-card,
.ff-download-card,
.ff-tier-card,
.ff-preview-card {
  color: var(--ff-page-text) !important;
  text-decoration: none !important;
}

/* Remove underline/colors from EVERYTHING inside */

.ff-codex-card *,
.ff-download-card *,
.ff-tier-card *,
.ff-preview-card * {
  text-decoration: none !important;
}

/* Body text stays normal */

.ff-codex-card p,
.ff-download-card p,
.ff-tier-card p,
.ff-preview-card p,
.ff-codex-card span,
.ff-download-card span,
.ff-tier-card span,
.ff-preview-card span {
  color: var(--ff-page-muted) !important;
}

/* ONLY titles get accent color */

.ff-codex-card h3,
.ff-download-card h3,
.ff-tier-card h3,
.ff-preview-card h3 {
  color: var(--ff-page-gold) !important;
}

/* Hover state */

.ff-codex-card:hover h3,
.ff-download-card:hover h3,
.ff-tier-card:hover h3,
.ff-preview-card:hover h3 {
  color: #fff !important;
}
/* ---------------------------------------------------------
   Hidden Truths Notes
--------------------------------------------------------- */

.ff-hidden-note {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;

  border-left: 2px solid rgba(185,53,74,.45);

  background:
    linear-gradient(
      145deg,
      rgba(18,20,28,.92),
      rgba(10,10,16,.96)
    );

  border-radius: 18px;

  box-shadow:
    0 12px 36px rgba(0,0,0,.28);
}

.ff-hidden-note__title {
  margin-bottom: .85rem;

  color: var(--ff-page-gold);

  font-family: Cinzel, Georgia, serif;
  font-size: .82rem;
  font-weight: 700;

  letter-spacing: .14em;
  text-transform: uppercase;
}

.ff-hidden-note p {
  margin: 0;

  color: var(--ff-page-muted);

  line-height: 1.85;
}
.ff-hidden-note--forbidden .ff-hidden-note__title {
  color: #ff4d5d;
}
/* ---------------------------------------------------------
   Hidden Truths / Forbidden Archive Titles
--------------------------------------------------------- */

.ff-hidden-note__title,
.ff-hidden-note__title *,
.ff-hidden-note__title em,
.ff-hidden-note__title i {
  color: var(--ff-page-gold) !important;

  font-family: Cinzel, Georgia, serif !important;

  font-size: .82rem !important;
  font-style: italic !important;
  font-weight: 700 !important;

  letter-spacing: .14em;
  text-transform: uppercase;

  text-decoration: none !important;
}

/* Forbidden archive titles */

.ff-hidden-note--forbidden .ff-hidden-note__title,
.ff-hidden-note--forbidden .ff-hidden-note__title *,
.ff-hidden-note--forbidden .ff-hidden-note__title em,
.ff-hidden-note--forbidden .ff-hidden-note__title i {
  color: #ff4d5d !important;
}
/* FORCE Hidden Truths note titles */
body .ff-chapter-card .ff-hidden-note .ff-hidden-note__title,
body .ff-chapter-card .ff-hidden-note .ff-hidden-note__title em,
body .ff-chapter-card .ff-hidden-note .ff-hidden-note__title i {
  color: #d6b46a !important;
  font-family: Cinzel, Georgia, serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  display: block !important;
}

/* FORCE Forbidden Archive note titles */
body .ff-chapter-card--ascendant .ff-hidden-note .ff-hidden-note__title,
body .ff-chapter-card--ascendant .ff-hidden-note .ff-hidden-note__title em,
body .ff-chapter-card--ascendant .ff-hidden-note .ff-hidden-note__title i,
body .ff-hidden-note--forbidden .ff-hidden-note__title,
body .ff-hidden-note--forbidden .ff-hidden-note__title em,
body .ff-hidden-note--forbidden .ff-hidden-note__title i {
  color: #ff4d5d !important;
  /* HARD OVERRIDE: First Fracture hidden note titles */

html body .entry-content .ff-hidden-note > .ff-hidden-note__title,
html body .entry-content .ff-hidden-note > .ff-hidden-note__title *,
html body .ff-hidden-note > .ff-hidden-note__title,
html body .ff-hidden-note > .ff-hidden-note__title * {
  color: #d6b46a !important;
  -webkit-text-fill-color: #d6b46a !important;
  font-family: Cinzel, Georgia, serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: block !important;
}

/* Ascendant / forbidden title color */
html body .entry-content .ff-hidden-note--forbidden > .ff-hidden-note__title,
html body .entry-content .ff-hidden-note--forbidden > .ff-hidden-note__title *,
html body .ff-hidden-note--forbidden > .ff-hidden-note__title,
html body .ff-hidden-note--forbidden > .ff-hidden-note__title * {
  color: #ff4d5d !important;
  -webkit-text-fill-color: #ff4d5d !important;
}
}