/* Defines blog page tokens and theme extension 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: 17px;
    --FontSizeMedium: 23px;
    --FontSizeTitleSmall: 25px;
    --FontSizeTitleMedium: 30px;
    --FontSizeTitleLarge: 35px;
    --FontSizeHeroDesktop: 55px;
}

/* Centers and structures the blog hero banner. */
.BlogHeroSection {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 90px 20px 50px;
    position: relative;
    text-align: center;
}

/* Constrains blog hero text elements. */
.BlogHeroContainer {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

/* Formats the dominant blog hero heading. */
.BlogHeroHeading {
    font-size: var(--FontSizeHeroDesktop);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.10;
    margin-bottom: 20px;
}

/* Formats the explanatory blog hero subtitle. */
.BlogHeroSubtitle {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeBody);
    line-height: 1.60;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Wraps the blog feed and article list. */
.BlogFeedSection {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 20px 100px;
    position: relative;
    width: 100%;
}

/* Lays out the blog articles in a balanced grid. */
.BlogFeedGrid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Formats the interactive blog card container. */
.BlogCard {
    background-color: var(--ColorSurfaceCard);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusCard);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform var(--TransitionNormal), border-color var(--TransitionNormal), box-shadow var(--TransitionNormal);
}

/* Elevates the blog card on hover with ambient glow. */
.BlogCard:hover {
    border-color: #059bfa;
    box-shadow: 0 15px 35px rgba(5, 155, 250, 0.15);
    transform: translateY(-5px);
}

/* Aligns the top metadata row of the card. */
.BlogCardTopBar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 0;
    position: relative;
    z-index: 3;
}

/* Formats category badge pills. */
.BlogBadge {
    background-color: var(--ColorBlueSoft);
    border: 1px solid #059bfa;
    border-radius: var(--RadiusPill);
    color: #059bfa;
    font-size: var(--FontSizeMicro);
    font-weight: 600;
    padding: 0 10px;
}

/* Aligns date and estimated reading time. */
.BlogMetaInfo {
    align-items: center;
    color: var(--ColorTextMuted);
    display: flex;
    font-size: var(--FontSizeMicro);
    gap: 10px;
}

/* Formats article publication date. */
.BlogPublishDate {
    color: var(--ColorTextMuted);
    font-family: var(--FontMono);
    font-size: var(--FontSizeMicro);
}

/* Formats estimated reading duration. */
.BlogReadTime {
    color: var(--ColorTextFaint);
    font-size: var(--FontSizeMicro);
}

/* Wraps the blog thumbnail visual. */
.BlogThumbnailWrapper {
    background-color: #000000;
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusMedium);
    line-height: 0;
    margin: 15px 20px 0;
    overflow: hidden;
    position: relative;
}

/* Scales the blog thumbnail smoothly. */
.BlogThumbnailImage {
    display: block;
    height: 200px;
    object-fit: cover;
    transition: transform var(--TransitionNormal);
    width: 100%;
}

/* Zooms thumbnail slightly when card is hovered. */
.BlogCard:hover .BlogThumbnailImage {
    transform: scale(1.05);
}

/* Holds textual contents within the blog card. */
.BlogCardContent {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 20px;
    position: relative;
    z-index: 3;
}

/* Formats the primary article title. */
.BlogArticleTitle {
    font-size: var(--FontSizeTitleSmall);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.20;
    margin-bottom: 15px;
}

/* Formats the article summary paragraph. */
.BlogArticleExcerpt {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
    line-height: 1.60;
    margin-bottom: 20px;
}

/* Formats the tag collection row. */
.BlogTagList {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
}

/* Aligns the card footer action items. */
.BlogCardActionRow {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

/* Styles the read action button. */
.BlogReadButton {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusMedium);
    color: var(--ColorTextLight);
    display: inline-flex;
    font-size: var(--FontSizeSmall);
    font-weight: 600;
    padding: 10px 20px;
    text-decoration: none;
    transition: all var(--TransitionFast);
}

/* Highlights the read action button on hover. */
.BlogReadButton:hover {
    background-color: var(--ColorTextLight);
    color: var(--ColorBackground);
}

/* Styles inactive status hint. */
.BlogStatusNotice {
    color: var(--ColorTextFaint);
    font-size: var(--FontSizeMicro);
    font-weight: 500;
}

/* Configures the fixed toast notification container. */
.ToastNotification {
    align-items: center;
    backdrop-filter: blur(15px);
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(5, 155, 250, 0.50);
    border-radius: var(--RadiusMedium);
    bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.70);
    display: flex;
    gap: 15px;
    max-width: 400px;
    opacity: 0;
    padding: 15px 20px;
    pointer-events: none;
    position: fixed;
    right: 30px;
    transform: translateY(20px);
    transition: all var(--TransitionNormal);
    z-index: 100;
}

/* Reveals the active toast notification smoothly. */
.ToastVisible {
    opacity: 1.0;
    pointer-events: auto;
    transform: translateY(0);
}

/* Formats the toast circular icon container. */
.ToastIconBox {
    align-items: center;
    background-color: var(--ColorBlueSoft);
    border: 1px solid #059bfa;
    border-radius: var(--RadiusPill);
    color: #059bfa;
    display: flex;
    flex-shrink: 0;
    font-size: var(--FontSizeBody);
    height: 35px;
    justify-content: center;
    width: 35px;
}

/* Formats the toast text column. */
.ToastContent {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Formats the toast notification title. */
.ToastTitle {
    color: var(--ColorTextLight);
    font-size: var(--FontSizeSmall);
    font-weight: 600;
}

/* Formats the toast notification message. */
.ToastMessage {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeMicro);
    line-height: 1.40;
}

/* Adapts layout for medium viewport widths. */
@media (max-width: 990px) {
    .BlogHeroHeading {
        font-size: var(--FontSizeTitleLarge);
    }
}

/* Adapts layout for compact mobile screens. */
@media (max-width: 650px) {
    .BlogHeroSection {
        padding: 40px 15px 15px;
    }

    .BlogHeroHeading {
        font-size: var(--FontSizeTitleSmall);
    }

    .BlogHeroSubtitle {
        margin-bottom: 15px;
    }

    .BlogFeedSection {
        padding: 10px 15px 50px;
    }

    .BlogFeedGrid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .BlogCard {
        border-radius: var(--RadiusLarge);
        width: 100%;
    }

    .BlogCardTopBar {
        padding: 15px 15px 0;
    }

    .BlogThumbnailWrapper {
        margin: 10px 15px 0;
    }

    .BlogContentWrapper {
        padding: 20px 15px;
    }

    .ToastNotification {
        bottom: 15px;
        left: 15px;
        max-width: 100%;
        right: 15px;
    }
}

/* Adapts typography for narrow phone screens. */
@media (max-width: 480px) {
    .BlogHeroHeading {
        font-size: var(--FontSizeMedium);
    }
}


