/* Defines post page tokens and layout variables. */
:root {
    --ColorBackground: #050505;
    --ColorSurfaceDark: #090909;
    --ColorSurfaceCard: #101010;
    --ColorSurfaceElevated: #151515;
    --ColorBorderSubtle: rgba(255, 255, 255, 0.10);
    --ColorBorderHover: rgba(255, 255, 255, 0.20);
    --ColorTextLight: #ffffff;
    --ColorTextMuted: #909090;
    --ColorTextFaint: #ababab;
    --ColorPrimaryBlue: #059bfa;
    --ColorBlueSoft: rgba(5, 155, 250, 0.10);
    --ColorBlueGlow: rgba(5, 155, 250, 0.60);
    --FontMain: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --FontMono: monospace;
    --RadiusSmall: 5px;
    --RadiusMedium: 10px;
    --RadiusLarge: 15px;
    --RadiusCard: 20px;
    --RadiusPill: 9999px;
    --TransitionNormal: 0.30s ease;
    --TransitionFast: 0.20s ease;
    --FontSizeMicro: 11px;
    --FontSizeSmall: 13px;
    --FontSizeBody: 15px;
    --FontSizeSubheading: 19px;
    --FontSizeMedium: 23px;
    --FontSizeTitleSmall: 25px;
    --FontSizeTitleLarge: 35px;
    --FontSizeHeroArticle: 45px;
}

/* Constrains and centers the article reading canvas. */
.PostContentSection {
    margin: 0 auto;
    max-width: 850px;
    padding: 50px 20px 100px;
    position: relative;
    width: 100%;
}

/* Casts an ambient glowing aura behind the article header. */
.PostGlowBackdrop {
    background: radial-gradient(ellipse 70% 50% at 50% 50%, #059bfa 0%, #04395a 40%, rgba(1, 25, 39, 0.40) 70%, transparent 100%);
    filter: blur(55px);
    height: 150px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    width: 650px;
    z-index: 1;
}

/* Aligns the top back navigation link and breadcrumb trail. */
.PostNavigationRow {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

/* Styles the interactive back button link. */
.PostBackButton {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusPill);
    color: var(--ColorTextMuted);
    display: inline-flex;
    font-size: var(--FontSizeSmall);
    font-weight: 500;
    padding: 5px 15px;
    text-decoration: none;
    transition: all var(--TransitionFast);
}

/* Highlights the back button on hover. */
.PostBackButton:hover {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: var(--ColorBorderHover);
    color: var(--ColorTextLight);
    transform: translateX(-3px);
}

/* Formats the breadcrumb separation slash. */
.PostBreadcrumbDivider {
    color: var(--ColorTextFaint);
    font-size: var(--FontSizeSmall);
}

/* Displays current article title in breadcrumbs. */
.PostBreadcrumbCurrent {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Wraps the entire rendered article structure. */
.PostArticleWrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Formats the primary article header component. */
.PostHeader {
    text-align: left;
}

/* Styles the release category tag. */
.PostCategoryBadge {
    background-color: var(--ColorBlueSoft);
    border: 1px solid #059bfa;
    border-radius: var(--RadiusPill);
    color: #059bfa;
    display: inline-block;
    font-size: var(--FontSizeMicro);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    padding: 5px 15px;
    text-transform: uppercase;
}

/* Styles the dominant article headline. */
.PostTitle {
    font-size: var(--FontSizeHeroArticle);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.10;
    margin-bottom: 20px;
}

/* Aligns article publication date and authorship metadata. */
.PostMetaRow {
    align-items: center;
    border-bottom: 1px solid var(--ColorBorderSubtle);
    border-top: 1px solid var(--ColorBorderSubtle);
    display: flex;
    gap: 15px;
    padding: 15px 0;
}

/* Formats the publication date tag. */
.PostDateBadge {
    color: var(--ColorTextMuted);
    font-family: var(--FontMono);
    font-size: var(--FontSizeSmall);
    font-weight: 500;
}

/* Formats the metadata bullet separator. */
.PostMetaDot {
    color: var(--ColorTextFaint);
}

/* Formats the author attribution tag. */
.PostAuthorText {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
}

/* Contains article body typography and components. */
.PostBody {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

/* Formats standard prose paragraphs with high legibility. */
.PostParagraph {
    color: #dddddd;
    font-size: var(--FontSizeBody);
    line-height: 1.70;
}

/* Highlights emphasized vocabulary. */
.PostEmphasis {
    color: var(--ColorTextLight);
    font-style: italic;
    font-weight: 600;
}

/* Formats subheadings within the markdown document. */
.PostSubHeading {
    color: var(--ColorTextLight);
    font-size: var(--FontSizeTitleSmall);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.20;
    margin-top: 20px;
}

/* Structures image cards into high-tech showcase frames. */
.PostFigureCard {
    background-color: var(--ColorSurfaceDark);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusCard);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.50);
    display: flex;
    flex-direction: column;
    margin: 15px 0 25px;
    overflow: hidden;
    position: relative;
    transition: border-color var(--TransitionNormal);
}

/* Highlights the showcase frame on hover. */
.PostFigureCard:hover {
    border-color: #059bfa;
}

/* Styles the top window control bar for images. */
.PostFigureBar {
    align-items: center;
    background-color: var(--ColorSurfaceCard);
    border-bottom: 1px solid var(--ColorBorderSubtle);
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Formats the window caption title. */
.PostFigureCaption {
    color: var(--ColorTextMuted);
    font-family: var(--FontMono);
    font-size: var(--FontSizeMicro);
}

/* Wraps the responsive image asset. */
.PostImageContainer {
    background-color: #000000;
    display: block;
    line-height: 0;
    position: relative;
    width: 100%;
}

/* Scales the article image responsively. */
.PostFigureImage {
    display: block;
    height: auto;
    width: 100%;
}

/* Centers the loading indicator placeholder. */
.PostLoadingState {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    min-height: 300px;
    padding: 60px 20px;
    text-align: center;
}

/* Animates the circular loading spinner. */
.PostLoadingSpinner {
    animation: SpinAnimation 1.0s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--RadiusPill);
    border-top-color: #059bfa;
    height: 40px;
    width: 40px;
}

/* Keyframes for spinning animation. */
@keyframes SpinAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Formats loading explanation text. */
.PostLoadingText {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
}

/* Formats error state container when an article is not found. */
.PostErrorState {
    align-items: center;
    background-color: var(--ColorSurfaceCard);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusCard);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px;
    text-align: center;
}

/* Formats error headline. */
.PostErrorHeading {
    font-size: var(--FontSizeTitleSmall);
    font-weight: 700;
}

/* Formats error explanation copy. */
.PostErrorText {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
    max-width: 450px;
}

/* Adapts article typography for medium viewports. */
@media (max-width: 990px) {
    .PostTitle {
        font-size: var(--FontSizeTitleLarge);
    }
}

/* Adapts article layout for compact mobile screens. */
@media (max-width: 650px) {
    .PostTitle {
        font-size: var(--FontSizeMedium);
    }

    .PostNavigationRow {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 25px;
    }

    .PostBreadcrumbCurrent {
        max-width: 200px;
    }

    .PostContentSection {
        padding: 30px 15px 70px;
    }

    .PostGlowBackdrop {
        width: 300px;
    }
}


