/* =========================================================
   TOECANDY BLOG SYSTEM
   Premium Dark Editorial / SEO Blog
   ========================================================= */

:root {
    --blog-bg: #050505;
    --blog-surface: #0b0b0b;
    --blog-surface-2: #111111;
    --blog-text: #ffffff;
    --blog-muted: rgba(255,255,255,.65);
    --blog-muted-2: rgba(255,255,255,.45);
    --blog-border: rgba(255,255,255,.10);
    --blog-neon: #39FF14;
}

/* =========================================================
   MAIN BLOG WRAPPER
   ========================================================= */

.blog-page {
    min-height: 100vh;
    background: var(--blog-bg) !important;
    color: var(--blog-text) !important;
    overflow: hidden;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
   ========================================================= */

.blog-hero {
    position: relative;
    padding: 170px 20px 90px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(57,255,20,.10),
            transparent 42%
        ),
        #050505;
}

.blog-hero-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--blog-neon) !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 1050px;
    margin: 0 auto 24px;
    color: #fff !important;
    font-size: clamp(42px, 7vw, 88px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.055em;
}

.blog-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.65) !important;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

/* =========================================================
   META
   ========================================================= */

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
    margin-top: 30px;
    color: rgba(255,255,255,.48);
    font-size: 13px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta strong {
    color: #fff;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.blog-breadcrumb {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0;
    color: rgba(255,255,255,.45);
    font-size: 12px;
}

.blog-breadcrumb a {
    color: rgba(255,255,255,.55) !important;
    text-decoration: none;
    transition: color .25s ease;
}

.blog-breadcrumb a:hover {
    color: var(--blog-neon) !important;
}

.blog-breadcrumb span {
    color: rgba(255,255,255,.30);
}

/* =========================================================
   ARTICLE SHELL
   ========================================================= */

.blog-article {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 100px;
}

.blog-featured-image {
    width: 100%;
    margin-bottom: 55px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 28px;
    background: #0b0b0b;
    box-shadow:
        0 30px 100px rgba(0,0,0,.45);
}

.blog-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
}

/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.blog-content {
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.85;
}

.blog-content > *:first-child {
    margin-top: 0;
}

.blog-content p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.72) !important;
    font-size: 18px;
    line-height: 1.85;
}

.blog-content .blog-intro {
    margin-bottom: 50px;
    color: rgba(255,255,255,.86) !important;
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.75;
    font-weight: 500;
}

.blog-content h2 {
    margin: 0 0 20px;
    color: #fff !important;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.blog-content h3 {
    margin: 35px 0 15px;
    color: #fff !important;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.025em;
}

.blog-content h4 {
    margin: 28px 0 12px;
    color: #fff !important;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
}

.blog-content strong {
    color: #fff;
    font-weight: 800;
}

.blog-content em {
    color: rgba(255,255,255,.88);
}

.blog-content a {
    color: var(--blog-neon) !important;
    text-decoration: underline;
    text-decoration-color: rgba(57,255,20,.35);
    text-underline-offset: 4px;
}

.blog-content a:hover {
    text-decoration-color: var(--blog-neon);
}

.blog-content ul,
.blog-content ol {
    margin: 20px 0 30px;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: rgba(255,255,255,.70);
}

.blog-content ul li::marker {
    color: var(--blog-neon);
}

.blog-content ol li::marker {
    color: var(--blog-neon);
    font-weight: 800;
}

/* =========================================================
   BLOG SECTIONS
   ========================================================= */

.blog-section {
    padding: 30px 0 55px;
}

.blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.blog-section-heading h2 {
    margin: 0;
}

.blog-section-heading p {
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.52) !important;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   CHECKLIST / FEATURE BOXES
   ========================================================= */

.blog-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    border-left: 3px solid var(--blog-neon);
    border-radius: 0 16px 16px 0;
    background: rgba(57,255,20,.045);
    color: rgba(255,255,255,.80);
}

.blog-content hr {
    height: 1px;
    margin: 55px 0;
    border: 0;
    background: rgba(255,255,255,.10);
}

/* =========================================================
   TABLES
   ========================================================= */

.blog-content table {
    width: 100%;
    margin: 30px 0 40px;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    background: #0a0a0a;
    font-size: 15px;
}

.blog-content th {
    padding: 16px;
    border-bottom: 1px solid var(--blog-border);
    background: #111;
    color: var(--blog-neon);
    text-align: left;
    font-weight: 800;
}

.blog-content td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.68);
}

.blog-content tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   INLINE CODE / CODE
   ========================================================= */

.blog-content code {
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: var(--blog-neon);
    font-family: monospace;
    font-size: .9em;
}

.blog-content pre {
    margin: 30px 0;
    padding: 22px;
    overflow-x: auto;
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    background: #090909;
}

.blog-content pre code {
    padding: 0;
    background: transparent;
}

/* =========================================================
   FAQ
   ========================================================= */

.blog-faq {
    margin: 70px 0 30px;
    padding: 40px;
    border: 1px solid var(--blog-border);
    border-radius: 26px;
    background: #0a0a0a;
}

