/* ============================================================
   DESNORA HEADERS — headers.css
   One premium header system for every page, matching the Tools
   hero: dark base, faded 64px grid, cyan/pink glows, eyebrow
   pill, white headline with a pink→cyan gradient phrase.
   Loaded on every page (after premium.css) from includes/header.php.
   ============================================================ */

:root {
    --hdr-base: #05070d;
    --hdr-muted: #b4b4bd;
    --hdr-pink: #FE2C55;
    --hdr-cyan: #25F4EE;
    --hdr-grad: linear-gradient(110deg, #FE2C55 0%, #ff6b8a 30%, #25F4EE 100%);
    --hdr-glows:
        radial-gradient(ellipse 55% 60% at 88% 0%, rgba(37, 244, 238, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 60% at 6% 100%, rgba(254, 44, 85, 0.14), transparent 70%);
    --hdr-grid:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 64px 64px;
}

/* ---------- shared pieces ---------- */
.ph-eyebrow,
.page-header .section-badge,
.hero .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.6rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ph-eyebrow i,
.page-header .section-badge::before,
.hero .section-badge::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hdr-cyan);
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.15), 0 0 12px rgba(37, 244, 238, 0.8);
}

.ph-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    font-size: 0.85rem;
    color: #8b8b95;
}

.ph-crumbs a {
    color: #c9c9d1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ph-crumbs a:hover {
    color: var(--hdr-cyan);
}

.ph-crumbs span[aria-hidden] {
    opacity: 0.45;
}

/* ---------- 1) inner page headers (.page-header) ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 7rem;
    text-align: center;
    background-color: var(--hdr-base);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

/* Dark wash + glows over the page photo, fading into the page below */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 55%, var(--bg-dark, #010101) 100%),
        var(--hdr-glows),
        linear-gradient(180deg, rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.9));
}

/* Grid overlay, fading out toward the bottom (replaces the old accent bar) */
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 0;
    z-index: -1;
    background: var(--hdr-grid);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
    pointer-events: none;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    display: block;
    max-width: 920px;
    margin: 0 auto 1.5rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1px;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.page-header h1 .highlight,
.hero h1 .highlight {
    background: var(--hdr-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--hdr-muted);
}

/* ---------- 2) article hero (includes/article-hero.php) ---------- */
.art-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 0;
    background:
        linear-gradient(180deg, transparent 60%, var(--bg-dark, #010101) 100%),
        var(--hdr-glows),
        var(--hdr-base);
    isolation: isolate;
}

.art-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hdr-grid);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}

.art-hero-inner {
    max-width: 960px;
    text-align: left;
}

.art-hero-inner > :not(.art-figure) {
    max-width: 820px;
}

.art-hero .ph-eyebrow {
    margin-bottom: 1.4rem;
}

.art-title {
    display: block;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -1px;
    font-weight: 800;
    margin: 0 0 1.25rem;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.art-dek {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--hdr-muted);
    margin: 0 0 1.75rem;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    font-size: 0.92rem;
    color: #9a9aa5;
    padding-bottom: 3rem;
}

.art-meta > i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.art-author {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
}

.art-author b {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font: 700 0.85rem 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--hdr-pink), var(--hdr-cyan));
}

.art-figure {
    margin: 0 0 1rem;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(22, 24, 32, 0.85), rgba(10, 11, 16, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.art-figure img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    margin: 0;
    border: 0;
}

/* Article body column. "article"/".container" in the selectors beat the
   per-template <style> blocks that load after this file. */
.art-body,
article.art-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 0 4.5rem;
    text-align: left;
    color: var(--text-light);
}

/* posts 4-10 wrap the body in a section that already has 5rem padding */
.container.art-body {
    padding: 0 1.5rem;
}

.art-hero + .section {
    padding-top: 3.5rem !important;
}

article.art-body p,
.container.art-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #c4c4cc;
    margin-bottom: 1.6rem;
}

article.art-body h2,
.container.art-body h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin: 3rem 0 1.1rem;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

