/* ================================================
   single-blog.css — Blog Detail Page
   Article body + sidebar + related + help CTA
   Reuses blog.css for .bl-card classes
   ================================================ */


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

.sb-hero {
    position: relative;
    padding: 140px 0 50px;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

.sb-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,239,23,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,239,23,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 80%);
    z-index: -1;
}

.sb-hero .container {
    max-width: 920px;
    position: relative;
    z-index: 1;
}

.sb-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 24px;
}
.sb-cat-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(196,239,23,.08);
    border: 1px solid rgba(196,239,23,.3);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #C4EF17;
    text-transform: uppercase;
}
.sb-hero-meta .mono {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

.sb-hero-title {
    font-family: 'Marcellus', serif;
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 28px;
    font-weight: 400;
}
.sb-hero-title .skew-in { display: block; }
.sb-hero-title em {
    display: block;
    color: #C4EF17;
    font-style: normal;
}

.sb-hero-excerpt {
    font-size: clamp(16px, 1.3vw, 19px);
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    margin-bottom: 40px;
    font-weight: 300;
}

.sb-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sb-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sb-author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(196,239,23,.25);
}
.sb-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-author-info strong {
    display: block;
    font-family: 'Marcellus', serif;
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 2px;
}
.sb-author-info .mono {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.4);
}

.sb-share {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sb-share .mono {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    margin-right: 4px;
}
.sb-share a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    color: rgba(255,255,255,.55);
    transition: all .25s ease;
    text-decoration: none;
}
.sb-share a:hover {
    border-color: #C4EF17;
    color: #C4EF17;
    background: rgba(196,239,23,.06);
    transform: translateY(-2px);
}


/* ========================================
   FEATURE IMAGE
========================================= */

.sb-feature {
    padding: 24px 0 60px;
}
.sb-feature .container {
    max-width: 1280px;
}
.sb-feature-img {
    width: 100%;
    height: clamp(280px, 50vw, 540px);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.sb-feature-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}


/* ========================================
   ARTICLE LAYOUT
========================================= */

.sb-article-section {
    padding: 40px 0 100px;
}

.sb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    align-items: start;
}

.sb-main {
    min-width: 0;
}


/* ========================================
   ARTICLE BODY TYPOGRAPHY
========================================= */

.sb-content {
    max-width: 720px;
}

.sb-content p,
.sb-content ul,
.sb-content ol,
.sb-content blockquote {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: rgba(255,255,255,.78);
    line-height: 1.85;
    margin-bottom: 24px;
}

.sb-content .sb-lead {
    font-size: 20px;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}

.sb-content h2 {
    font-family: 'Marcellus', serif;
    font-size: clamp(26px, 2.8vw, 36px);
    color: #fff;
    line-height: 1.2;
    margin: 56px 0 20px;
    font-weight: 400;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 20px;
}
.sb-content h2::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 4px; height: calc(100% - 24px);
    background: #C4EF17;
    border-radius: 2px;
}

.sb-content h3 {
    font-family: 'Marcellus', serif;
    font-size: clamp(20px, 2vw, 24px);
    color: #fff;
    line-height: 1.3;
    margin: 40px 0 16px;
    font-weight: 400;
}

.sb-content ul,
.sb-content ol {
    padding-left: 24px;
}
.sb-content li {
    margin-bottom: 10px;
    padding-left: 8px;
}
.sb-content ul li::marker {
    color: #C4EF17;
}
.sb-content ol li::marker {
    color: #C4EF17;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.sb-content blockquote {
    margin: 32px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(196,239,23,.05) 0%, rgba(255,255,255,.01) 100%);
    border-left: 3px solid #C4EF17;
    border-radius: 0 4px 4px 0;
    position: relative;
}
.sb-content blockquote::before {
    content: '"';
    position: absolute;
    top: 14px; right: 28px;
    font-family: 'Marcellus', serif;
    font-size: 64px;
    line-height: 1;
    color: rgba(196,239,23,.2);
}
.sb-content blockquote p {
    font-family: 'Marcellus', serif;
    font-size: 19px;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
}

.sb-content strong {
    color: #fff;
    font-weight: 600;
}

.sb-content a {
    color: #C4EF17;
    text-decoration: underline;
    text-decoration-color: rgba(196,239,23,.3);
    transition: text-decoration-color .2s;
}
.sb-content a:hover {
    text-decoration-color: #C4EF17;
}


/* ========================================
   TAGS ROW
========================================= */