.blog-faq h2 {
    margin-bottom: 28px;
    color: #fff !important;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.blog-faq details {
    border-top: 1px solid rgba(255,255,255,.09);
}

.blog-faq details:first-of-type {
    border-top: 0;
}

.blog-faq summary {
    position: relative;
    padding: 22px 35px 22px 0;
    color: #fff;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 750;
}

.blog-faq summary::-webkit-details-marker {
    display: none;
}

.blog-faq summary::after {
    content: "+";
    position: absolute;
    top: 18px;
    right: 0;
    color: var(--blog-neon);
    font-size: 25px;
    font-weight: 400;
}

.blog-faq details[open] summary::after {
    content: "−";
}

.blog-faq details p {
    max-width: 800px;
    margin: 0;
    padding: 0 0 22px;
    color: rgba(255,255,255,.58) !important;
    font-size: 15px;
    line-height: 1.75;
}

/* =========================================================
   CTA
   ========================================================= */

.blog-cta {
    position: relative;
    margin: 60px 0 80px;
    padding: 65px 35px;
    overflow: hidden;
    border: 1px solid rgba(57,255,20,.20);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(57,255,20,.12),
            transparent 50%
        ),
        #0a0a0a;
    text-align: center;
}

.blog-cta h2 {
    margin: 0 0 15px;
    color: #fff !important;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.blog-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.58) !important;
    line-height: 1.7;
}

.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.blog-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--blog-neon);
    border-radius: 999px;
    background: var(--blog-neon);
    color: #050505 !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.blog-cta a:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 35px rgba(57,255,20,.18);
}

/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.blog-related {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 110px;
}

.blog-related-inner {
    width: 100%;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.blog-related-card,
.blog-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #0b0b0b;
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.blog-related-card:hover,
.blog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(57,255,20,.35);
    box-shadow: 0 20px 60px rgba(0,0,0,.40);
}

.blog-related-card img,
.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-related-card img {
    aspect-ratio: 16 / 10;
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.blog-card-image img {
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-related-card-content,
.blog-card-content {
    padding: 24px;
}

.blog-related-card h3,
.blog-card h3 {
    margin: 0 0 12px;
    color: #fff !important;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.blog-related-card p,
.blog-card p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.55) !important;
    font-size: 14px;
    line-height: 1.7;
}

.blog-card-category {
    margin-bottom: 12px;
    color: var(--blog-neon) !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.blog-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: color .25s ease;
}

.blog-read:hover {
    color: var(--blog-neon) !important;
}

/* =========================================================
   GLOBAL ARTICLE TAILWIND OVERRIDES
   ========================================================= */

.blog-page .text-neon {
    color: var(--blog-neon) !important;
}

.blog-page .bg-neon {
    background-color: var(--blog-neon) !important;
}

.blog-page .border-neon {
    border-color: var(--blog-neon) !important;
}

.blog-page .text-white {
    color: #fff !important;
}

.blog-page .text-black {
    color: #050505 !important;
}

.blog-page .bg-black {
    background-color: #050505 !important;
}

.blog-page .hover\:text-neon:hover {
    color: var(--blog-neon) !important;
}

.blog-page .hover\:border-neon:hover {
    border-color: var(--blog-neon) !important;
}

.blog-page .hover\:bg-neon:hover {
    background-color: var(--blog-neon) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .blog-hero {
        padding-top: 145px;
    }

    .blog-section-heading {
        display: block;
    }

    .blog-section-heading p {
        margin-top: 15px;
    }

    .blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .blog-hero {
        padding: 125px 18px 65px;
    }

    .blog-hero h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-meta {
        gap: 8px 12px;
        font-size: 12px;
    }

    .blog-breadcrumb {
        width: min(100% - 28px, 1200px);
        font-size: 11px;
    }

    .blog-article {
        width: min(100% - 28px, 920px);
        padding-top: 25px;
    }

    .blog-featured-image {
        margin-bottom: 35px;
        border-radius: 20px;
    }

    .blog-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .blog-content p {
        font-size: 16px;
    }

    .blog-content .blog-intro {
        font-size: 18px;
    }

    .blog-section {
        padding: 20px 0 35px;
    }

    .blog-faq {
        margin-top: 45px;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .blog-faq summary {
        font-size: 15px;
    }

    .blog-cta {
        margin: 40px 0 55px;
        padding: 45px 20px;
        border-radius: 22px;
    }

    .blog-cta-actions {
        flex-direction: column;
    }

    .blog-cta a {
        width: 100%;
    }

    .blog-related {
        width: min(100% - 28px, 1200px);
        padding-bottom: 70px;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-related-card-content,
    .blog-card-content {
        padding: 20px;
    }
}

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-card,
    .blog-related-card,
    .blog-card-image img,
    .blog-cta a,
    .blog-read {
        transition: none !important;
    }
}

/* =========================================================
   IMAGE SAFETY
   ========================================================= */

.blog-page img {
    max-width: 100%;
}

.blog-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 18px;
}

/* =========================================================
   SELECTION
   ========================================================= */

.blog-page ::selection {
    background: var(--blog-neon);
    color: #050505;
}
