/**
 * character_v20260425.css — Pixar Cars Character Page Styles
 * PixarCarsGarage.com — 2026-04-25
 *
 * Aesthetic: Editorial magazine. Restrained typography. Character color as
 *            singular accent, not wallpaper. Generous whitespace.
 *
 * Used by: /sally-carrera, /mater, /fillmore, /sarge, /doc-hudson
 *
 * Theme: per-character CSS variables are injected inline by character.php
 *        (--pcg-char-color, --pcg-char-color-dark, --pcg-char-color-light)
 */

/* ═══════════════════════════════════════════════════════════════════
   FONTS — Editorial pairing
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   ROOT TOKENS
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Type system */
    --pcg-char-font-display: 'Fraunces', Georgia, serif;
    --pcg-char-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Neutral palette — warm greys, not cold AI greys */
    --pcg-char-ink: #1a1814;
    --pcg-char-ink-soft: #4a443c;
    --pcg-char-ink-muted: #8a8278;
    --pcg-char-paper: #fdfcfa;
    --pcg-char-paper-warm: #f7f4ee;
    --pcg-char-line: #e8e3d8;

    /* Spatial system */
    --pcg-char-radius: 4px;
    --pcg-char-radius-lg: 12px;
    --pcg-char-shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.04);
    --pcg-char-shadow-md: 0 4px 16px rgba(26, 24, 20, 0.06);
    --pcg-char-shadow-lg: 0 12px 40px rgba(26, 24, 20, 0.12);

    /* Motion */
    --pcg-char-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET + BASE
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-body {
    margin: 0;
    padding: 0;
    background: var(--pcg-char-paper);
    color: var(--pcg-char-ink);
    font-family: var(--pcg-char-font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.pcg-char-body * {
    box-sizing: border-box;
}

.pcg-char-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pcg-char-body a {
    color: var(--pcg-char-color-dark);
    text-decoration: none;
    transition: color 0.2s var(--pcg-char-ease);
}

.pcg-char-body a:hover {
    color: var(--pcg-char-color);
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 0;
    font-size: 13px;
    color: var(--pcg-char-ink-muted);
    letter-spacing: 0.02em;
}

.pcg-char-breadcrumb a {
    color: var(--pcg-char-ink-muted);
    text-decoration: none;
}

.pcg-char-breadcrumb a:hover {
    color: var(--pcg-char-ink);
}

.pcg-char-breadcrumb-sep {
    margin: 0 8px;
    color: var(--pcg-char-line);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO — Character image on color field, asymmetric layout
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 64px;
    position: relative;
}

.pcg-char-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.pcg-char-hero-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--pcg-char-color);
    background: linear-gradient(135deg,
        var(--pcg-char-color) 0%,
        var(--pcg-char-color-light) 100%);
    border-radius: var(--pcg-char-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-shadow: var(--pcg-char-shadow-md);
}

/* Subtle texture overlay — adds depth without screaming */
.pcg-char-hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.pcg-char-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

.pcg-char-hero-text {
    padding: 16px 0;
}

.pcg-char-hero h1 {
    font-family: var(--pcg-char-font-display);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--pcg-char-ink);
    font-variation-settings: "opsz" 96;
}

/* Character color underline accent on H1 */
.pcg-char-hero h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--pcg-char-color);
    margin-top: 16px;
}

.pcg-char-hero-subline {
    font-family: var(--pcg-char-font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--pcg-char-ink-soft);
    line-height: 1.5;
    margin: 24px 0 32px;
    max-width: 480px;
}

.pcg-char-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 32px 0 24px;
    padding: 24px 0;
    border-top: 1px solid var(--pcg-char-line);
    border-bottom: 1px solid var(--pcg-char-line);
}

.pcg-char-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pcg-char-stat-num {
    font-family: var(--pcg-char-font-display);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    color: var(--pcg-char-ink);
    letter-spacing: -0.02em;
}

.pcg-char-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pcg-char-ink-muted);
    font-weight: 500;
}

.pcg-char-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--pcg-char-line);
}

.pcg-char-hero-activity {
    font-size: 14px;
    color: var(--pcg-char-ink-muted);
    font-style: italic;
    margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-cta-btn,
a.pcg-char-cta-btn,
a.pcg-char-cta-btn:link,
a.pcg-char-cta-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--pcg-char-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s var(--pcg-char-ease);
    cursor: pointer;
    border: none;
}