article.art-body h3,
.container.art-body h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 2.25rem 0 0.9rem;
    color: var(--hdr-cyan);
    -webkit-text-fill-color: var(--hdr-cyan);
}

article.art-body ul,
article.art-body ol,
.container.art-body ul,
.container.art-body ol {
    margin: 0 0 1.9rem;
    padding-left: 1.4rem;
    color: #c4c4cc;
}

article.art-body li,
.container.art-body li {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

article.art-body li::marker,
.container.art-body li::marker {
    color: var(--hdr-pink);
}

article.art-body blockquote,
.container.art-body blockquote {
    margin: 2.5rem 0;
    padding: 1.4rem 1.75rem;
    border-left: 3px solid var(--hdr-cyan);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(37, 244, 238, 0.07), rgba(255, 255, 255, 0.02));
    font-size: 1.15rem;
    color: #e4e4ea;
}

article.art-body img,
.container.art-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

article.art-body strong,
.container.art-body strong {
    color: #fff;
}

/* ---------- 3) home hero (index.php .hero) ---------- */
.hero {
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero::before {
    background:
        linear-gradient(180deg, transparent 70%, var(--bg-dark, #010101) 100%),
        var(--hdr-glows),
        var(--hdr-base);
}

.hero::after {
    background: var(--hdr-grid);
    -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.hero h1 {
    letter-spacing: -1.5px;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.hero .hero-content > p {
    color: var(--hdr-muted);
}

.hero-check-row {
    gap: 0.75rem;
}

.hero-check-item {
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #e4e4ea;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-frame {
    position: relative;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(22, 24, 32, 0.8), rgba(10, 11, 16, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(37, 244, 238, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-frame .hero-image {
    display: block;
    border-radius: 16px;
    border: 0;
    box-shadow: none;
}

.hero-chip {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    text-align: left;
    background: rgba(14, 15, 21, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: hdrChipFloat 6s ease-in-out infinite;
}

.hero-chip strong {
    font: 700 1.3rem 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.15;
}

.hero-chip span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8b8b95;
}

.hero-chip-1 {
    top: 8%;
    left: -2rem;
    border-color: rgba(37, 244, 238, 0.35);
}

.hero-chip-2 {
    bottom: 8%;
    right: -1.5rem;
    border-color: rgba(254, 44, 85, 0.35);
    animation-delay: -3s;
}

@keyframes hdrChipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* lighter polish for section headers further down the page */
.section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.section-header .section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hdr-cyan);
    box-shadow: 0 0 10px rgba(37, 244, 238, 0.8);
}

.section-header h2 {
    letter-spacing: -0.6px;
}

.section-header h2::after {
    width: 72px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hdr-pink), var(--hdr-cyan));
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 4.5rem;
    }

    .page-header p {
        font-size: 1.02rem;
    }

    .art-hero {
        padding-top: 3.5rem;
    }

    .art-meta {
        padding-bottom: 2rem;
    }

    .container.art-body {
        padding: 0 1.25rem;
    }

    .art-hero + .section {
        padding-top: 2.5rem !important;
    }

    article.art-body {
        padding: 2.5rem 0 3.5rem;
    }

    article.art-body p,
    .container.art-body p {
        font-size: 1.05rem;
    }

    .hero-chip-1 {
        left: 0.5rem;
        top: -0.75rem;
    }

    .hero-chip-2 {
        right: 0.5rem;
        bottom: -0.75rem;
    }

    .hero-check-row {
        justify-content: center;
    }

    .hero .section-badge,
    .page-header .section-badge {
        font-size: 0.66rem;
        letter-spacing: 0.8px;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .page-header h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .art-title {
        font-size: 1.8rem;
    }

    .art-dek {
        font-size: 1.02rem;
    }

    .art-figure {
        padding: 6px;
        border-radius: 16px;
    }

    .art-figure img {
        border-radius: 11px;
    }

    .hero-chip {
        padding: 0.55rem 0.8rem;
    }

    .hero-chip strong {
        font-size: 1.05rem;
    }

    .hero-chip span {
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-chip,
    .hero-image-wrapper {
        animation: none !important;
    }
}
