/* ═══════════════════════════════════════════
   Witchcraft Guide Subpages — Shared Styles
   Used by: spells, herbs, crystals, elements,
            meditations, energy healing
   ═══════════════════════════════════════════ */

:root {
  --wc-crimson: #c0392b;
  --wc-ember: #e74c3c;
  --wc-emerald: #27ae60;
  --wc-gold: #d4a843;
  --wc-purple: #9F7BED;
  --wc-teal: #1abc9c;
}

/* ── Page Hero ── */
.wc-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, rgba(192,57,43,0.06) 0%, transparent 70%);
}
.wc-hero__inner {
  max-width: 680px;
  position: relative;
  z-index: 2;
}
.wc-hero__eyebrow {
  font-size: .55rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--wc-crimson);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.wc-hero__eyebrow::before,
.wc-hero__eyebrow::after {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wc-crimson), transparent);
}
.wc-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .12em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #f5e6d0 0%, var(--wc-gold) 40%, #a06b1f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 15px rgba(212,168,67,0.12));
}
.wc-hero__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: .95rem;
  color: var(--color-text-dim);
  line-height: 1.9;
  max-width: 550px;
  margin: 0 auto;
}

/* ── Section Headers ── */
.wc-sh {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.wc-sh__label {
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--wc-crimson);
  margin-bottom: .6rem;
  display: block;
}
.wc-sh h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: rgba(228,219,200,.9);
  margin-bottom: .6rem;
}
.wc-sh p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: .85rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

/* ── Divider ── */
.wc-div {
  width: 80px;
  height: 1px;
  margin: var(--space-xl) auto;
  background: linear-gradient(90deg, transparent, rgba(192,57,43,0.15), transparent);
}

/* ── Content Prose ── */
.wc-prose {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 1rem;
}
.wc-prose p {
  font-size: .92rem;
  color: var(--color-text-dim);
  line-height: 2.1;
  margin-bottom: 1.2rem;
}
.wc-prose strong {
  color: var(--wc-gold);
}
.wc-prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: rgba(228,219,200,0.9);
  margin: 2rem 0 1rem;
}

/* ── Glass Cards (Magical Frame Upgrade) ── */
.wc-card {
  padding: 2rem;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(20,15,35,0.8), rgba(10,8,20,0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.5);
  transition: all .5s cubic-bezier(0.25, 1, 0.25, 1);
  display: flex !important;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Base Corner Ornaments for wc-card */
.wc-card::before, .wc-card::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid;
  border-color: rgba(255, 255, 255, 0.15);
  z-index: 5;
  transition: all 0.5s ease;
  pointer-events: none;
}
.wc-card::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.wc-card::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.wc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.05);
}
.wc-card:hover::before { top: 0px; left: 0px; width: 35px; height: 35px; border-color: currentColor; filter: drop-shadow(0 0 5px currentColor); }
.wc-card:hover::after { bottom: 0px; right: 0px; width: 35px; height: 35px; border-color: currentColor; filter: drop-shadow(0 0 5px currentColor); }

.wc-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 0 15px currentColor;
}
.wc-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.wc-card__text {
  font-size: .88rem;
  color: var(--color-text-dim);
  line-height: 1.9;
  flex-grow: 1; /* Forces alignment */
}


/* ── Grid Layouts ── */
.wc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  align-items: stretch; /* Aligns heights */
}
.wc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto var(--space-xl);
  align-items: stretch; /* Aligns heights */
}

/* ── Technique / Teaching Block ── */
.wc-technique {
  padding: 2.5rem;
  border-radius: 4px;
  background: rgba(15,12,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wc-technique::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.3;
}
.wc-technique__label {
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}
.wc-technique__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: .06em;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.wc-technique__body {
  font-size: .92rem;
  color: var(--color-text-dim);
  line-height: 2.1;
  flex-grow: 1;
}
.wc-technique__body ol,
.wc-technique__body ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.wc-technique__body li {
  margin-bottom: .6rem;
}

/* ── Steps List ── */
.wc-steps {
  counter-reset: wc-step;
  list-style: none;
  padding: 0;
  max-width: 650px;
  margin: 0 auto var(--space-xl);
}
.wc-steps li {
  counter-increment: wc-step;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border-left: 1px solid rgba(192,57,43,0.08);
  margin-bottom: .5rem;
  position: relative;
  font-size: .88rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}
.wc-steps li::before {
  content: counter(wc-step);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .6rem;
  color: var(--wc-crimson);
  letter-spacing: .05em;
}
.wc-steps li strong {
  color: var(--wc-gold);
}

/* ═══ LOCKED / PREMIUM CONTENT ═══ */
.wc-locked {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: var(--space-lg) 0;
}
.wc-locked__preview {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
  padding: 2rem;
  background: rgba(15,12,30,0.4);
  border: 1px solid rgba(212,168,67,0.04);
  border-radius: 16px;
}
.wc-locked__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(10,8,20,0.6);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  text-align: center;
  padding: 2rem;
}
.wc-locked__icon {
  font-size: 2rem;
  margin-bottom: .8rem;
  opacity: 0.8;
}
.wc-locked__title {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--wc-gold);
  margin-bottom: .5rem;
}
.wc-locked__text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: .8rem;
  color: var(--color-text-dim);
  margin-bottom: 1.2rem;
  max-width: 350px;
}
.wc-locked__btn {
  display: inline-block;
  padding: .7rem 2rem;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wc-gold);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 4px;
  transition: all .3s;
}
.wc-locked__btn:hover {
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 0 20px rgba(212,168,67,0.08);
}

/* ── Herb / Item Grid ── */
.wc-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto var(--space-xl);
}
.wc-item-card {
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15,12,30,0.4);
  border: 1px solid rgba(212,168,67,0.04);
  transition: all .4s;
}
.wc-item-card:hover {
  border-color: rgba(212,168,67,0.12);
  transform: translateY(-2px);
}
.wc-item-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212,168,67,0.1);
  margin-bottom: .5rem;
}
.wc-item-card__name {
  font-family: var(--font-display);
  font-size: .65rem;
  letter-spacing: .06em;
  color: var(--wc-gold);
}
.wc-item-card__prop {
  font-size: .6rem;
  color: var(--color-text-muted);
  margin-top: .2rem;
}

/* ── Quiz / Interactive Element ── */
.wc-quiz {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.wc-quiz__options {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1rem;
}
.wc-quiz__opt {
  padding: .7rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(212,168,67,0.1);
  background: rgba(15,12,30,0.4);
  color: var(--color-text-dim);
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .3s;
}
.wc-quiz__opt:hover {
  border-color: rgba(212,168,67,0.3);
  background: rgba(212,168,67,0.06);
  color: var(--wc-gold);
}
.wc-quiz__opt.active {
  border-color: var(--wc-gold);
  background: rgba(212,168,67,0.1);
  color: var(--wc-gold);
}

/* ── Back nav ── */
.wc-back {
  text-align: center;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}
.wc-back a {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .3s;
}
.wc-back a:hover {
  color: var(--wc-gold);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wc-hero { padding: 5rem 1.5rem 3rem; min-height: 40vh; }
  .wc-grid-2, .wc-grid-3 { grid-template-columns: 1fr; }
  .wc-item-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .wc-technique { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .wc-hero__title { font-size: 1.6rem; }
  .wc-item-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-item-card img { width: 60px; height: 60px; }
}