.sb-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sb-tags-label {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    margin-right: 8px;
}
.sb-tag-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all .2s ease;
}
.sb-tag-pill:hover {
    border-color: #C4EF17;
    color: #C4EF17;
    background: rgba(196,239,23,.06);
}


/* ========================================
   BOTTOM SHARE
========================================= */

.sb-bottom-share {
    margin: 40px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(196,239,23,.04) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(196,239,23,.15);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.sb-bottom-share h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #C4EF17;
    letter-spacing: 1.5px;
    margin: 0;
}
.sb-share-row {
    display: flex;
    gap: 10px;
}
.sb-share-row a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    color: rgba(255,255,255,.6);
    transition: all .25s ease;
    text-decoration: none;
}
.sb-share-row a:hover {
    background: #C4EF17;
    border-color: #C4EF17;
    color: #000;
    transform: translateY(-2px);
}


/* ========================================
   AUTHOR CARD
========================================= */

.sb-author-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: center;
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-left: 3px solid #C4EF17;
    border-radius: 4px;
}
.sb-author-card-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(196,239,23,.3);
}
.sb-author-card-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.sb-author-card-body { min-width: 0; }
.sb-author-card-label {
    display: block;
    font-size: 10px;
    color: #C4EF17;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.sb-author-card-body h4 {
    font-family: 'Marcellus', serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 400;
}
.sb-author-card-role {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}
.sb-author-card-body p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 14px;
}

.sb-author-card-links {
    display: flex;
    gap: 8px;
}
.sb-author-card-links a {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,239,23,.08);
    border: 1px solid rgba(196,239,23,.25);
    border-radius: 50%;
    color: #C4EF17;
    transition: all .2s ease;
    text-decoration: none;
}
.sb-author-card-links a:hover {
    background: #C4EF17;
    color: #000;
}


/* ========================================
   PREV / NEXT NAV
========================================= */

.sb-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.sb-pn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    transition: all .25s ease;
    text-decoration: none;
    min-width: 0;
}
.sb-pn:hover {
    border-color: rgba(196,239,23,.3);
    background: #0e0e0e;
    transform: translateY(-2px);
}
.sb-pn .mono {
    font-size: 10px;
    color: #C4EF17;
}
.sb-pn strong {
    font-family: 'Marcellus', serif;
    font-size: 15px;
    color: #fff;
    line-height: 1.4;
    font-weight: 400;
}
.sb-pn-next { text-align: right; }


/* ========================================
   SIDEBAR
========================================= */

.sb-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sb-widget {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.sb-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,239,23,.3), transparent);
}

.sb-widget-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(255,255,255,.1);
    font-family: 'Marcellus', serif;
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}
.sb-widget-title .mono {
    font-size: 10px;
    color: rgba(196,239,23,.7);
}

/* Search widget */
.sb-search {
    display: flex;
    gap: 8px;
}
.sb-search input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
    min-width: 0;
}
.sb-search input:focus { border-color: rgba(196,239,23,.4); }
.sb-search input::placeholder { color: rgba(255,255,255,.3); }
.sb-search button {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C4EF17;
    border: none;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
    transition: background .2s;
}
.sb-search button:hover { background: #fff; }

/* Category list */
.sb-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sb-cat-list li { border-bottom: 1px dashed rgba(255,255,255,.06); }
.sb-cat-list li:last-child { border-bottom: none; }
.sb-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    transition: color .2s, padding .2s;
    text-decoration: none;
}
.sb-cat-list a:hover {
    color: #C4EF17;
    padding-left: 6px;
}
.sb-cat-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(196,239,23,.7);
    background: rgba(196,239,23,.06);
    padding: 2px 8px;
    border-radius: 100px;
    transition: background .2s;
}
.sb-cat-list a:hover .sb-cat-count {
    background: rgba(196,239,23,.15);
}

