/*
 * pages/blog.css
 * ================
 * Estilos específicos das páginas de blog (blog.php, post.php, listagem).
 * Migrado completamente em: 2026-02-11
 */

/* Main Wrapper */
.blog-main-wrapper {
    padding-top: 40px;
    min-height: 60vh;
}

.blog-main-wrapper .section-header .divider {
    margin: 20px auto;
}

/* Layout Grid */
.post-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* Main Content column */
.blog-content-column {
    min-width: 0;
}

/* Blog Grid (Listing) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Article Cards */
.article-card {
    min-width: 0;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card .article-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.article-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 15px;
    display: inline-block;
}

.no-posts-msg {
    text-align: center;
    grid-column: 1/-1;
    padding: 40px 0;
    color: #777;
}

/* Sidebar Styling */
.post-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    position: relative;
}

.sidebar-widget h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.sidebar-list a:hover {
    color: var(--primary-color);
}

.sidebar-widget p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f8;
    color: #444;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Search Box Widget */
.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* Newsletter Widget */
.newsletter-sidebar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-sidebar button {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-sidebar button:hover {
    background: var(--primary-color);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 60px;
}

.btn-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #eee;
    color: #777;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-page svg {
    vertical-align: middle;
}

.btn-page.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.btn-page:hover,
.btn-page.active {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

/* Individual Post Styling */
.post-article-header {
    margin-bottom: 30px;
}

.post-article-header .article-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-article-header .article-meta svg {
    color: var(--primary-color);
}

.post-article-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.post-featured-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Styling */
.article-body p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 1.8em;
    margin-bottom: 1em;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.social-share span {
    font-weight: 700;
    font-size: 0.85rem;
    color: #777;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.linkedin {
    background: #0077B5;
}

/* Post Footer Nav */
.post-footer-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #777;
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 992px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
    }

    .post-article-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}