/* ============================================================
   SECTION: HERO PORTAL — Pentagon Hub Constellation
   Beyond The Veil
   ============================================================ */

/* ------------------------------------------------------------
   HERO WRAPPER
------------------------------------------------------------ */
.btv-hero-pentagon {
    position: relative;
    width: 100vw;
    min-height: calc(115vh + var(--btv-header-height));
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    background: var(--btv-black);
      /* NEW */
    --pentagon-offset-y: 0px;

}





/* Ensure Gutenberg/Blocksy spacer wrappers don't interfere 
.btv-hero-pentagon-shell.is-layout-constrained,
section.btv-hero-pentagon {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
*/
/* ------------------------------------------------------------
   PARALLAX LAYERS (Behind Pentagon)
------------------------------------------------------------ */
.btv-parallax-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    will-change: transform;
    z-index: 2;
    transform: translateZ(0);
}
.btv-hero-lcp {
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.50;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    /* CRITICAL: neutralize intrinsic size */
    aspect-ratio: auto;
    /* CRITICAL: prevent it from defining layout */
    position: absolute;
}



/* Layer assignments */
.btv-parallax-layer.layer-1 {
    background-image: url('/wp-content/uploads/2025/12/4K-Parallax-2160-4.png');
    opacity: 0.15;
}
.btv-parallax-layer.layer-2 {
    background-image: url('/wp-content/uploads/2025/12/4K-Parallax-2160-2.png');
    opacity: 0.10;
}
/*.btv-parallax-layer.layer-3 {
    background-image: url('/wp-content/uploads/2025/12/4K-Parallax-1.png');
    opacity: 0.30;
}*/
.btv-parallax-layer.layer-4 {
    background-image: url('/wp-content/uploads/2025/12/4K-Parallax-2160-3.png');
    opacity: 0.30;
}

/* Make pentagon and hubs sit above layers */
.btv-pentagon-frame,
.btv-pentagon-hubs,
.btv-scroll-indicator {
    position: relative;
}
/*PENTAGON SYSTEM - wraps frame and hubs into a single unit*/
.btv-pentagon-system {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 760px;
    height: 760px;

    transform: translate(-50%, -60%) translateY(var(--pentagon-offset-y));
    z-index: 3;
}


/* ------------------------------------------------------------
   PENTAGON FRAME (760px baseline grid)
------------------------------------------------------------ */
.btv-pentagon-frame {
    width: 760px;
    height: 760px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 2;
}

.btv-pentagon-svg {
    width: 100%;
    height: 100%;
}

/* Thin outline */
.btv-pentagon-svg polygon {
    stroke: var(--btv-silver);
    stroke-width: 0.2px;
    fill: transparent;
    opacity: 0.25;
    filter: drop-shadow(0 0 14px rgba(192, 192, 192, 0.45));
}

/* ------------------------------------------------------------
   HUB GRID (Also 760px × 760px)
------------------------------------------------------------ */
.btv-pentagon-hubs {
    width: 760px;
    height: 760px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 3;
}

/* BASE HUB NODE */
.btv-hub-node {
    position: absolute;
    width: 225px;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--btv-font-body);
    color: var(--btv-silver);
    pointer-events: auto;
}

/* HUB CIRCLES */
.btv-hub-circle {
    z-index: 10 !important;
    position: relative;
    width: 225px;
    height: 225px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--btv-silver);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.20);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        filter 0.25s ease;
}

