/* ============================================================
   THE CRUCIBLE — Ghost Theme
   screen.css
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --flame-red:    #c0392b;
  --ember-orange: #e67e22;
  --hot-gold:     #f39c12;
  --forge-dark:   #0a0a0a;
  --ash-dark:     #111111;
  --coal:         #1a1a1a;
  --smoke:        #222222;
  --iron:         #333333;
  --silver:       #aaaaaa;
  --white:        #f0ece4;
  --font-display: 'Cinzel Decorative', serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;
  /* Ghost custom font hooks */
  --gh-font-heading: 'Cinzel', serif;
  --gh-font-body:    'Raleway', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--forge-dark);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.tc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
  border-bottom: 1px solid rgba(192,57,43,0.15);
  transition: background 0.3s;
}

.tc-nav.is-scrolled {
  background: rgba(10,10,10,0.98);
}

.tc-nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
}
.tc-nav-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--ember-orange);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.tc-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.tc-nav-links a {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s;
}
.tc-nav-links a:hover,
.tc-nav-links a.tc-nav-current { color: var(--hot-gold); }

.tc-nav-cta {
  background: linear-gradient(135deg, var(--flame-red), var(--ember-orange));
  color: var(--white) !important;
  padding: 9px 24px !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  transition: opacity 0.2s !important;
}
.tc-nav-cta:hover { opacity: 0.85; }

.tc-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  color: var(--white);
}
.tc-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.tc-nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tc-nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.tc-nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.tc-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}

.tc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(192,57,43,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(230,126,34,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 50%, rgba(10,10,10,0) 0%, #0a0a0a 100%);
  background-color: #0a0a0a;
}

/* Ember particles */
.embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ember {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember-orange);
  box-shadow: 0 0 6px 2px rgba(230,126,34,0.6);
  animation: rise linear infinite;
  opacity: 0;
}
.ember:nth-child(1)  { left: 10%; animation-duration: 6s;   animation-delay: 0s;    width: 2px; height: 2px; }
.ember:nth-child(2)  { left: 20%; animation-duration: 8s;   animation-delay: 1.5s;  background: var(--flame-red); }
.ember:nth-child(3)  { left: 35%; animation-duration: 5s;   animation-delay: 3s;    width: 4px; height: 4px; background: var(--hot-gold); }
.ember:nth-child(4)  { left: 50%; animation-duration: 7s;   animation-delay: 0.8s; }
.ember:nth-child(5)  { left: 62%; animation-duration: 9s;   animation-delay: 2.2s;  width: 2px; height: 2px; }
.ember:nth-child(6)  { left: 75%; animation-duration: 6.5s; animation-delay: 4s;    background: var(--hot-gold); }
.ember:nth-child(7)  { left: 88%; animation-duration: 7.5s; animation-delay: 1s;    width: 4px; height: 4px; }
.ember:nth-child(8)  { left: 45%; animation-duration: 5.5s; animation-delay: 5s;    background: var(--flame-red); }
.ember:nth-child(9)  { left: 28%; animation-duration: 8.5s; animation-delay: 2.8s;  width: 2px; height: 2px; }
.ember:nth-child(10) { left: 70%; animation-duration: 6.2s; animation-delay: 3.5s;  background: var(--hot-gold); }
.ember:nth-child(11) { left: 55%; animation-duration: 7.2s; animation-delay: 0.3s;  width: 3px; height: 3px; }
.ember:nth-child(12) { left: 82%; animation-duration: 5.8s; animation-delay: 4.7s;  background: var(--ember-orange); }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0);        opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-90vh) translateX(40px); opacity: 0; }
}

