/* ============================================================================
 * lumen-clean-identities.css — ONE clear, deliberate identity per page.
 *
 * On a pure white foundation (see lumen-reset-white.css), each page gets:
 *   • a different accent color
 *   • a different hero geometry (position + size of the illustration)
 *   • a different hand-built SVG illustration
 *   • a different motion language
 *
 * No layering, no scenery, no shapes-on-top-of-photos, no rainbow noise.
 * Single-image identity per page. Christian-tech mood.
 *
 * Added 2026-06-15 21:37 per Yousef ("اول شي ابيض . وبعدي بتبني الهوية").
 * ========================================================================== */

:root {
    --accent-home:        #B97F1A;   /* gold-deep */
    --accent-learn:       #4477A0;   /* sky-deep */
    --accent-devotionals: #5A7C36;   /* sage-deep */
    --accent-sanctuary:   #6E5BAA;   /* lav-deep */
    --accent-verse-map:   #1B3F65;   /* navy */
    --accent-year:        #B45D3F;   /* coral-deep */
    --accent-store:       #B8703F;   /* peach-deep */
    --accent-safety:      #B7565E;   /* rose-deep */
    --accent-path:        #6E5BAA;   /* lav-deep */
    --accent-reflect:     #4B8A6C;   /* mint-deep */
}

body[data-section] .cinematic-hero,
body[data-section] .page-hero,
body[data-section] .store-hero,
body[data-section] .rp-hero {
    position: relative;
    overflow: hidden;
}

/* Container that holds the identity illustration */
.lumen-id {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Per-page kicker / hero title color override (uses page accent) */
body[data-section="home"]        .cinematic-hero__kicker,
body[data-section="home"]        .page-hero__kicker { color: var(--accent-home) !important; }
body[data-section="learn"]       .cinematic-hero__kicker,
body[data-section="learn"]       .page-hero__kicker { color: var(--accent-learn) !important; }
body[data-section="devotionals"] .cinematic-hero__kicker,
body[data-section="devotionals"] .page-hero__kicker { color: var(--accent-devotionals) !important; }
body[data-section="sanctuary"]   .cinematic-hero__kicker,
body[data-section="sanctuary"]   .page-hero__kicker { color: var(--accent-sanctuary) !important; }
body[data-section="verse-map"]   .cinematic-hero__kicker,
body[data-section="verse-map"]   .page-hero__kicker { color: var(--accent-verse-map) !important; }
body[data-section="year"]        .cinematic-hero__kicker,
body[data-section="year"]        .page-hero__kicker { color: var(--accent-year) !important; }
body[data-section="store"]       .cinematic-hero__kicker,
body[data-section="store"]       .page-hero__kicker { color: var(--accent-store) !important; }
body[data-section="safety"]      .cinematic-hero__kicker,
body[data-section="safety"]      .page-hero__kicker { color: var(--accent-safety) !important; }
body[data-section="path"]        .cinematic-hero__kicker,
body[data-section="path"]        .page-hero__kicker { color: var(--accent-path) !important; }
body[data-section="reflect"]     .cinematic-hero__kicker,
body[data-section="reflect"]     .page-hero__kicker { color: var(--accent-reflect) !important; }


/* ─── HOME — wide horizon: long thin gold line + small cross + halo ────── */
body[data-section="home"] .lumen-id {
    left: 50%;
    top: 14%;
    transform: translateX(-50%);
    width: clamp(280px, 70vw, 880px);
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--accent-home) 20%, var(--accent-home) 80%, transparent);
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(185, 127, 26, 0.30);
}
body[data-section="home"] .lumen-id::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at center, rgba(244, 215, 122, 0.55) 0%, transparent 75%);
    border-radius: 50%;
    animation: home-halo 5s ease-in-out infinite;
}
@keyframes home-halo {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.65; }
    50%      { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}


/* ─── LEARN — circuit diagram on the right, all in sky-blue ──────────────── */
body[data-section="learn"] .lumen-id {
    top: 50%; right: 4%;
    transform: translateY(-50%);
    width: clamp(180px, 22vw, 320px);
    height: clamp(180px, 22vw, 320px);
}
body[data-section="learn"] .lumen-id svg { width: 100%; height: 100%; }


/* ─── DEVOTIONALS — single olive branch curving from bottom-left ────────── */
body[data-section="devotionals"] .lumen-id {
    bottom: 0; left: 0;
    width: clamp(220px, 30vw, 460px);
    height: clamp(220px, 30vw, 460px);
}
body[data-section="devotionals"] .lumen-id svg { width: 100%; height: 100%; }


/* ─── SANCTUARY — circle of lavender rays from top-right ────────────────── */
body[data-section="sanctuary"] .lumen-id {
    top: -6%; right: -6%;
    width: clamp(220px, 28vw, 420px);
    height: clamp(220px, 28vw, 420px);
}
body[data-section="sanctuary"] .lumen-id svg { width: 100%; height: 100%; animation: sanc-slow-spin 80s linear infinite; }
@keyframes sanc-slow-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }


