/* Estilos específicos do Blog - Design moderno e elegante */

/* Hero do Blog */
.blog-hero {
    background: linear-gradient(135deg, #0a1a3f 0%, #2196F3 100%);
    padding: 80px 20px 60px;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Posts - Cards modernos */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0a1a3f 0%, #2196F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

.blog-card-image i {
    position: absolute;
    z-index: 1;
}

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

.blog-card-date {
    font-size: 0.85rem;
    color: #2196F3;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2196F3;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
    color: #0a1a3f;
}

/* Página de leitura do post */
.post-hero {
    background: linear-gradient(135deg, #0a1a3f 0%, #2196F3 100%);
    padding: 100px 20px 60px;
    color: white;
    margin-top: 80px;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.post-meta i {
    margin-right: 6px;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

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

.post-content blockquote {
    border-left: 4px solid #2196F3;
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #4a5568;
}

.post-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.post-content pre {
    background: #2d3748;
    color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}

/* Seção de compartilhamento */
.post-share {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 32px 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.post-share-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.copy { background: #4a5568; }

.share-btn.whatsapp:hover { background: #1fb855; }
.share-btn.facebook:hover { background: #1466d4; }
.share-btn.twitter:hover { background: #1a8cd8; }
.share-btn.linkedin:hover { background: #0952a5; }
.share-btn.copy:hover { background: #2d3748; }

.share-message {
    margin-top: 16px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Navegação do post */
.post-navigation {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #0a1a3f;
    gap: 12px;
}

/* Paginação */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 18px;
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #2196F3;
    color: white;
}

.pagination-btn.active {
    background: #2196F3;
    color: white;
    cursor: default;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.blog-empty h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 12px;
}

.blog-empty p {
    color: #718096;
}

/* Responsivo */
@media (max-width: 768px) {
    .blog-hero h1, .post-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 20px;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

