/*
 * File: wp-content/mu-plugins/veil-core/modules/first-fracture/assets/first-fracture.css
 * Module: The First Fracture
 * Purpose: Tier cards, locked content blocks, Ascendant downloads, and Veil-themed progression UI.
 */

:root {
  --ff-bg: #07070b;
  --ff-panel: rgba(12, 13, 20, 0.92);
  --ff-panel-soft: rgba(18, 20, 31, 0.82);
  --ff-text: #f4efe8;
  --ff-muted: #c9bdad;
  --ff-line: rgba(255, 255, 255, 0.12);
  --ff-initiate: #8fc7ff;
  --ff-acolyte: #b9354a;
  --ff-ascendant: #ff2f3f;
  --ff-gold: #d6b46a;
  --ff-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ff-tier-grid,
.ff-downloads,
.ff-locked {
  box-sizing: border-box;
}

.ff-tier-grid *,
.ff-downloads *,
.ff-locked * {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Tier Cards
--------------------------------------------------------- */

.ff-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2rem, 5vw, 4rem) 0;
}

.ff-tier-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--ff-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(12, 13, 20, 0.96), rgba(3, 3, 7, 0.96));
  color: var(--ff-text);
  box-shadow: var(--ff-shadow);
  isolation: isolate;
  transform: translateY(0);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.ff-tier-card::before,
.ff-tier-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.ff-tier-card::before {
  inset: -2px;
  opacity: 0.45;
  background:
    radial-gradient(circle at 50% 0%, var(--ff-card-glow, rgba(143, 199, 255, 0.32)), transparent 38%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035));
}

.ff-tier-card::after {
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--ff-card-orb, rgba(143, 199, 255, 0.16));
  filter: blur(18px);
}

.ff-tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--ff-card-border, rgba(143, 199, 255, 0.55));
  box-shadow:
    var(--ff-shadow),
    0 0 42px var(--ff-card-shadow, rgba(143, 199, 255, 0.18));
}

.ff-tier-card--initiate {
  --ff-card-glow: rgba(143, 199, 255, 0.38);
  --ff-card-orb: rgba(143, 199, 255, 0.20);
  --ff-card-border: rgba(143, 199, 255, 0.62);
  --ff-card-shadow: rgba(143, 199, 255, 0.22);
}

.ff-tier-card--acolyte {
  --ff-card-glow: rgba(185, 53, 74, 0.42);
  --ff-card-orb: rgba(185, 53, 74, 0.22);
  --ff-card-border: rgba(185, 53, 74, 0.7);
  --ff-card-shadow: rgba(185, 53, 74, 0.25);
}

.ff-tier-card--ascendant {
  --ff-card-glow: rgba(255, 47, 63, 0.48);
  --ff-card-orb: rgba(255, 47, 63, 0.25);
  --ff-card-border: rgba(255, 47, 63, 0.78);
  --ff-card-shadow: rgba(255, 47, 63, 0.32);
}

.ff-tier-card__label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ff-gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ff-tier-card h3 {
  margin: 0 0 0.8rem;
  color: var(--ff-text);
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.ff-tier-card p {
  margin: 0 0 1.5rem;
  color: var(--ff-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.ff-btn,
.ff-download-card {
  text-decoration: none !important;
}

.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ff-text) !important;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.ff-btn:hover,
.ff-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.ff-btn--initiate:hover,
.ff-btn--initiate:focus-visible {
  border-color: rgba(143, 199, 255, 0.72);
  box-shadow: 0 0 24px rgba(143, 199, 255, 0.28);
}

.ff-btn--acolyte:hover,
.ff-btn--acolyte:focus-visible {
  border-color: rgba(185, 53, 74, 0.78);
  box-shadow: 0 0 24px rgba(185, 53, 74, 0.32);
}

.ff-btn--ascendant:hover,
.ff-btn--ascendant:focus-visible {
  border-color: rgba(255, 47, 63, 0.82);
  box-shadow: 0 0 28px rgba(255, 47, 63, 0.36);
}

/* ---------------------------------------------------------
   Locked Content Blocks
--------------------------------------------------------- */

.ff-locked {
  position: relative;
  overflow: hidden;
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.07), transparent 35%),
    linear-gradient(145deg, rgba(12, 13, 20, 0.95), rgba(2, 2, 6, 0.98));
  color: var(--ff-text);
  box-shadow: var(--ff-shadow);
  isolation: isolate;
}

.ff-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px,
      transparent 14px
    );
  opacity: 0.35;
}

.ff-locked__mist {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 20%, var(--ff-lock-glow, rgba(143, 199, 255, 0.22)), transparent 28%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.06), transparent 30%);
  filter: blur(22px);
  opacity: 0.8;
}

.ff-locked--initiate {
  --ff-lock-glow: rgba(143, 199, 255, 0.25);
  border-color: rgba(143, 199, 255, 0.32);
}

.ff-locked--acolyte {
  --ff-lock-glow: rgba(185, 53, 74, 0.30);
  border-color: rgba(185, 53, 74, 0.38);
}

.ff-locked--ascendant {
  --ff-lock-glow: rgba(255, 47, 63, 0.36);
  border-color: rgba(255, 47, 63, 0.42);
}

.ff-locked__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ff-locked__eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(214, 180, 106, 0.36);
  border-radius: 999px;
  color: var(--ff-gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ff-locked h3 {
  margin: 0 0 0.85rem;
  color: var(--ff-text);
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.ff-locked p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--ff-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Downloads
--------------------------------------------------------- */

.ff-downloads {
  position: relative;
  overflow: hidden;
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 47, 63, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 47, 63, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(12, 13, 20, 0.96), rgba(3, 3, 7, 0.98));
  color: var(--ff-text);
  box-shadow: var(--ff-shadow);
}

.ff-downloads h3 {
  margin: 0 0 0.75rem;
  color: var(--ff-text);
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.ff-downloads p {
  margin: 0 0 1.5rem;
  color: var(--ff-muted);
  line-height: 1.65;
}

.ff-downloads__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ff-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 90px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ff-text) !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.ff-download-card:hover,
.ff-download-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 47, 63, 0.62);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(255, 47, 63, 0.22);
  outline: none;
}

.ff-download-card span {
  color: var(--ff-muted);
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ff-download-card strong {
  color: var(--ff-gold);
}

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

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

  .ff-tier-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .ff-locked,
  .ff-downloads,
  .ff-tier-card {
    border-radius: 20px;
  }

  .ff-downloads__grid {
    grid-template-columns: 1fr;
  }

  .ff-download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------------------------------------------------------
   Reduced Motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ff-tier-card,
  .ff-btn,
  .ff-download-card {
    transition: none;
  }

  .ff-tier-card:hover,
  .ff-btn:hover,
  .ff-download-card:hover {
    transform: none;
  }
}
/* ---------------------------------------------------------
   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;
}