/* Recent posts */
.sb-recent {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sb-recent-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    transition: transform .25s ease;
}
.sb-recent-item:hover { transform: translateX(4px); }
.sb-recent-img {
    width: 72px; height: 60px;
    border-radius: 3px;
    overflow: hidden;
    background: #000;
}
.sb-recent-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(.85);
    transition: filter .35s;
}
.sb-recent-item:hover .sb-recent-img img {
    filter: grayscale(0) brightness(1);
}
.sb-recent-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sb-recent-body .mono {
    font-size: 9px;
    color: rgba(196,239,23,.7);
}
.sb-recent-body strong {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.sb-recent-item:hover .sb-recent-body strong { color: #C4EF17; }

/* Contact form widget */
.sb-widget-form {
    background: linear-gradient(180deg, rgba(196,239,23,.04) 0%, rgba(0,0,0,0) 50%, #0a0a0a 100%);
    border: 1px solid rgba(196,239,23,.2);
}
.sb-widget-sub {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin-bottom: 16px;
}
.sb-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sb-form input,
.sb-form textarea {
    padding: 10px 14px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
    resize: vertical;
}
.sb-form input:focus,
.sb-form textarea:focus {
    border-color: rgba(196,239,23,.4);
}
.sb-form input::placeholder,
.sb-form textarea::placeholder { color: rgba(255,255,255,.3); }

.sb-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #C4EF17;
    color: #000;
    border: none;
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease;
    margin-top: 4px;
}
.sb-form-btn:hover {
    background: #fff;
    gap: 12px;
}
.sb-form-btn svg { transition: transform .2s; }
.sb-form-btn:hover svg { transform: translate(2px, -2px); }


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

.sb-related {
    padding: 80px 0 100px;
    background: #050505;
    position: relative;
}
.sb-related::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; max-width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(196,239,23,.3) 50%, transparent 100%);
}

.sb-related-head {
    text-align: center;
    margin-bottom: 56px;
}
.sb-related-head h2 { margin-top: 10px; }

.sb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* ========================================
   HOW CAN WE HELP CTA
========================================= */

.sb-help-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.sb-help-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.sb-help-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,239,23,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,239,23,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.sb-help-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(196,239,23,.16) 0%, transparent 65%);
    filter: blur(40px);
    animation: helpGlow 8s ease-in-out infinite;
}
@keyframes helpGlow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: .8; transform: translate(-50%, -50%) scale(1.08); }
}

.sb-help-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.sb-help-inner > .sec-tag {
    display: inline-block;
    margin-bottom: 18px;
}

.sb-help-title {
    font-family: 'Marcellus', serif;
    font-size: clamp(36px, 5vw, 64px);
    color: #fff;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 22px;
    font-weight: 400;
}
.sb-help-title .skew-in { display: block; }
.sb-help-title em {
    display: block;
    color: #C4EF17;
    font-style: normal;
}

.sb-help-inner > p {
    font-size: 16px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin-bottom: 40px;
}

.sb-help-form {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid rgba(196,239,23,.2);
    border-radius: 6px;
    padding: 32px;
    text-align: left;
}

.sb-help-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.sb-help-form input,
.sb-help-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 3px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    resize: vertical;
}
.sb-help-form input:focus,
.sb-help-form textarea:focus { border-color: rgba(196,239,23,.4); }
.sb-help-form input::placeholder,
.sb-help-form textarea::placeholder { color: rgba(255,255,255,.3); }

.sb-help-form textarea { margin-bottom: 16px; }

.sb-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #C4EF17;
    color: #000;
    border: none;
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
}
.sb-help-btn:hover {
    background: #fff;
    gap: 14px;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,239,23,.2);
}
.sb-help-btn svg { transition: transform .2s; }
.sb-help-btn:hover svg { transform: translate(3px, -3px); }


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

@media (max-width: 1100px) {
    .sb-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .sb-sidebar {
        position: static;
    }
    .sb-related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sb-help-row {
        grid-template-columns: 1fr 1fr;
    }
    .sb-help-row input:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .sb-hero { padding: 120px 0 40px; }
    .sb-author-row { flex-direction: column; align-items: flex-start; gap: 16px; }

    .sb-content p,
    .sb-content ul,
    .sb-content ol { font-size: 15px; }
    .sb-content .sb-lead { font-size: 17px; }
    .sb-content blockquote { padding: 22px 24px; margin: 24px 0; }
    .sb-content blockquote p { font-size: 16px; }

    .sb-bottom-share { flex-direction: column; align-items: flex-start; padding: 22px 24px; }

    .sb-author-card { grid-template-columns: 1fr; text-align: center; gap: 16px; padding: 24px; }
    .sb-author-card-avatar { width: 96px; height: 96px; margin: 0 auto; }
    .sb-author-card-links { justify-content: center; }

    .sb-prevnext { grid-template-columns: 1fr; }
    .sb-pn-next { text-align: left; }

    .sb-related { padding: 60px 0 80px; }
    .sb-related-grid { grid-template-columns: 1fr; }

    .sb-help-cta { padding: 80px 0; }
    .sb-help-form { padding: 24px 20px; }
    .sb-help-row { grid-template-columns: 1fr; }
    .sb-help-row input:nth-child(3) { grid-column: auto; }
}