/* ===== CONEXÃO STACK - BLOG PREMIUM ===== */

:root {
    --cs-bg: #070b10;
    --cs-card: #0f172a;
    --cs-card-2: #111827;
    --cs-text: #f8fafc;
    --cs-muted: #94a3b8;
    --cs-green: #2BB673;
    --cs-green-dark: #1f9c5f;
    --cs-border: rgba(255,255,255,0.08);
}

/* BASE */

body {
    background: var(--cs-bg);
    color: var(--cs-text);
}

.outer {
    padding-left: 20px;
    padding-right: 20px;
}

.inner {
    max-width: 1040px;
}

/* HEADER */

.gh-head {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 60px !important;
    background: rgba(7, 11, 16, 0.88) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cs-border);
    transition: all 0.25s ease;
}

body.scrolled .gh-head {
    height: 54px !important;
    background: rgba(7, 11, 16, 0.95) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gh-head-logo,
.gh-head-menu a {
    color: var(--cs-text) !important;
}

.gh-head-brand img {
    max-height: 30px;
}

.gh-head-menu .nav {
    gap: 22px;
}

.gh-head-menu a {
    position: relative;
    font-size: 14px;
    transition: color 0.2s ease;
}

.gh-head-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--cs-green);
    transition: width 0.25s ease;
}

.gh-head-menu a:hover {
    color: #ffffff !important;
}

.gh-head-menu a:hover::after {
    width: 100%;
}

.gh-search {
    color: var(--cs-text);
}

/* HERO */

.cs-hero-premium {
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 75% 35%, rgba(43,182,115,0.22), transparent 28%),
        linear-gradient(90deg, rgba(7,11,16,0.96) 0%, rgba(7,11,16,0.86) 48%, rgba(7,11,16,0.50) 100%),
        url('https://blog.conexaostack.com.br/content/images/2026/04/01-3.png') center/cover no-repeat;
    border-bottom: 1px solid var(--cs-border);
}

.cs-hero-inner {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 72px 20px 56px;
}

.cs-hero-text {
    max-width: 520px;
}

.cs-hero-text h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -1.4px;
    color: var(--cs-text);
}

.cs-hero-text h1 span {
    color: var(--cs-green);
}