.tc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.tc-hero-eyebrow {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--ember-orange);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.tc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow:
    0 0 80px rgba(192,57,43,0.5),
    0 2px 40px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.tc-hero-title .fire-word {
  background: linear-gradient(135deg, #fff 20%, var(--hot-gold) 60%, var(--flame-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.4em;
  color: var(--silver);
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.tc-hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240,236,228,0.7);
  max-width: 580px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.tc-hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

/* Scroll indicator */
.tc-divider {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.tc-divider span {
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--flame-red);
  text-transform: uppercase;
}
.tc-divider-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--flame-red), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* Tag/error hero variants */
.tc-tag-hero,
.tc-error-hero {
  min-height: 50vh;
  padding-top: 120px;
}
.tc-tag-hero-content,
.tc-tag-hero { text-align: center; }
.tc-tag-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 80px rgba(192,57,43,0.5), 0 2px 40px rgba(0,0,0,0.8);
  margin-bottom: 12px;
}
.tc-tag-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(240,236,228,0.7);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.7;
}
.tc-tag-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--silver);
}
.tc-tag-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid rgba(192,57,43,0.4);
}
.tc-tag-icon-img img { width: 100%; height: 100%; object-fit: cover; }

.tc-tag-archive { background: var(--ash-dark); border-top: 1px solid var(--iron); }


/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.tc-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--flame-red) 0%, var(--ember-orange) 100%);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(192,57,43,0.4);
  border: none;
  cursor: pointer;
}
.tc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(192,57,43,0.6);
  color: var(--white);
}
.tc-btn-primary.tc-btn-block {
  display: block;
  text-align: center;
}

.tc-btn-secondary {
  display: inline-block;
  border: 1px solid rgba(192,57,43,0.5);
  color: var(--silver);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s;
  cursor: pointer;
  background: none;
}
.tc-btn-secondary:hover {
  border-color: var(--ember-orange);
  color: var(--white);
  background: rgba(192,57,43,0.1);
}


/* ══════════════════════════════════════════
   MEMBERSHIP BANNER (notice)
══════════════════════════════════════════ */
.tc-membership-banner {
  background: linear-gradient(135deg, var(--coal) 0%, #1a0a05 50%, var(--coal) 100%);
  border-top: 1px solid rgba(192,57,43,0.3);
  border-bottom: 1px solid rgba(192,57,43,0.3);
  padding: 28px 48px;
  text-align: center;
}
.tc-banner-notice {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--ember-orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tc-banner-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(240,236,228,0.6);
  font-style: italic;
}
.tc-banner-text strong { color: var(--white); font-style: normal; }


/* ══════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════ */
.tc-section {
  padding: 90px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.tc-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--iron);
  padding-bottom: 20px;
}

.tc-section-label {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  color: var(--flame-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tc-section-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.tc-section-link {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--ember-orange);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(230,126,34,0.3);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.tc-section-link:hover { border-color: var(--ember-orange); }

.tc-cat-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--ember-orange);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(230,126,34,0.3);
}


/* ══════════════════════════════════════════
   FEATURED EPISODE
══════════════════════════════════════════ */
.tc-featured-wrapper {
  background: var(--forge-dark);
}

.tc-featured {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.tc-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--smoke);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--iron);
  display: block;
  text-decoration: none;
}
.tc-video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.08), transparent 60%);
  z-index: 1;
}
.tc-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.tc-video-thumb:hover img { transform: scale(1.03); }
.tc-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--smoke);
}

.tc-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.tc-video-thumb:hover .tc-play-btn { background: rgba(0,0,0,0.15); }

.tc-play-circle {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  background: rgba(192,57,43,0.25);
}
.tc-video-thumb:hover .tc-play-circle {
  background: rgba(192,57,43,0.6);
  border-color: white;
  transform: scale(1.08);
}
.tc-play-circle svg { width: 26px; height: 26px; fill: white; margin-left: 4px; }

.tc-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, var(--flame-red), var(--ember-orange));
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: white;
  padding: 5px 12px;
  text-transform: uppercase;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.tc-featured-meta { padding: 4px 0; }

.tc-featured-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.tc-featured-excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver);
  margin-bottom: 28px;
}