.pcg-char-cta-primary,
a.pcg-char-cta-primary,
a.pcg-char-cta-primary:link,
a.pcg-char-cta-primary:visited {
    background: var(--pcg-char-color) !important;
    color: #ffffff !important;
    box-shadow: var(--pcg-char-shadow-sm);
}

.pcg-char-cta-primary:hover,
a.pcg-char-cta-primary:hover,
a.pcg-char-cta-primary:focus,
a.pcg-char-cta-primary:active {
    background: var(--pcg-char-color-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--pcg-char-shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-section-title {
    font-family: var(--pcg-char-font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--pcg-char-ink);
    margin: 0 0 24px;
    font-variation-settings: "opsz" 72;
}

.pcg-char-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--pcg-char-color);
    margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   SEO BODY CONTENT — Editorial reading experience
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 32px;
}

.pcg-char-seo-body p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--pcg-char-ink-soft);
    margin: 0 0 20px;
}

.pcg-char-seo-body p:first-child {
    font-size: 20px;
    color: var(--pcg-char-ink);
    line-height: 1.6;
}

.pcg-char-seo-body p:first-child::first-letter {
    font-family: var(--pcg-char-font-display);
    font-size: 64px;
    font-weight: 500;
    float: left;
    line-height: 0.9;
    margin: 6px 12px 0 0;
    color: var(--pcg-char-color);
    font-variation-settings: "opsz" 144;
}

.pcg-char-seo-body strong {
    color: var(--pcg-char-ink);
    font-weight: 600;
}

.pcg-char-seo-body em {
    font-style: italic;
    color: var(--pcg-char-ink);
}

.pcg-char-seo-body a,
.pcg-char-seo-link {
    color: var(--pcg-char-color-dark);
    border-bottom: 1px solid var(--pcg-char-color-light);
    text-decoration: none;
    transition: all 0.2s var(--pcg-char-ease);
}

.pcg-char-seo-body a:hover,
.pcg-char-seo-link:hover {
    color: var(--pcg-char-color);
    border-bottom-color: var(--pcg-char-color);
}

/* ═══════════════════════════════════════════════════════════════════
   GRID SECTION
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.pcg-char-grid-hint {
    font-size: 14px;
    color: var(--pcg-char-ink-muted);
    margin: -8px 0 32px;
    font-style: italic;
}

.pcg-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   VARIANT CARDS — Magazine-clean, not toy-store
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-card {
    background: #fff;
    border: 1px solid var(--pcg-char-line);
    border-radius: var(--pcg-char-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s var(--pcg-char-ease);
    display: flex;
    flex-direction: column;
}

.pcg-char-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pcg-char-shadow-md);
    border-color: var(--pcg-char-color-light);
}

.pcg-char-card-img-wrap {
    aspect-ratio: 1;
    background: var(--pcg-char-paper-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.pcg-char-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--pcg-char-ease);
}

.pcg-char-card:hover .pcg-char-card-img-wrap img {
    transform: scale(1.04);
}

.pcg-char-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pcg-char-card-name {
    font-family: var(--pcg-char-font-display);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--pcg-char-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.pcg-char-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0;
}

.pcg-char-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--pcg-char-paper-warm);
    color: var(--pcg-char-ink-soft);
}

.pcg-char-tag-year {
    color: var(--pcg-char-color-dark);
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--pcg-char-color-light);
}

.pcg-char-card-mattel {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 12px;
    color: var(--pcg-char-ink-muted);
    letter-spacing: 0.02em;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--pcg-char-line);
}

.pcg-char-card-reveal-hint {
    font-size: 12px;
    color: var(--pcg-char-color);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   FOMO FADE CARDS — Cards 9-16 progressively blur and fade
   Cards remain in the grid but become un-clickable visual ghosts.
   The visitor sees the volume but can't access it without registering.
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-card-fade {
    position: relative;
    pointer-events: none;
    user-select: none;
    cursor: default;
    transition: none;
}

.pcg-char-card-fade:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--pcg-char-line);
}

.pcg-char-card-fade .pcg-char-card-reveal-hint {
    visibility: hidden;
}

/* Per-position fade — 8 increments, each fades a bit more */
.pcg-char-card-fade[data-fade="1"]  { opacity: 0.85; filter: blur(1.5px); }
.pcg-char-card-fade[data-fade="2"]  { opacity: 0.72; filter: blur(2.5px); }
.pcg-char-card-fade[data-fade="3"]  { opacity: 0.60; filter: blur(3.5px); }
.pcg-char-card-fade[data-fade="4"]  { opacity: 0.48; filter: blur(4.5px); }
.pcg-char-card-fade[data-fade="5"]  { opacity: 0.36; filter: blur(5.5px); }
.pcg-char-card-fade[data-fade="6"]  { opacity: 0.24; filter: blur(6.5px); }
.pcg-char-card-fade[data-fade="7"]  { opacity: 0.14; filter: blur(7.5px); }
.pcg-char-card-fade[data-fade="8"]  { opacity: 0.06; filter: blur(8.5px); }