/* ─── VERSE-MAP — constellation across full width with twinkling stars ──── */
body[data-section="verse-map"] .lumen-id {
    inset: 0;
}
body[data-section="verse-map"] .lumen-id svg {
    width: 100%; height: 100%;
}
body[data-section="verse-map"] .lumen-id svg line { stroke: rgba(27, 63, 101, 0.30); stroke-width: 0.6; }
body[data-section="verse-map"] .lumen-id svg circle { fill: var(--accent-verse-map); animation: vm-twinkle 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
body[data-section="verse-map"] .lumen-id svg circle:nth-of-type(2n) { animation-delay: 1.5s; }
body[data-section="verse-map"] .lumen-id svg circle:nth-of-type(3n) { animation-delay: 3s; }
@keyframes vm-twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.25); }
}


/* ─── YEAR — liturgical wheel right side, deliberate single object ─────── */
body[data-section="year"] .lumen-id {
    right: 4%; top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 24vw, 360px);
    height: clamp(200px, 24vw, 360px);
}
body[data-section="year"] .lumen-id svg { width: 100%; height: 100%; animation: yr-rotate 90s linear infinite; transform-origin: center; }
@keyframes yr-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
body[data-section="year"] .lumen-id svg text { font-family: var(--sans); font-size: 7.5px; font-weight: 700; letter-spacing: 0.10em; fill: #2A2D38; }


/* ─── STORE — single flame in a window (right side) ────────────────────── */
body[data-section="store"] .lumen-id {
    bottom: 8%; right: 8%;
    width: clamp(160px, 18vw, 260px);
    height: clamp(220px, 24vw, 360px);
}
body[data-section="store"] .lumen-id svg { width: 100%; height: 100%; }


/* ─── SAFETY — shield + cross centered behind heading ───────────────────── */
body[data-section="safety"] .lumen-id {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
body[data-section="safety"] .lumen-id svg {
    width: clamp(280px, 36vw, 480px);
    height: auto;
    opacity: 0.18;
}


/* ─── PATH — winding path drawn left-to-right ─────────────────────────── */
body[data-section="path"] .lumen-id {
    inset: auto 0 4% 0;
    height: 40%;
}
body[data-section="path"] .lumen-id svg { width: 100%; height: 100%; }
body[data-section="path"] .lumen-id svg .road { fill: none; stroke: var(--accent-path); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: path-draw 10s ease-in-out infinite alternate; opacity: 0.5; }
body[data-section="path"] .lumen-id svg circle { fill: var(--accent-path); }
@keyframes path-draw { to { stroke-dashoffset: 0; } }


/* ─── REFLECT — single perfect circle ripple (pond) ─────────────────────── */
body[data-section="reflect"] .lumen-id {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(240px, 28vw, 420px);
    height: clamp(240px, 28vw, 420px);
}
body[data-section="reflect"] .lumen-id .ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-reflect);
    border-radius: 50%;
    opacity: 0;
    animation: rf-ripple 6s ease-out infinite;
}
body[data-section="reflect"] .lumen-id .ring:nth-child(2) { animation-delay: 1.5s; }
body[data-section="reflect"] .lumen-id .ring:nth-child(3) { animation-delay: 3s;   }
body[data-section="reflect"] .lumen-id .ring:nth-child(4) { animation-delay: 4.5s; }
@keyframes rf-ripple {
    0%   { transform: scale(0.2); opacity: 0;   border-color: var(--accent-reflect); }
    30%  { opacity: 1;   border-color: var(--accent-reflect); }
    100% { transform: scale(1.6); opacity: 0;   border-color: var(--accent-reflect); }
}


/* When an AI-generated image is dropped in, replace the SVG with the image */
.lumen-id .lumen-ai-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 18px;
    opacity: 0.85;
    mix-blend-mode: multiply;
    filter: saturate(1.05);
}

/* ─── Common: keep main content rendered ABOVE the identity layer ───────── */
.cinematic-hero__inner,
.page-hero__inner,
.store-hero__inner,
.rp-hero__inner { position: relative; z-index: 5; }


/* ─── Confident hero text reveal (kept tasteful on white) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
    .cinematic-hero__h1,
    .page-hero__title { animation: hero-title-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
    .cinematic-hero__lede,
    .page-hero__lede  { animation: hero-lede-in  1100ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both; }
    .cinematic-hero__kicker,
    .page-hero__kicker{ animation: hero-kicker-in 700ms ease 80ms both; }
    @keyframes hero-title-in  { from { opacity: 0; transform: translateY(28px) scale(0.92); } to { opacity: 1; transform: none; } }
    @keyframes hero-lede-in   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    @keyframes hero-kicker-in { from { opacity: 0; letter-spacing: 0.06em; } to { opacity: 1; letter-spacing: 0.20em; } }
}
