/* ===== BLOG STYLES ===== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero__description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.blog-hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Blog Categories */
.blog-categories {
    padding: 5rem 0;
}

.categories__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category__card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.category__description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category__count {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Featured Posts */
.featured-posts {
    background: var(--container-color);
    padding: 5rem 0;
}

.posts__container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post__card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post__card.featured {
    grid-column: span 2;
}

.post__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post__card:hover .post__img {
    transform: scale(1.05);
}

.post__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.post__content {
    padding: 2rem;
}

.post__meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.post__meta i {
    margin-right: 0.5rem;
}

.post__title {
    margin-bottom: 1rem;
}

.post__title a {
    color: var(--title-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.post__excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

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

.author__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author__name {
    font-weight: 500;
    color: var(--title-color);
}

.post__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.post__read-more:hover {
    gap: 0.75rem;
}

/* Recent Posts */
.recent-posts {
    padding: 5rem 0;
}

.posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post__item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.post__item-image {
    height: 200px;
    overflow: hidden;
}

.post__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post__item:hover .post__item-img {
    transform: scale(1.05);
}

.post__item-content {
    padding: 1.5rem;
}

.post__item-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.post__item-title a {
    color: var(--title-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.post__item-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.posts__load-more {
    text-align: center;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
}

.newsletter__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter__description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter__form-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter__input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.newsletter__input::placeholder {
    color: var(--text-color-light);
}

.newsletter__privacy {
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .blog-hero__title {
        font-size: 3rem;
    }
    
    .post__card.featured {
        grid-column: span 1;
    }
    
    .newsletter__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-hero__title {
        font-size: 2.5rem;
    }
    
    .blog-hero__stats {
        gap: 2rem;
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .categories__container {
        grid-template-columns: 1fr;
    }
    
    .posts__container {
        grid-template-columns: 1fr;
    }
    
    .posts__grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter__form-container {
        flex-direction: column;
    }
    
    .newsletter__title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero__title {
        font-size: 2rem;
    }
    
    .blog-hero__description {
        font-size: 1.1rem;
    }
    
    .category__card {
        padding: 2rem 1.5rem;
    }
    
    .post__content {
        padding: 1.5rem;
    }
    
    .post__footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Blog Post Placeholder Images */
.post__img[src*="blog-diabetes-sinais.jpg"],
.post__img[src*="blog-tireoide-sintomas.jpg"],
.post__img[src*="blog-emagrecer-hormonios.jpg"],
.post__img[src*="blog-glicose-casa.jpg"],
.post__img[src*="blog-nodulos-tireoide.jpg"],
.post__img[src*="blog-metabolismo-lento.jpg"],
.post__img[src*="blog-checkup-endocrino.jpg"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
}

.post__img[src*="blog-diabetes-sinais.jpg"]::before {
    content: "Diabetes\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-tireoide-sintomas.jpg"]::before {
    content: "Tireóide\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-emagrecer-hormonios.jpg"]::before {
    content: "Emagrecimento\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-glicose-casa.jpg"]::before {
    content: "Glicose\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-nodulos-tireoide.jpg"]::before {
    content: "Nódulos\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-metabolismo-lento.jpg"]::before {
    content: "Metabolismo\AImagem em breve";
    white-space: pre;
}

.post__img[src*="blog-checkup-endocrino.jpg"]::before {
    content: "Check-up\AImagem em breve";
    white-space: pre;
}

