/* Estilos específicos do Blog */

/* Hero do Blog */
.blog-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 180px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Layout Principal do Blog */
.blog-main {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* Filtros de Categoria */
.blog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Card de Post */
.post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-widget p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Posts Recentes */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-post-title {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.recent-posts a:hover .recent-post-title {
    color: var(--primary-color);
}

.recent-post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: var(--white);
}

.newsletter-widget h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.newsletter-form button {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Página Individual de Post */
.post-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 150px 0 80px;
    margin-top: 90px;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-header-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1rem;
    opacity: 0.95;
}

.post-body {
    padding: 80px 0;
    background: var(--white);
}

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

.post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.post-article {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.post-article h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--secondary-color);
}

.post-article h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.post-article p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-article ul,
.post-article ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-article li {
    margin-bottom: 10px;
}

.post-article blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

.post-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

/* Compartilhamento Social */
.post-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

/* Posts Relacionados */
.related-posts {
    padding: 80px 0;
    background: var(--bg-light);
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

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

/* Link ativo no menu */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsividade */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
    }

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

    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-header-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-filters {
        justify-content: center;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 18px;
    }

    .post-header {
        padding: 120px 0 60px;
    }

    .post-header h1 {
        font-size: 1.6rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

