/* ============================================
   BLOG & CONTENT PAGE STYLES
   For: /blog/, /guides/, /for/, /compare/, /use-cases/, /integrations/
   ============================================ */

/* --- Layout --- */
.blog-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.guide-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--vibrant-cyan);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs a:hover {
    color: var(--electric-cyan);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* --- Article Header --- */
.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--vibrant-cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-summary {
    font-size: 1.15rem;
    color: var(--light-grey);
    line-height: 1.7;
    border-left: 3px solid var(--vibrant-cyan);
    padding-left: 1.25rem;
}

/* --- Table of Contents (guides) --- */
.toc {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.toc h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vibrant-cyan);
    margin-bottom: 1rem;
}

.toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--vibrant-cyan);
}

/* --- Article Body --- */
.article-body {
    line-height: 1.8;
    color: var(--light-grey);
    font-size: 1rem;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cyan-glass-border);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body a {
    color: var(--vibrant-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.article-body a:hover {
    color: var(--electric-cyan);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
}

.article-body blockquote {
    border-left: 3px solid var(--purple);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--glass-fill);
    color: var(--light-grey);
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.925rem;
}

.article-body th,
.article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--glass-border);
}

.article-body th {
    background: var(--glass-fill);
    color: var(--vibrant-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.article-body code {
    background: rgba(0, 229, 255, 0.08);
    padding: 0.15rem 0.4rem;
    font-size: 0.9em;
    color: var(--electric-cyan);
    font-family: 'Courier New', monospace;
}

.article-body pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--light-grey);
}

/* --- CTA Section --- */
.article-cta {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(167, 139, 250, 0.08));
    border: 1px solid var(--cyan-glass-border-strong);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.article-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: var(--light-grey);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #00E5FF, #A78BFA);
    color: #0d1b2a;
}

.article-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.article-cta .trust-signal {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Related Articles --- */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.related-articles h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
    display: block;
}

.related-card:hover {
    border-color: var(--cyan-glass-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

.related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- Role Page Hero --- */
.role-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.role-hero .role-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.role-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--vibrant-cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-hero p {
    font-size: 1.2rem;
    color: var(--light-grey);
    max-width: 650px;
    margin: 0 auto;
}

/* --- Pain Points Grid --- */
.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pain-point {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    transition: all 0.15s ease;
}

.pain-point:hover {
    border-color: var(--cyan-glass-border-strong);
}

.pain-point h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vibrant-cyan);
    margin-bottom: 0.75rem;
}

.pain-point p {
    color: var(--light-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Blog Index --- */
.blog-index-section {
    margin-bottom: 3rem;
}

.blog-index-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vibrant-cyan);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cyan-glass-border);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-list-item {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-list-item:hover {
    border-color: var(--cyan-glass-border-strong);
    transform: translateX(4px);
}

.blog-list-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.blog-list-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Footer --- */
footer {
    background: rgba(13, 27, 42, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vibrant-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-section a:hover {
    color: var(--vibrant-cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Header (duplicated from about pattern for content pages) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--cyan-glass-border);
    transition: transform 0.15s linear;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .blog-main,
    .guide-main {
        padding: 6rem 1.25rem 3rem;
    }

    .article-header h1,
    .role-hero h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-cta {
        padding: 1.5rem;
    }

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

    .pain-points {
        grid-template-columns: 1fr;
    }

    .toc {
        padding: 1rem 1.25rem;
    }
}
