/* 
 * Blog Main Page Styles - RetorneAI
 * Estilos específicos para a página principal do blog
 */

/* Seção do Blog */
.blog {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Área de Busca e Categorias */
.blog-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 400px;
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    background-color: transparent;
    border: none;
    color: #0056b3;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    color: #004494;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0f7ff;
    color: #0056b3;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tag:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

/* Lista de Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Estilos para blog-card */
.blog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    overflow: hidden;
    max-height: 200px;
}

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

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

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card.featured {
    grid-column: 1 / -1;
}

.blog-card.featured .blog-card-image {
    height: 300px;
}

/* Estilos para blog-post (convertendo para o mesmo visual do blog-card) */
.blog-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

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

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.post-date {
    margin-right: 15px;
}

.post-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #222;
    transition: color 0.3s;
}

.post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #0056b3;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.post-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    margin-top: auto;
    transition: all 0.3s;
}

.post-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.post-link:hover {
    color: #004494;
}

.post-link:hover i {
    transform: translateX(5px);
}

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

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-item:hover {
    background-color: #f0f7ff;
    color: #0056b3;
}

.pagination-item.active {
    background-color: #0056b3;
    color: #fff;
}

.pagination-dots {
    margin: 0 5px;
    color: #666;
}

.pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    border-radius: 50%;
    color: #0056b3;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-next:hover {
    background-color: #f0f7ff;
    transform: translateX(3px);
}

/* Área de Inscrição */
.blog-subscribe {
    background-color: #0056b3;
    padding: 50px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.2);
}

.subscribe-content {
    max-width: 500px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.subscribe-content h3 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.subscribe-content p {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.subscribe-form {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
    min-width: 250px;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form .btn-primary {
    padding: 0 25px;
    background-color: #004494;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-form .btn-primary:hover {
    background-color: #003366;
}

/* Responsividade */
@media (max-width: 992px) {
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .blog-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .blog-subscribe {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 30px;
    }
    
    .subscribe-content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .subscribe-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .blog {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .blog-categories {
        justify-content: center;
        margin-top: 10px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .blog-subscribe {
        padding: 30px 20px;
    }
    
    .subscribe-content h3 {
        font-size: 22px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 6px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .subscribe-form .btn-primary {
        border-radius: 6px;
        width: 100%;
        padding: 14px 20px;
    }
} 