/* CSS Variables - Design System matching main site */
:root {
    --color-primary: #0A192F;      /* Navy Blue Profundo */
    --color-secondary: #172A45;    /* Navy Blue Médio */
    --color-text-main: #334155;    /* Grafite */
    --color-text-dark: #0F172A;    /* Grafite Escuro */
    --color-text-muted: #64748B;   /* Grafite Claro */
    --color-accent: #6366F1;       /* Indigo */
    --color-accent-violet: #8B5CF6;/* Violet */
    --color-bg-light: #F8FAFC;     /* Fundo Secundário */
    --color-bg-white: #FFFFFF;     /* Fundo Principal */
    --color-border: #E2E8F0;       /* Cor de Borda */
    
    --font-title: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-card: 16px;
    --radius-button: 9999px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset basico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--color-bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 18px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-accent);
}

.btn-mobile-cta {
    display: none;
}

/* Menu Toggle icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-button);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    color: var(--color-bg-white);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-violet) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Header do Blog */
.blog-header {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 140px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.blog-header h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.blog-header p {
    font-size: 1.15rem;
    color: var(--color-text-main);
    max-width: 600px;
    margin: 0 auto;
}

/* Busca e Filtros */
.search-filter-section {
    margin-top: -30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.search-bar-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.search-bar-container:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    outline: none;
    color: var(--color-text-dark);
}

.search-btn {
    background-color: transparent;
    border: none;
    padding: 0 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--color-accent);
}

/* Categorias */
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    cursor: pointer;
}

.category-tab:hover,
.category-tab.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(99, 102, 241, 0.05);
}

/* Grid de Artigos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.article-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--color-primary);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.article-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.article-reading-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.article-card-content h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-card-content h3 a:hover {
    color: var(--color-accent);
}

.article-summary {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.article-date {
    font-weight: 500;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 60px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(99, 102, 241, 0.05);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Página do Artigo Individual */
.single-post {
    background-color: var(--color-bg-white);
    padding-top: 120px;
    padding-bottom: 100px;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.post-meta-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-text-muted);
    border-radius: 50%;
}

.post-container {
    max-width: 720px;
    margin: 0 auto;
}

.post-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-dark);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.post-author-date {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.post-featured-image-container {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

/* Corpo do Artigo */
.post-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-main);
}

.post-body h2 {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-body h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 30px;
    margin-bottom: 12px;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body strong {
    color: var(--color-text-dark);
}

.post-body ul, .post-body ol {
    margin: 20px 0 24px 24px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Tags do Artigo */
.post-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* Compartilhamento Social */
.post-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.post-share-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    color: #FFFFFF;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-linkedin {
    background-color: #0077B5;
}

.share-whatsapp {
    background-color: #25D366;
}

/* Rodapé / Barra CTA Fixa */
.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    z-index: 999;
    color: #FFFFFF;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.fixed-cta-bar.active {
    transform: translateY(0);
}

.fixed-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixed-cta-text h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.fixed-cta-text p {
    font-size: 0.85rem;
    color: var(--color-text-main);
    margin-bottom: 0;
}

/* Artigos Relacionados */
.related-section {
    background-color: var(--color-bg-light);
    padding: 80px 0 140px 0; /* Espaço para o CTA fixo */
    border-top: 1px solid var(--color-border);
}

.related-section h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    text-align: center;
}

/* Footer do Site */
.footer {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 60px 0 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4, .footer-links h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-link {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Not Found (404) */
.not-found-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding-top: 100px;
}

.not-found-section h1 {
    font-size: 8rem;
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.not-found-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.not-found-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    color: var(--color-text-muted);
}

/* Responsividade Geral */
@media (max-width: 767px) {
    /* Mobile styles and Hamburger Menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 24px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .btn-desktop-cta {
        display: none;
    }
    
    .btn-mobile-cta {
        display: inline-flex;
        width: 100%;
        margin-top: 20px;
    }
    
    .navbar.scrolled {
        padding: 18px 0;
    }
    
    /* Hamburger Active state */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .blog-header h1 {
        font-size: 2.25rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .fixed-cta-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .fixed-cta-bar {
        padding: 20px 0;
    }
}
