@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #111111;
    --accent: #e11d48;
    --accent-glow: rgba(225, 29, 72, 0.15);
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --container-width: 1280px;
    --header-font: 'Outfit', sans-serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Dark Theme Support preference */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #ffffff;
        --accent: #ef4444;
        --bg-body: #020617;
        --bg-surface: #0f172a;
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --border-light: #1e293b;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout & Typography --- */
.content {
    width: auto;
    overflow-x: hidden;
}

.apex-header-zone {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
}

.primary-layout-canvas {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) 1fr;
    gap: 64px;
    padding: 2rem 1.5rem 6rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

/* --- Hero Section --- */
.apex-hero-banner-frame {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.apex-hero-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.apex-hero-banner-frame:hover .apex-hero-visual {
    transform: scale(1.04);
}

/* --- Article Meta --- */
.post-metadata-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
}

.post-metadata-strip time,
.post-metadata-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Main Article Content --- */
.core-article-zone h1#article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-main) 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not (background-clip: text) {
    .core-article-zone h1#article-title {
        color: var(--text-main);
    }
}

.core-article-zone p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: var(--text-main);
    opacity: 0.95;
}

/* --- Product Box (Futuristic Redesign) --- */
@keyframes hud-scan {
    0% {
        transform: translateY(-100%);
        opacity: 0.4;
    }

    100% {
        transform: translateY(400%);
        opacity: 0;
    }
}

@keyframes corner-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes price-flicker {

    0%,
    96%,
    100% {
        opacity: 1;
    }

    97% {
        opacity: 0.4;
    }

    98% {
        opacity: 1;
    }

    99% {
        opacity: 0.6;
    }
}

.q7v-pbox-outer {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 60%, #12091a 100%);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 4px;
    margin: 2.5rem 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(225, 29, 72, 0.06),
        0 2px 30px rgba(0, 0, 0, 0.6);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* Animated scan line */
.q7v-pbox-outer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.6), transparent);
    top: 0;
    animation: hud-scan 3.5s linear infinite;
    z-index: 3;
    pointer-events: none;
}

/* Top-right cut badge */
.q7v-pbox-outer::after {
    content: 'BUY NOW';
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--header-font);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    background: var(--accent);
    padding: 0.3rem 1.1rem 0.3rem 0.7rem;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 4;
}

.q7v-pbox-outer:hover {
    border-color: rgba(225, 29, 72, 0.8);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(225, 29, 72, 0.18),
        0 0 120px rgba(225, 29, 72, 0.06),
        0 4px 40px rgba(0, 0, 0, 0.7);
}

/* Corner accents */
.q7v-pbox-outer .x9k-prdvis::before,
.q7v-pbox-outer .x9k-prdvis::after {
    display: none;
    /* corners handled below */
}

/* Product image panel */
.x9k-prdvis {
    width: 200px;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    position: relative;
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.4s ease;
    border-right: 1px solid rgba(225, 29, 72, 0.2);
}

.q7v-pbox-outer:hover .x9k-prdvis {
    filter: saturate(1.1) contrast(1.08);
}

/* Info panel */
.z2m-infowrp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
}

/* Grid lines background on info panel */
.z2m-infowrp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 72, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 72, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* System label above title */
.z2m-infowrp::after {
    content: '// PRODUCT_ENTRY :: AFFILIATE';
    position: absolute;
    top: 0.6rem;
    left: 1.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: rgba(225, 29, 72, 0.5);
    pointer-events: none;
}

.k4p-titlestr {
    font-family: var(--header-font);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.8rem 0 0;
    line-height: 1.3;
    color: #f0f4ff;
    letter-spacing: 0.01em;
    position: relative;
}