/* ═══════════════════════════════════════════════════════════════════
   FOMO CTA WALL — Hard conversion block after the fade
   Spans full grid width, dominant color, single CTA.
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-fomo-wall {
    grid-column: 1 / -1;
    background: linear-gradient(135deg,
        var(--pcg-char-color) 0%,
        var(--pcg-char-color-dark) 100%);
    padding: 56px 40px;
    border-radius: var(--pcg-char-radius-lg);
    text-align: center;
    color: #fff;
    margin: 16px 0 0;
    box-shadow: var(--pcg-char-shadow-lg);
    position: relative;
    overflow: hidden;
}

.pcg-char-fomo-wall::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pcg-char-fomo-wall-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.pcg-char-fomo-wall-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin: 0 0 12px;
}

.pcg-char-fomo-wall h2 {
    font-family: var(--pcg-char-font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 16px;
}

.pcg-char-fomo-wall-body {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 28px;
    opacity: 0.95;
}

.pcg-char-fomo-wall-body strong {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 2px;
}

.pcg-char-fomo-wall-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 44px;
    background: #fff;
    color: var(--pcg-char-color-dark);
    font-family: var(--pcg-char-font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s var(--pcg-char-ease);
    box-shadow: var(--pcg-char-shadow-md);
}

.pcg-char-fomo-wall-cta:hover {
    background: var(--pcg-char-ink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--pcg-char-shadow-lg);
}

.pcg-char-fomo-wall-fine {
    font-size: 13px;
    margin: 16px 0 0;
    opacity: 0.8;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   MID-GRID CTA — Spans full grid width
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-mid-cta {
    grid-column: 1 / -1;
    background: linear-gradient(135deg,
        var(--pcg-char-color-light) 0%,
        var(--pcg-char-color) 100%);
    padding: 40px 32px;
    border-radius: var(--pcg-char-radius-lg);
    text-align: center;
    color: #fff;
    margin: 8px 0;
}

.pcg-char-mid-cta p {
    font-family: var(--pcg-char-font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 24px;
    color: #fff;
}

.pcg-char-mid-cta .pcg-char-cta-btn {
    background: #fff;
    color: var(--pcg-char-color-dark);
}

.pcg-char-mid-cta .pcg-char-cta-btn:hover {
    background: var(--pcg-char-ink);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   FOMO GATE
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-fomo-gate {
    max-width: 1200px;
    margin: 32px auto 64px;
    padding: 0 32px;
    position: relative;
}

.pcg-char-fomo-blur-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: -120px;
    padding-bottom: 120px;
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.pcg-char-fomo-ghost {
    aspect-ratio: 1;
    background: var(--pcg-char-paper-warm);
    border-radius: var(--pcg-char-radius);
    overflow: hidden;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcg-char-fomo-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--pcg-char-line);
    border-radius: var(--pcg-char-radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--pcg-char-shadow-lg);
    max-width: 640px;
    margin: 0 auto;
}

.pcg-char-fomo-content h2 {
    font-family: var(--pcg-char-font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--pcg-char-ink);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}

.pcg-char-fomo-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pcg-char-ink-soft);
    margin: 0 0 24px;
}

.pcg-char-fomo-social {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--pcg-char-ink-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-faq {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px;
}

.pcg-char-faq-item {
    border-bottom: 1px solid var(--pcg-char-line);
    padding: 0;
}

.pcg-char-faq-item:first-of-type {
    border-top: 1px solid var(--pcg-char-line);
}

.pcg-char-faq-item summary {
    cursor: pointer;
    padding: 24px 32px 24px 0;
    font-family: var(--pcg-char-font-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--pcg-char-ink);
    list-style: none;
    position: relative;
    transition: color 0.2s var(--pcg-char-ease);
    line-height: 1.4;
}

.pcg-char-faq-item summary::-webkit-details-marker {
    display: none;
}

.pcg-char-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--pcg-char-color);
    transition: transform 0.2s var(--pcg-char-ease);
    line-height: 1;
}

.pcg-char-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.pcg-char-faq-item summary:hover {
    color: var(--pcg-char-color-dark);
}

.pcg-char-faq-answer {
    padding: 0 32px 24px 0;
}

.pcg-char-faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pcg-char-ink-soft);
}

/* ═══════════════════════════════════════════════════════════════════
   RELATED CHARACTERS — Internal linking section
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.pcg-char-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.pcg-char-related-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--pcg-char-line);
    border-radius: var(--pcg-char-radius);
    transition: all 0.2s var(--pcg-char-ease);
    text-decoration: none;
}

.pcg-char-related-card:hover {
    border-color: var(--pcg-char-color);
    transform: translateY(-2px);
    box-shadow: var(--pcg-char-shadow-sm);
}

.pcg-char-related-card strong {
    font-family: var(--pcg-char-font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--pcg-char-ink);
}

.pcg-char-related-card span {
    font-size: 13px;
    color: var(--pcg-char-ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 32px;
    border-top: 1px solid var(--pcg-char-line);
    text-align: center;
}

.pcg-char-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.pcg-char-footer-links a {
    color: var(--pcg-char-ink-soft);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.pcg-char-footer-links a:hover {
    color: var(--pcg-char-color);
}

.pcg-char-footer-copy {
    font-size: 13px;
    line-height: 1.6;
    color: var(--pcg-char-ink-muted);
    margin: 0;
}

.pcg-char-footer-copy strong {
    color: var(--pcg-char-ink-soft);
}

.pcg-char-footer-copy small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════════
   DRAWER — Right on desktop, bottom sheet on mobile
   ═══════════════════════════════════════════════════════════════════ */
