/*
Theme Name: The Red Mirror
Author: Virex / Siona
Description: A theme built on fire and silence.
Version: 1.1
*/

/* --- 1. FONTS & VARIABLES --- */
/* Theme header retained; variables and base styles moved to assets/css/*. */

/* --- 2. ATMOSPHERE & GLOW (NEW UPDATE) --- */
/* [Source: 187 - "bg-bloodroot blur-[160px]"] */

/* Pillars moved to assets/css/pillars.css */

/* Mobile responsive check - hide on small screens if needed */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
}

.nav-menu li {
    margin: 0; /* Remove default WP li margins */
}

.nav-menu a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    transition: color 0.3s;
}

    .nav-menu a:hover {
        color: white;
    }

/* Shard styles moved to assets/css/shard.css */

/* Shard moved to assets/css/shard.css */
.pillar-card:hover .pillar-icon {
    color: #f4c361;
    opacity: 1;
    transform: translateY(-4px);
}

.pillar-link {
    color: var(--color-bloodroot);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 2rem;
    display: inline-block;
}

/* --- 7. THE OFFERING (WITH REACTIVE GLOW) --- */
/* [Source: 197] */
.offering-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.offering-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    z-index: 10;
}

/* The localized glow behind the input */
.input-glow {
    position: absolute;
    inset: 0;
    background: rgba(138, 8, 8, 0.2);
    filter: blur(60px);
    z-index: -1;
    transform: scale(0.8);
    opacity: 0.5;
    transition: all 1s ease;
}

/* Class toggled by JS when typing */
.offering-container.active .input-glow {
    opacity: 0.8;
    transform: scale(1.1);
    background: rgba(138, 8, 8, 0.3);
}

#vow-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-bloodroot);
    width: 100%;
    color: var(--color-ember);
    font-family: var(--font-mythic);
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
    margin: 3rem 0;
    outline: none;
    resize: none;
}

.btn-seal {
    border: 1px solid var(--color-bloodroot);
    background: transparent;
    color: white;
    padding: 1.5rem 4rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-seal:hover {
        background: rgba(138, 8, 8, 0.2);
        box-shadow: 0 0 30px rgba(138, 8, 8, 0.4);
    }

/* Utilities */
.hidden {
    display: none;
}

.shard-container::after {
    content: "Peek into the Mirror"; /* Fixed Casing */
    position: absolute;
    left: 115%; /* Slight extra breathing room */
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 2rem;
    border: 1px solid rgba(217, 164, 65, 0.6);
    background: rgba(0, 0, 0, 0.9);
    font-family: var(--font-body);
    font-size: 0.95rem; /* larger for readability */
    letter-spacing: 0.28em; /* slightly larger spacing */
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
    z-index: 10000; /* Must be higher than shard-container's 9999 */
    box-shadow: 0 0 6px rgba(217,164,65,0.2);
    filter: drop-shadow(0 0 24px rgba(180,20,20,0.9));
    text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 6px 24px rgba(138,8,8,0.45);
}

.shard-container:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(18px) scale(1.05);
    box-shadow: 0 0 30px rgba(200,30,30,0.9), 0 0 90px rgba(180,20,20,0.6), 0 0 140px rgba(138,8,8,0.35);
    filter: drop-shadow(0 0 28px rgba(200,30,30,0.9));
    border-color: rgba(217,164,65,0.95);
}

.fade-in {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* --- Hero Extras [Source 324] --- */
.hero-descend {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.8em;
    color: rgba(255,255,255,0.4);
    animation: fadeIn 3s ease;
}

.descend-line {
    width: 1px;
    height: 6rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

.hero-quote {
    font-style: italic;
    color: rgba(255,255,255,0.8);
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 300;
}

/* --- Ticker Fix --- */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Fixed height to prevent layout shifts */
    overflow: hidden;
    background: #1b161e;
    border-top: 1px solid rgba(255,255,255,0.02);
    z-index: 190;
    padding: 1rem 0;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap; /* CRITICAL: Prevents text wrapping */
    min-width: 100%;
    animation: tickerScroll 10s linear infinite;
}

.ticker-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(116, 116, 116, 0.5);
    padding-right: 4rem;
    flex-shrink: 0; /* Prevents squishing */
}