.v8x-pricetag {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    animation: price-flicker 6s infinite;
    position: relative;
    text-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

/* Small unit label beside price */
.v8x-pricetag::before {
    content: 'MSRP';
    display: block;
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(225, 29, 72, 0.5);
    margin-bottom: 0.1rem;
    font-weight: 400;
}

.btn-9j3-addcart {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    background: transparent;
    color: #f0f4ff;
    padding: 0.65rem 1.5rem;
    border: 1px solid rgba(225, 29, 72, 0.6);
    border-radius: 2px;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-9j3-addcart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-9j3-addcart::after {
    content: '▶';
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.q7v-pbox-outer:hover .btn-9j3-addcart {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.35), inset 0 0 10px rgba(225, 29, 72, 0.1);
}

.q7v-pbox-outer:hover .btn-9j3-addcart::before {
    transform: translateX(0);
}

.q7v-pbox-outer:hover .btn-9j3-addcart::after {
    transform: translateX(3px);
}

/* --- Images --- */
.embedded-visual-module {
    margin: 3rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    position: relative;
}

.embedded-visual-asset {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.embedded-visual-module:hover .embedded-visual-asset {
    transform: scale(1.02);
}

/* --- Share Button --- */
.distribution-hub-area {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.distribution-trigger-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 2px solid var(--border-light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.distribution-trigger-btn:hover {
    background: var(--text-main);
    color: var(--bg-body);
    border-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Sidebar & Widgets --- */
.auxiliary-content-wing {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    width: 300px;
    margin-left: auto;
}

.monetization-unit-frame {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.monetization-sponsor-tag {
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem;
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
}

.monetization-display-zone {
    padding: 0;
    display: grid;
    place-items: center;
    width: 300px;
    background: white;
    line-height: 0;
}

.ad-300x250 .monetization-display-zone {
    height: 250px;
}

.ad-300x600 .monetization-display-zone {
    min-height: 600px;
}

/* --- Carousel Widget --- */
.chronological-feed-slider {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    width: 300px;
    height: 300px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.chronological-slider-caption {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 50px;
}

.chronological-slider-caption i {
    color: var(--accent);
}

.chronological-slider-rail {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 250px;
}

.chronological-entry-tile {
    min-width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.chronological-entry-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.chronological-entry-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.6s ease;
}

.chronological-entry-tile:hover img {
    transform: scale(1.08);
}

.chronological-entry-headline {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.chronological-indicator-nav {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.indicator-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-bullet.active-bullet {
    background: white;
    transform: scale(1.3);
}

/* --- Related Articles --- */
.associated-content-module {
    margin-top: 3rem;
}

.associated-content-module h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.associated-grid-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.associated-entry-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.associated-entry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.associated-entry-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.associated-entry-headline {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- Share Modal Overlay --- */
.distribution-overlay-layer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    place-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.distribution-overlay-layer.active-state {
    display: flex;
    opacity: 1;
}

.distribution-panel-box {
    background: var(--bg-body);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.distribution-overlay-layer.active-state .distribution-panel-box {
    transform: scale(1);
}

.distribution-icons-cluster {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.distribution-platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.2s;
}

.distribution-platform-icon:hover {
    transform: scale(1.15) rotate(5deg);
}

.overlay-dismiss-control {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.overlay-dismiss-control:hover {
    color: var(--accent);
}

/* --- Footer --- */
.voidFooterRealm {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: clamp(20px, 3vw, 30px) clamp(10px, 1.5vw, 20px);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    margin-top: auto;
}

.nebulaFooterCore {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: clamp(10px, 2vw, 20px);
    align-items: flex-start;
}

.lunarLogoHub {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lunarLogoHub a {
    display: inline-block;
}

.lunarLogoHub img {
    width: clamp(80px, 15vw, 120px);
    height: auto;
    filter: brightness(0) invert(1);
}

.lunarLogoHub p {
    font-size: clamp(10px, 2vw, 12px);
    opacity: 0.7;
    margin: 0;
    line-height: 1.3;
}

.astroNavCluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(6px, 1vw, 8px);
}

.astroNavCluster ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.astroNavCluster li {
    margin-bottom: 6px;
}

.astroNavCluster a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.astroNavCluster a:hover {
    color: #007bff;
    transform: translateX(4px);
}

.cosmicSocialSphere {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cosmicSocialSphere h3 {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    margin: 0;
}

.stellarSocialIcons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1vw, 8px);
}

.stellarSocialIcons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.stellarSocialIcons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.stellarSocialIcons svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nebulaFooterCore {
        grid-template-columns: 1fr 1fr;
        gap: clamp(8px, 1.5vw, 15px);
    }

    .cosmicSocialSphere {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .stellarSocialIcons {
        justify-content: center;
    }

    .primary-layout-canvas {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .auxiliary-content-wing {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        width: 100%;
    }

    .monetization-unit-frame {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .chronological-feed-slider {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
    }

    .chronological-slider-rail {
        height: 250px;
    }

    .apex-hero-banner-frame {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .voidFooterRealm {
        padding: clamp(10px, 2vw, 20px) clamp(8px, 1vw, 15px);
    }

    .nebulaFooterCore {
        grid-template-columns: 1fr;
        gap: clamp(10px, 2vw, 15px);
    }

    .lunarLogoHub {
        align-items: center;
        text-align: center;
    }

    .astroNavCluster {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        justify-items: center;
    }

    .astroNavCluster ul {
        text-align: center;
    }

    .apex-hero-banner-frame {
        height: 40vh;
    }

    .core-article-zone h1#article-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .voidFooterRealm {
        padding: clamp(8px, 1.5vw, 15px) clamp(5px, 0.75vw, 10px);
    }

    .lunarLogoHub img {
        width: clamp(60px, 20vw, 100px);
    }

    .lunarLogoHub p {
        font-size: clamp(9px, 2vw, 11px);
    }

    .astroNavCluster {
        grid-template-columns: 1fr;
    }

    .astroNavCluster ul {
        margin-bottom: 8px;
    }

    .astroNavCluster a {
        font-size: clamp(10px, 2vw, 12px);
    }

    .cosmicSocialSphere h3 {
        font-size: clamp(12px, 2.5vw, 14px);
    }

    .stellarSocialIcons a {
        width: 28px;
        height: 28px;
    }

    .stellarSocialIcons svg {
        width: 16px;
        height: 16px;
    }

    /* Product box mobile */
    .q7v-pbox-outer {
        grid-template-columns: 1fr;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    }

    .x9k-prdvis {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid rgba(225, 29, 72, 0.2);
    }

    .btn-9j3-addcart {
        width: 100%;
        justify-content: center;
    }
}