.tc-meta-row {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tc-meta-item {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(170,170,170,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tc-meta-item svg { width: 12px; height: 12px; fill: var(--flame-red); flex-shrink: 0; }
.tc-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.tc-lock-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-left: 3px solid var(--flame-red);
  padding: 16px 18px;
  margin-top: 12px;
}
.tc-lock-notice svg { width: 18px; height: 18px; fill: var(--flame-red); flex-shrink: 0; margin-top: 1px; }
.tc-lock-notice p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240,236,228,0.65);
}
.tc-lock-notice a { color: var(--ember-orange); font-weight: 600; }


/* ══════════════════════════════════════════
   POST GRID
══════════════════════════════════════════ */
.tc-recent-wrapper {
  background: var(--ash-dark);
  border-top: 1px solid var(--iron);
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tc-grid-related { margin-top: 0; }


/* ── POST CARD ── */
.tc-card {
  background: var(--coal);
  border: 1px solid var(--iron);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.tc-card:hover {
  border-color: rgba(192,57,43,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(192,57,43,0.1);
}
.tc-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tc-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--smoke);
  overflow: hidden;
}
.tc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.tc-card:hover .tc-card-thumb img { transform: scale(1.05); }
.tc-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--smoke), var(--coal));
}

.tc-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.tc-card:hover .tc-card-play { opacity: 1; }
.tc-card-play-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,57,43,0.5);
}
.tc-card-play-icon svg { width: 16px; height: 16px; fill: white; margin-left: 3px; }

.tc-card-locked {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(192,57,43,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.tc-card-locked svg { width: 14px; height: 14px; fill: var(--ember-orange); }

.tc-card-duration {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: white;
  background: rgba(0,0,0,0.8);
  padding: 2px 7px;
  font-weight: 500;
}

.tc-card-body { padding: 18px 18px 20px; }

.tc-card-cat {
  font-family: var(--font-title);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  color: var(--ember-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tc-card-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.tc-card-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(170,170,170,0.55);
  letter-spacing: 0.05em;
}


/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 52px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.pagination .older-posts,
.pagination .newer-posts {
  color: var(--ember-orange);
  border-bottom: 1px solid rgba(230,126,34,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.pagination .older-posts:hover,
.pagination .newer-posts:hover { border-color: var(--ember-orange); }
.pagination .page-number { color: var(--silver); }


/* ══════════════════════════════════════════
   CATEGORIES SECTION
══════════════════════════════════════════ */
.tc-categories-section {
  background: var(--ash-dark);
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  padding: 80px 48px;
}
.tc-categories-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.tc-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.tc-cat-card {
  background: var(--coal);
  border: 1px solid var(--iron);
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.tc-cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flame-red), var(--ember-orange));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.tc-cat-card:hover::before { transform: scaleX(1); }
.tc-cat-card:hover {
  border-color: rgba(192,57,43,0.3);
  background: var(--smoke);
  transform: translateY(-3px);
}
.tc-cat-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.tc-cat-name {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 600;
}
.tc-cat-count {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(170,170,170,0.55);
}


/* ══════════════════════════════════════════
   MEMBERSHIP / PRICING
══════════════════════════════════════════ */
.tc-membership-wrapper {
  background: var(--forge-dark);
}
.tc-membership-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tc-membership-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(192,57,43,0.3);
}
.tc-membership-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--silver);
  max-width: 520px;
  margin: 0 auto 64px;
  line-height: 1.7;
}
.tc-pricing-card {
  background: var(--coal);
  border: 1px solid var(--iron);
  padding: 52px 48px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.tc-pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flame-red), var(--ember-orange), var(--hot-gold));
}
.tc-pricing-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.08), transparent 70%);
  pointer-events: none;
}
.tc-price-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: var(--ember-orange);
  text-transform: uppercase;
  border: 1px solid rgba(230,126,34,0.3);
  padding: 5px 16px;
  margin-bottom: 28px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.tc-price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
}
.tc-price-amount sup { font-size: 1.5rem; vertical-align: super; color: var(--ember-orange); }
.tc-price-per { font-size: 1.2rem !important; color: var(--silver) !important; }
.tc-price-period {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 36px;
  font-weight: 300;
}
.tc-features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}
.tc-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240,236,228,0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(51,51,51,0.6);
}
.tc-features-list li:last-child { border-bottom: none; }
.tc-check { width: 18px; height: 18px; fill: var(--flame-red); flex-shrink: 0; margin-top: 2px; }