.cs-hero-text p {
    max-width: 460px;
    margin-top: 16px;
    color: var(--cs-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.cs-hero-buttons {
    margin-top: 24px;
}

/* BUTTONS */

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 17px;
    border-radius: 8px;
    margin-right: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-btn-primary {
    background: linear-gradient(135deg, var(--cs-green), var(--cs-green-dark));
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(43,182,115,0.45);
}

.cs-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px rgba(43,182,115,0.55);
}

.cs-btn-secondary {
    border: 1px solid rgba(43,182,115,0.65);
    color: var(--cs-green) !important;
    background: rgba(43,182,115,0.08);
}

.cs-btn-secondary:hover {
    background: var(--cs-green);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* MAIN */

.cs-home-main {
    padding-top: 36px;
}

.cs-section {
    margin-top: 28px;
}

.cs-section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.cs-section-title h2,
.cs-categories h2 {
    margin: 0;
    color: var(--cs-text);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.cs-section-title a {
    color: var(--cs-green) !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

/* POSTS */

.cs-post-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
}

.cs-card {
    position: relative;
    grid-column: span 1 !important;
    background: linear-gradient(180deg, #111827, #0b1220) !important;
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cs-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(43,182,115,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43,182,115,0.38);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.cs-card:hover::before {
    opacity: 1;
}

.cs-card-image-link {
    display: block;
    height: 110px;
    overflow: hidden;
}

.cs-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.cs-card-content {
    padding: 13px;
}

.cs-card-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(43,182,115,0.16);
    color: var(--cs-green) !important;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.cs-card-title-link {
    text-decoration: none;
}

.cs-card-title {
    margin: 0;
    color: var(--cs-text);
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.cs-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--cs-muted);
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cs-card-meta {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11.5px;
}

/* CATEGORIAS */

.cs-categories h2 {
    margin-bottom: 14px;
}

.cs-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.cs-category-grid a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px;
    transition: .2s ease;
}

.cs-category-grid a:hover {
    border-color: rgba(43,182,115,0.5);
    color: var(--cs-green) !important;
    transform: translateY(-2px);
}

/* CTA */

.cs-whatsapp-cta {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 18px 20px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(circle at right, rgba(43,182,115,0.28), transparent 35%),
        linear-gradient(90deg, #0f172a, #052e25);
    border: 1px solid rgba(43,182,115,0.2);
}

.cs-whatsapp-cta::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    background: rgba(43,182,115,0.15);
    filter: blur(40px);
    pointer-events: none;
}

.cs-whatsapp-cta h2 {
    margin: 0;
    color: var(--cs-text);
    font-size: 18px;
    line-height: 1.2;
}

.cs-whatsapp-cta p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.cs-whatsapp-cta .cs-btn {
    position: relative;
    z-index: 2;
}

/* FOOTER */

.site-footer {
    margin-top: 52px !important;
    padding-top: 34px !important;
    padding-bottom: 48px !important;
    background: #020617 !important;
    border-top: 1px solid var(--cs-border);
}

/* TAG PAGE */

.tag-template .site-header,
.tag-template .site-header-content,
.tag-template .site-header-cover {
    display: none !important;
}

.tag-template .gh-head-logo {
    display: none !important;
}

.tag-template .gh-head-inner {
    grid-template-columns: 1fr auto !important;
}

.tag-template .gh-head-brand {
    display: none !important;
}

.tag-template .gh-head-menu {
    margin-left: 0 !important;
}

.tag-template .gh-head-actions {
    justify-content: flex-end;
}

.cs-tag-main {
    padding-top: 72px !important;
}

.cs-tag-main .inner {
    max-width: 1040px !important;
}

.cs-tag-hero {
    margin-bottom: 30px;
    padding: 34px 28px;
    border-radius: 18px;
    background:
        radial-gradient(circle at right, rgba(43,182,115,0.24), transparent 36%),
        linear-gradient(90deg, #0f172a, #07111c);
    border: 1px solid rgba(255,255,255,0.08);
}

.cs-tag-hero span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cs-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-tag-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.1;
}

.cs-tag-hero p {
    max-width: 600px;
    margin-top: 10px;
    color: var(--cs-muted);
    font-size: 14px;
}

.cs-tag-main .cs-section {
    margin-top: 0 !important;
}

.cs-tag-main .cs-section-title {
    margin-bottom: 20px;
}

.cs-tag-main .cs-post-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.cs-tag-main .cs-card {
    width: 100%;
    max-width: none;
}

.cs-tag-main .cs-card-image-link {
    height: 120px;
}

/* PÁGINAS */

.cs-page-main {
    padding-top: 90px;
}

.cs-page-hero {
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 16px;
    background:
        radial-gradient(circle at right, rgba(43,182,115,0.24), transparent 35%),
        linear-gradient(90deg, #0f172a, #07111c);
    border: 1px solid rgba(255,255,255,0.08);
}

.cs-page-hero span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cs-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cs-page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
}

.cs-page-content {
    background: #0f172a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    line-height: 1.7;
}

.page-template .gh-head-logo {
    display: none !important;
}

.page-template .gh-head-inner {
    grid-template-columns: 1fr auto !important;
}

.page-template .gh-head-brand {
    display: none !important;
}

.page-template .gh-head-menu {
    margin-left: 0 !important;
}

.page-template .gh-head-actions {
    justify-content: flex-end;
}

/* MOBILE */

@media (max-width: 1000px) {
    .cs-post-grid,
    .cs-tag-main .cs-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cs-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .outer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gh-head {
        height: 58px !important;
    }

    .cs-hero-premium {
        min-height: 480px;
        background:
            linear-gradient(180deg, rgba(7,11,16,0.92), rgba(7,11,16,0.96)),
            url('https://blog.conexaostack.com.br/content/images/2026/04/01-3.png') center/cover no-repeat;
    }

    .cs-hero-inner {
        padding: 48px 20px 40px;
    }

    .cs-hero-text {
        max-width: 100%;
    }

    .cs-hero-text h1 {
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }

    .cs-hero-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .cs-hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cs-btn {
        width: 100%;
        margin-right: 0;
    }

    .cs-section-title,
    .cs-whatsapp-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-post-grid,
    .cs-tag-main .cs-post-grid,
    .cs-category-grid {
        grid-template-columns: 1fr !important;
    }

    .cs-card-image-link,
    .cs-tag-main .cs-card-image-link {
        height: 170px;
    }

    .cs-tag-main,
    .cs-page-main {
        padding-top: 48px !important;
    }

    .cs-tag-hero,
    .cs-page-hero,
    .cs-page-content {
        padding: 22px;
    }

    .cs-tag-hero h1,
    .cs-page-hero h1 {
        font-size: 26px;
    }
}

/* ===== CTA DENTRO DO POST ===== */

.cs-post-cta {
    margin-top: 40px;
    padding: 26px;
    border-radius: 16px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(43,182,115,0.2), transparent 40%),
        linear-gradient(90deg, #0f172a, #052e25);
    border: 1px solid rgba(43,182,115,0.2);
}

.cs-post-cta h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
}

.cs-post-cta p {
    margin-top: 10px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.cs-post-cta .cs-btn {
    margin-top: 14px;
}

/* ===== POSTS - MENU IGUAL HOME/TAGS/PAGES ===== */

.post-template .gh-head-logo {
    display: none !important;
}

.post-template .gh-head-inner {
    grid-template-columns: 1fr auto !important;
}

.post-template .gh-head-brand {
    display: none !important;
}

.post-template .gh-head-menu {
    margin-left: 0 !important;
}

.post-template .gh-head-actions {
    justify-content: flex-end;
}

/* ===== AUTOR - MENU IGUAL HOME/TAGS/PAGES/POSTS ===== */

.author-template .gh-head-logo {
    display: none !important;
}

.author-template .gh-head-inner {
    grid-template-columns: 1fr auto !important;
}

.author-template .gh-head-brand {
    display: none !important;
}

.author-template .gh-head-menu {
    margin-left: 0 !important;
}

.author-template .gh-head-actions {
    justify-content: flex-end;
}

.author-template .site-header,
.author-template .site-header-content,
.author-template .site-header-cover {
    display: none !important;
}

/* ===== FOOTER CUSTOM ===== */

.cs-footer-custom {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    color: #94a3b8;
    font-size: 13px;
}

.cs-footer-custom strong {
    color: #ffffff;
}

.cs-footer-custom p {
    margin: 8px 0 0;
    line-height: 1.5;
}

.cs-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-footer-links a {
    color: #cbd5e1 !important;
    text-decoration: none;
}

.cs-footer-links a:hover {
    color: var(--cs-green) !important;
}

.cs-footer-dev {
    text-align: right;
}

@media (max-width: 700px) {
    .cs-footer-custom {
        grid-template-columns: 1fr;
    }

    .cs-footer-dev {
        text-align: left;
    }
}

/* ===== POST CONTENT DARK FIX ===== */

.post-template .article-title {
    color: #ffffff !important;
}

.post-template .article-excerpt,
.post-template .article-byline,
.post-template .article-byline a,
.post-template .byline-meta-content,
.post-template .gh-content,
.post-template .gh-content p,
.post-template .gh-content li {
    color: #cbd5e1 !important;
}

.post-template .gh-content h2,
.post-template .gh-content h3,
.post-template .gh-content h4 {
    color: #ffffff !important;
}

.post-template .gh-content a {
    color: var(--cs-green) !important;
}

.post-template .gh-content strong {
    color: #ffffff;
}

.post-template .article {
    background: var(--cs-bg);
}