.pcg-char-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.3s var(--pcg-char-ease);
}

.pcg-char-drawer-overlay.is-open {
    background: rgba(26, 24, 20, 0.5);
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.pcg-char-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: var(--pcg-char-paper);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s var(--pcg-char-ease);
    overflow-y: auto;
    box-shadow: var(--pcg-char-shadow-lg);
}

.pcg-char-drawer-overlay.is-open .pcg-char-drawer {
    transform: translateX(0);
}

.pcg-char-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--pcg-char-ink-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--pcg-char-ease);
    z-index: 2;
}

.pcg-char-drawer-close:hover {
    background: var(--pcg-char-line);
    color: var(--pcg-char-ink);
}

.pcg-char-drawer-body {
    padding: 56px 32px 32px;
}

.pcg-char-drawer-body.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Drawer content (populated by JS) */
.pcg-char-drawer-img-wrap {
    /* Capped height — values must stay above fold on standard laptops/phones */
    height: 200px;
    max-height: 28vh;
    background: linear-gradient(135deg,
        rgba(var(--pcg-char-color-r, 121), var(--pcg-char-color-g, 152), var(--pcg-char-color-b, 193), 0.08) 0%,
        var(--pcg-char-paper-warm) 100%);
    border-radius: var(--pcg-char-radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcg-char-drawer-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pcg-char-drawer-name {
    font-family: var(--pcg-char-font-display);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pcg-char-ink);
    margin: 0 0 4px;
    letter-spacing: -0.015em;
}

.pcg-char-drawer-subline {
    font-size: 14px;
    color: var(--pcg-char-ink-muted);
    margin: 0 0 24px;
}

.pcg-char-drawer-values {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--pcg-char-paper-warm);
    border-radius: var(--pcg-char-radius);
    margin-bottom: 20px;
}

.pcg-char-drawer-value-main {
    border-right: 1px solid var(--pcg-char-line);
    padding-right: 16px;
}

