/* ============================================
   BLOG STYLES - Kleber Simões
   Design limpo, moderno e 100% responsivo
   ============================================ */

/* ===== BLOG HERO ===== */
.blog-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: #ffffff;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff !important;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ===== FILTERS SECTION ===== */
.blog-filters-section {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 2px solid #f1f5f9;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

/* ===== BLOG CONTENT ===== */
.blog-content {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: #64748b;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.loading p {
    font-size: 1.125rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

/* Card Image */
.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Category Badge */
.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-category.cat-case {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blog-card-category.cat-comparacao {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.blog-card-category.cat-estrategia {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.blog-card-category.cat-tutorial {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Card Content */
.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: wrap;
}

.blog-card-meta i {
    color: #2563eb;
    margin-right: 0.25rem;
}

/* Card Title */
.blog-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #2563eb;
}

/* Card Excerpt */
.blog-card-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.938rem;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid #f1f5f9;
}

.read-more {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.938rem;
}

.read-more:hover {
    gap: 0.75rem;
    color: #1e40af;
}

.blog-card-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.blog-card-stats i {
    color: #2563eb;
}

/* ===== PAGINATION ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.938rem;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Tablet */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 50px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .blog-hero {
        padding: 90px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.75rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: #64748b;
}

/* ============================================
   BLOG POST PAGE (Página de Artigo)
   ============================================ */

.blog-post-main {
    background: #f8fafc;
    padding-top: 80px;
    min-height: 100vh;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Post Header */
.post-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    text-decoration: underline;
}

.post-breadcrumb i {
    font-size: 0.75rem;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.938rem;
}

.post-date {
    font-size: 0.813rem;
    color: #64748b;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.post-stats i {
    color: #2563eb;
    margin-right: 0.25rem;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    color: #334155;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1rem;
    font-size: 1.063rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.063rem;
}

.post-content strong {
    color: #2563eb;
    font-weight: 700;
}

.post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1e40af;
}

/* Post Tags */
.post-tags {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-tags h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-tags h3 i {
    color: #2563eb;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f1f5f9;
    color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
}

/* Share Buttons */
.post-share {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-share h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-share h3 i {
    color: #2563eb;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #1877f2;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
    flex-shrink: 0;
}

.bio-content {
    flex: 1;
}

.bio-content h3 {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.bio-content h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.bio-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-saiba-mais {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.938rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-saiba-mais:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    gap: 0.75rem;
}

.btn-saiba-mais i {
    transition: transform 0.3s ease;
}

.btn-saiba-mais:hover i {
    transform: translateX(3px);
}

/* Related Posts */
.related-posts {
    margin-bottom: 2rem;
}

.related-posts h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-posts h2 i {
    color: #2563eb;
}

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

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.post-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-cta-content p {
    font-size: 1.063rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Post Page Responsive */
@media (max-width: 768px) {
    .post-header,
    .post-content,
    .post-tags,
    .post-share,
    .author-bio {
        padding: 1.5rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-avatar {
        margin: 0 auto;
    }
    
    .btn-saiba-mais {
        width: 100%;
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.375rem;
    }
    
    .post-content h3 {
        font-size: 1.125rem;
    }
    
    .post-content p,
    .post-content li {
        font-size: 1rem;
    }
    
    .post-cta-content h2 {
        font-size: 1.375rem;
    }
}