/* --- Footer Adjustments --- */
.site-footer {
    padding: 6rem 2rem 8rem 2rem; /* Extra bottom padding for ticker */
    background: black;
    border-top: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    z-index: 20;
}

.footer-meta {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.footer-brand {
    color: var(--color-ember);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- Utility Classes --- */
.text-ember {
    color: var(--color-ember);
}

.shard-label {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    font-weight: 600;
}

.success-text {
    color: var(--color-bloodroot);
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    font-family: var(--font-mythic);
}

.offering-title {
    font-family: var(--font-mythic);
    font-size: 3rem;
    margin-bottom: 2rem;
}
/* --- V11 Patch: Motion + Alignment --- */
:root {
    --color-ember: #d9a441;
    --color-bloodroot: #8a0a0a;
    --color-text-muted: rgba(255,255,255,0.5);
}

/* Header inner alignment */
.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.site-title {
    font-family: var(--font-mythic);
    color: white;
    text-decoration: none;
    letter-spacing: 0.35em;
    font-size: 18px;
}

    .site-title:hover {
        opacity: 0.9;
    }

/* Shard: anchored pulse */
@keyframes shardPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-52%) scale(1.03);
        opacity: 1;
    }
}

.shard-container {
    animation: shardPulse 10s ease-in-out infinite;
}

/* Ambient glow drift */
@keyframes glowDrift {
    0%, 100% {
        transform: translate(-50%, -20%) scale(1);
    }

    50% {
        transform: translate(-45%, -18%) scale(1.05);
    }
}

.ambient-glow {
    filter: blur(100px);
    opacity: 0.32;
    animation: glowDrift 20s ease-in-out infinite;
}

/* Hero pacing */
.hero-title {
    animation: fadeIn 2.8s ease forwards;
}

.hero-subtitle {
    animation: fadeIn 3.6s ease forwards;
}

/* Manifesto section styling */
.manifesto h2 {
    font-family: var(--font-mythic);
    font-size: clamp(2.8rem, 7vw, 6rem);
    margin: 0 0 3rem 0;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 30px rgba(138, 8, 8, 0.4);
    text-align: center;
}

.manifesto-lines p {
    font-family: var(--font-mythic);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: rgba(217, 164, 65, 0.85);
    margin: 1.5rem auto;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.manifesto-divider {
    width: 220px;
    height: 2px;
    margin: 2.5rem auto 3rem;
    background: linear-gradient(90deg, transparent, var(--color-bloodroot), transparent);
    box-shadow: 0 0 20px rgba(138, 8, 8, 0.5);
}

/* Shard icon wrapper */
.shard-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 40px rgba(138,10,10,0.25);
    margin: 0 auto 1.2rem auto;
    color: white;
}

.shard-icon-wrapper svg {
    stroke: currentColor;
    width: 32px;
    height: 32px;
}

/* Ticker animation keyframes (missing) */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker .sep {
    opacity: 0.35;
}


/* ===== v1.2 Tightening Patch ===== */

/* Vignette (Goal-matching depth) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at 40% 45%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.55) 100%);
}

/* Hero lift */
.hero-section {
    justify-content: flex-start;
    padding-top: 18vh;
}

/* Subtitle refinement */
.hero-subtitle {
    letter-spacing: 1em;
    opacity: 0.75;
}

/* Shard depth (inner glow, darker edges) */
.shard-shape {
    background: radial-gradient(ellipse at center, rgba(138,10,10,0.5) 0%, rgba(70,0,0,0.7) 55%, rgba(20,0,0,0.95) 100%) !important;
    box-shadow: inset 0 0 35px rgba(0,0,0,0.9), 0 0 70px rgba(138,8,8,0.6) !important;
    animation: shardGlow 6s ease-in-out infinite !important;
}