/* ══════════════════════════════════════════
   POST / PAGE TEMPLATES
══════════════════════════════════════════ */
.tc-post-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}
.tc-post-hero-bg {
  position: absolute;
  inset: 0;
}
.tc-post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.98) 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(10,10,10,0.2) 100%
  );
}
.tc-post-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 48px 52px;
  max-width: 900px;
}
.tc-post-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.tc-post-excerpt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240,236,228,0.8);
  max-width: 600px;
  margin-bottom: 24px;
}

/* Post body */
.tc-post-wrapper {
  background: var(--forge-dark);
  padding: 60px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.tc-post-content {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(240,236,228,0.85);
}

/* Ghost content styles */
.gh-content h1, .gh-content h2, .gh-content h3,
.gh-content h4, .gh-content h5, .gh-content h6 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 2em 0 0.75em;
  line-height: 1.2;
}
.gh-content h2 { font-size: 1.5rem; }
.gh-content h3 { font-size: 1.2rem; }
.gh-content p { margin-bottom: 1.5em; }
.gh-content a { color: var(--ember-orange); text-decoration: underline; }
.gh-content a:hover { color: var(--hot-gold); }
.gh-content blockquote {
  border-left: 3px solid var(--flame-red);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--silver);
}
.gh-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border: 1px solid var(--iron);
}
.gh-content figcaption {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--silver);
  text-align: center;
  margin-top: -1.5em;
  margin-bottom: 2em;
}
.gh-content ul, .gh-content ol {
  margin: 0 0 1.5em 1.5em;
}
.gh-content li { margin-bottom: 0.5em; }
.gh-content hr {
  border: none;
  border-top: 1px solid var(--iron);
  margin: 3em 0;
}
.gh-content pre {
  background: var(--coal);
  border: 1px solid var(--iron);
  padding: 20px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.875rem;
}
.gh-content code {
  background: var(--coal);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--ember-orange);
}
.gh-content pre code {
  background: none;
  padding: 0;
  color: var(--white);
}

/* Iframe/video embeds */
.gh-content iframe,
.gh-content .kg-embed-card {
  max-width: 100%;
  border: 1px solid var(--iron);
}
.gh-content .kg-video-card,
.gh-content .kg-embed-card {
  margin: 2em 0;
}

/* Koenig editor card widths (required by Ghost) */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 2em calc(50% - 42.5vw);
  transform: translateX(calc(50% - 50vw + 42.5vw));
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  border: none;
}

/* Card assets */
.kg-bookmark-card { border: 1px solid var(--iron); margin: 2em 0; }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--white); }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-title); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.kg-bookmark-description { font-size: 0.8rem; color: var(--silver); line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.72rem; color: rgba(170,170,170,0.6); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; margin: 0; border: none; }
.kg-gallery-container { display: flex; flex-direction: column; margin: 2em 0; }
.kg-gallery-row { display: flex; gap: 4px; margin-bottom: 4px; }
.kg-gallery-image img { margin: 0; border: none; width: 100%; height: 100%; object-fit: cover; }

/* Paywall */
.tc-paywall {
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.25);
  border-left: 3px solid var(--flame-red);
  margin: 0 0 40px;
  padding: 48px;
  text-align: center;
}
.tc-paywall-lock {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-paywall-lock svg { width: 28px; height: 28px; fill: var(--flame-red); }
.tc-paywall-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}
.tc-paywall-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240,236,228,0.65);
  max-width: 480px;
  margin: 0 auto 32px;
}
.tc-paywall-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tags */
.tc-post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--iron);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.tc-post-tags-label {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}
.tc-tag-pill {
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember-orange);
  border: 1px solid rgba(230,126,34,0.3);
  padding: 5px 12px;
  transition: all 0.2s;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.tc-tag-pill:hover {
  background: rgba(230,126,34,0.1);
  border-color: var(--ember-orange);
  color: var(--white);
}