/* HUB TITLES */
.btv-hub-title {
    position: absolute;
    font-family: var(--btv-font-head);
    font-size: 1.25rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

/* ------------------------------------------------------------
   PENTAGON VERTEX COORDS (perfect geometry)
   760px grid, 225px circles (radius = 112.5px)
------------------------------------------------------------ */

/* TOP — SSP (380, 22.8) */
.hub-ssp {
    top: calc(22.8px - 112.5px);
    left: calc(380px - 112.5px);
}
.hub-ssp .btv-hub-title {
    bottom: 235px;
}

/* UPPER LEFT — Antiquity (38, 288.8) */
.hub-antiquity {
    top: calc(288.8px - 112.5px);
    left: calc(38px - 112.5px);
}
.hub-antiquity .btv-hub-title {
    bottom: 235px;
}

/* UPPER RIGHT — Abductions (722, 288.8) */
.hub-abductions {
    top: calc(288.8px - 112.5px);
    left: calc(722px - 112.5px);
}
.hub-abductions .btv-hub-title {
    bottom: 235px;
}

/* LOWER LEFT — Cryptids (174.8, 699.2) */
.hub-cryptids {
    top: calc(699.2px - 112.5px);
    left: calc(174.8px - 112.5px);
}
.hub-cryptids .btv-hub-title {
    top: 235px;
}

/* LOWER RIGHT — Consciousness (585.2, 699.2) */
.hub-consciousness {
    top: calc(699.2px - 112.5px);
    left: calc(585.2px - 112.5px);
}
.hub-consciousness .btv-hub-title {
    top: 235px;
}

/* ------------------------------------------------------------
   HUB COLOR ASSIGNMENTS (from global tokens)
------------------------------------------------------------ */
.hub-ssp .btv-hub-circle {
    border-color: var(--btv-ssp);
    box-shadow: 0 0 22px rgba(138, 43, 226, 0.6);
}
.hub-antiquity .btv-hub-circle {
    border-color: var(--btv-antiquity);
    box-shadow: 0 0 22px rgba(212, 164, 90, 0.6);
}
.hub-abductions .btv-hub-circle {
    border-color: var(--btv-abductions);
    box-shadow: 0 0 22px rgba(82, 255, 143, 0.6);
}
.hub-cryptids .btv-hub-circle {
    border-color: var(--btv-cryptids);
    box-shadow: 0 0 22px rgba(208, 69, 69, 0.6);
}
.hub-consciousness .btv-hub-circle {
    border-color: var(--btv-conscious);
    box-shadow: 0 0 22px rgba(192, 192, 192, 0.6);
}

/* ------------------------------------------------------------
   HUB BACKGROUND IMAGES (DESKTOP)
------------------------------------------------------------ */

.hub-ssp .btv-hub-circle {
    background-image: url('/wp-content/uploads/2025/11/metalicDisk-hangar-violetHue.png');
}

.hub-antiquity .btv-hub-circle {
    background-image: url('/wp-content/uploads/2025/12/stoneHead-Mars.png');
}

.hub-abductions .btv-hub-circle {
    background-image: url('/wp-content/uploads/2025/12/grey-1.png');
}

.hub-cryptids .btv-hub-circle {
    background-image: url('/wp-content/uploads/2025/12/Bigfoot-Hiding-Behind-Tree.png');
}

.hub-consciousness .btv-hub-circle {
    background-image: url('/wp-content/uploads/2025/12/Meditation-and-consciousness.png');
}


/* ------------------------------------------------------------
   HOVER BEHAVIOR
------------------------------------------------------------ */
.btv-hub-node:hover .btv-hub-circle {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
    filter: brightness(1.20);
}

/* Category-specific title color on hover */
.btv-hub-node.hub-ssp:hover .btv-hub-title {
    color: var(--btv-ssp);
}
.btv-hub-node.hub-antiquity:hover .btv-hub-title {
    color: var(--btv-antiquity);
}
.btv-hub-node.hub-abductions:hover .btv-hub-title {
    color: var(--btv-abductions);
}
.btv-hub-node.hub-cryptids:hover .btv-hub-title {
    color: var(--btv-cryptids);
}
.btv-hub-node.hub-consciousness:hover .btv-hub-title {
    color: var(--btv-conscious);
}

/* Reset link styles */
.btv-hero-pentagon a.btv-hub-node {
    color: var(--btv-silver);
    text-decoration: none;
}
.btv-hero-pentagon a.btv-hub-node:hover {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------------------------------------
   SCROLL INDICATOR
------------------------------------------------------------ */
.btv-scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 430px); /* precise baseline */
    text-transform: uppercase;
    font-family: var(--btv-font-body);
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--btv-silver);
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.btv-scroll-arrow {
    width: 1px;
    height: 20px;
    background: var(--btv-silver);
    opacity: 0.6;
}
/* 1080p-class laptops */
@media (max-height: 900px) {
    .btv-hero-pentagon {
        --pentagon-offset-y: 185px;
    }
}

/* ============================================================
   TABLET RESPONSIVE — Pentagon Hero (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    /* ---------------------------------------------
       SCALE DOWN GRID TO 540px
       --------------------------------------------- */
    .btv-pentagon-frame,
    .btv-pentagon-hubs {
        width: 540px;
        height: 540px;
        transform: translate(-50%, -90%);
    }

    /* New hub circle dimensions */
    .btv-hub-circle,
    .btv-hub-node {
        width: 160px;
        height: 160px;
    }

    /* Title tweaks */
    .btv-hub-title {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    /* ---------------------------------------------
       RECALCULATED TABLET PENTAGON GEOMETRY
       (perfect 540px → radius 80px hubs)
       --------------------------------------------- */

    /* TOP — SSP */
    .hub-ssp {
        top: calc(16.2px - 80px);
        left: calc(270px - 80px);
    }
    .hub-ssp .btv-hub-title {
        bottom: 168px;
    }

    /* UPPER LEFT — Antiquity */
    .hub-antiquity {
        top: calc(205.8px - 80px);
        left: calc(27px - 80px);
    }
    .hub-antiquity .btv-hub-title {
        bottom: 168px;
    }

    /* UPPER RIGHT — Abductions */
    .hub-abductions {
        top: calc(205.8px - 80px);
        left: calc(513px - 80px);
    }
    .hub-abductions .btv-hub-title {
        bottom: 168px;
    }

    /* LOWER LEFT — Cryptids */
    .hub-cryptids {
        top: calc(498.3px - 80px);
        left: calc(124.2px - 80px);
    }
    .hub-cryptids .btv-hub-title {
        top: 168px;
    }

    /* LOWER RIGHT — Consciousness */
    .hub-consciousness {
        top: calc(498.3px - 80px);
        left: calc(415.8px - 80px);
    }
    .hub-consciousness .btv-hub-title {
        top: 168px;
    }

    /* ---------------------------------------------
       PARALLAX VISIBILITY & SCALE (Tablet)
       --------------------------------------------- */
    .btv-parallax-layer {
        opacity: 0.20;
        transform: none !important; /* calm parallax on tablet */
    }

    /* ---------------------------------------------
       SCROLL INDICATOR ADJUSTMENT
       --------------------------------------------- */
    .btv-scroll-indicator {
        top: calc(50% + 300px);
        font-size: 11px;
        opacity: 0.7;
    }

    .btv-scroll-arrow {
        height: 15px;
    }
}