.pcg-char-drawer-value-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pcg-char-ink-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.pcg-char-drawer-value-num {
    font-family: var(--pcg-char-font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--pcg-char-ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pcg-char-drawer-value-num.is-secondary {
    font-size: 22px;
    color: var(--pcg-char-color-dark);
}

.pcg-char-drawer-rarity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--pcg-char-line);
    border-radius: var(--pcg-char-radius);
    margin-bottom: 24px;
}

.pcg-char-drawer-rarity-score {
    font-family: var(--pcg-char-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--pcg-char-color);
}

.pcg-char-drawer-rarity-label {
    font-size: 13px;
    color: var(--pcg-char-ink-muted);
}

.pcg-char-drawer-rarity-tag {
    margin-left: auto;
    padding: 4px 10px;
    background: var(--pcg-char-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
}

/* Chart container in drawer */
.pcg-char-drawer-chart {
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--pcg-char-line);
    border-radius: var(--pcg-char-radius);
}

.pcg-char-drawer-chart-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pcg-char-ink-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.pcg-char-drawer-chart svg {
    width: 100%;
    height: auto;
}

/* Metadata block */
.pcg-char-drawer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 16px 0;
    margin-bottom: 24px;
    font-size: 13px;
}

.pcg-char-drawer-meta dt {
    color: var(--pcg-char-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
    font-weight: 500;
}

.pcg-char-drawer-meta dd {
    color: var(--pcg-char-ink);
    margin: 0;
    font-weight: 500;
}

/* Drawer CTA */
.pcg-char-drawer-cta-section {
    border-top: 1px solid var(--pcg-char-line);
    padding-top: 24px;
    text-align: center;
}

.pcg-char-drawer-social {
    font-size: 13px;
    color: var(--pcg-char-ink-muted);
    margin: 0 0 12px;
    font-style: italic;
}

.pcg-char-drawer-cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--pcg-char-color);
    color: #fff;
    font-family: var(--pcg-char-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    text-align: center;
    transition: all 0.2s var(--pcg-char-ease);
    margin-bottom: 8px;
}

.pcg-char-drawer-cta:hover {
    background: var(--pcg-char-color-dark);
    color: #fff;
}

.pcg-char-drawer-cta-fine {
    font-size: 12px;
    color: var(--pcg-char-ink-muted);
    margin: 0;
}

/* Loading spinner inside drawer */
.pcg-char-drawer-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--pcg-char-line);
    border-top-color: var(--pcg-char-color);
    border-radius: 50%;
    animation: pcg-char-spin 0.8s linear infinite;
}

@keyframes pcg-char-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first overrides
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pcg-char-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pcg-char-hero-image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    .pcg-char-hero-text {
        text-align: center;
    }

    .pcg-char-hero h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .pcg-char-hero-subline {
        margin-left: auto;
        margin-right: auto;
    }

    .pcg-char-hero-stats {
        justify-content: center;
    }

    .pcg-char-section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .pcg-char-content,
    .pcg-char-faq {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .pcg-char-breadcrumb,
    .pcg-char-hero,
    .pcg-char-grid-section,
    .pcg-char-fomo-gate,
    .pcg-char-faq,
    .pcg-char-related,
    .pcg-char-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pcg-char-hero {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .pcg-char-hero-stats {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .pcg-char-stat-divider {
        display: none;
    }

    .pcg-char-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .pcg-char-fomo-content {
        padding: 32px 24px;
    }

    /* Drawer becomes bottom sheet on mobile */
    .pcg-char-drawer {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .pcg-char-drawer-overlay.is-open .pcg-char-drawer {
        transform: translateY(0);
    }

    .pcg-char-drawer-body {
        padding: 48px 20px 32px;
    }
}

@media (max-width: 480px) {
    .pcg-char-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pcg-char-card-body {
        padding: 12px 14px 14px;
    }

    .pcg-char-card-name {
        font-size: 14px;
    }

    .pcg-char-section-title {
        font-size: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT — Editorial, ink-saving
   ═══════════════════════════════════════════════════════════════════ */
@media print {
    .pcg-char-cta-btn,
    .pcg-char-mid-cta,
    .pcg-char-fomo-gate,
    .pcg-char-drawer-overlay {
        display: none !important;
    }
}