/* Author bio */
.tc-author-bio {
  background: var(--ash-dark);
  border-top: 1px solid var(--iron);
  padding: 48px;
}
.tc-author-bio-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.tc-author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192,57,43,0.4);
  flex-shrink: 0;
}
.tc-author-bio-name {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 600;
}
.tc-author-bio-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(170,170,170,0.75);
}

/* Related posts */
.tc-related-section {
  background: var(--ash-dark);
  border-top: 1px solid var(--iron);
  padding: 60px 48px;
}


/* ══════════════════════════════════════════
   PAGE TEMPLATE
══════════════════════════════════════════ */
.tc-page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
}
.tc-page-hero-bg {
  position: absolute;
  inset: 0;
}
.tc-page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.tc-page-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 48px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.tc-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 80px rgba(192,57,43,0.4);
  margin-bottom: 12px;
}
.tc-page-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(240,236,228,0.7);
  max-width: 560px;
  line-height: 1.7;
}
.tc-page-wrapper {
  padding: 60px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.tc-page-content { color: rgba(240,236,228,0.85); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.tc-footer {
  background: var(--ash-dark);
  border-top: 1px solid var(--iron);
  padding: 60px 48px 36px;
}
.tc-footer-inner { max-width: 1400px; margin: 0 auto; }
.tc-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.tc-footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 6px;
}
.tc-footer-brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--ember-orange);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tc-footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(170,170,170,0.65);
}
.tc-footer-col-title {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--flame-red);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.tc-footer-links li { margin-bottom: 10px; }
.tc-footer-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(170,170,170,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.tc-footer-links a:hover { color: var(--white); }
.tc-footer-divider { height: 1px; background: var(--iron); margin-bottom: 28px; }
.tc-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tc-footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(170,170,170,0.4);
}
.tc-footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(170,170,170,0.35);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
  font-style: italic;
}


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tc-featured { grid-template-columns: 1fr; }
  .tc-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tc-nav { padding: 16px 24px; }
  .tc-nav-links { display: none; }
  .tc-nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .tc-nav-links.is-open a {
    font-size: 1rem;
    letter-spacing: 0.25em;
  }
  .tc-nav-hamburger { display: flex; z-index: 1001; }

  .tc-section { padding: 60px 24px; }
  .tc-categories-section { padding: 60px 24px; }
  .tc-membership-section { padding: 70px 24px; }
  .tc-footer { padding: 48px 24px 28px; }
  .tc-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .tc-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .tc-footer-disclaimer { text-align: center; }
  .tc-membership-banner { padding: 20px 24px; }

  .tc-post-hero-content { padding: 100px 24px 40px; }
  .tc-post-wrapper { padding: 40px 24px; }
  .tc-pricing-card { padding: 36px 24px; }
  .tc-author-bio { padding: 36px 24px; }
  .tc-related-section { padding: 48px 24px; }
  .tc-paywall { padding: 36px 24px; }
  .tc-page-hero-content { padding: 80px 24px 32px; }
  .tc-page-wrapper { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .tc-grid {
    grid-template-columns: 1fr;
  }
  .tc-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .tc-btn-primary,
  .tc-btn-secondary {
    width: 100%;
    text-align: center;
  }
  .tc-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* ══════════════════════════════════════════
   GHOST PORTAL BUTTON OVERRIDE
══════════════════════════════════════════ */
.gh-portal-triggerbtn {
  display: none !important;
}

/* Prevent body jump when portal opens */
body.gh-portal-open {
  overflow: hidden;
}
