/* Blog Styles - Agência Elova */

/* Blog Container (index e category) */
.blog-container {
    padding: 120px 20px 80px;
    background: #ffffff;
    min-height: 100vh;
    font-family: montserrat-regular, sans-serif;
}

/* Post Container (show) */
.post-container {
    padding: 120px 20px 80px;
    background: #ffffff;
    /*min-height: 100vh;*/
    font-family: montserrat-regular, sans-serif;
}

/* Blog Header */
.blog-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
    color: #1a0b2e;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #22222b;
    font-family: montserrat-extrabold;
}

.blog-header h1 span {
    background: linear-gradient(135deg, #321855 0%, #8267b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.blog-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 1200px;
    margin: 0 auto;
    font-family: montserrat-regular, sans-serif;
}

/* Blog Content */
.blog-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.blog-filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-filters input,
.blog-filters select {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    color: #1a0b2e;
    font-size: 1rem;
    font-family: montserrat-regular, sans-serif;
}

.blog-filters input::placeholder {
    color: #999;
}

.blog-filters button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: montserrat-extrabold;
}

.blog-filters button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(91, 55, 153, 0.3);}

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

/* Post Cards */
.post-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-card:hover { transform: translateY(-5px); box-shadow: 0px 0px 30px 10px hsl(0deg 0% 0% / 20%);}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    display: none !important;
}

.post-card-content {
    padding: 25px;
    color: #1a0b2e;
}

.post-card-category {
    display: inline-block;
    padding: 5px 15px;
    background: #1e0e34;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'montserrat-regular';
    color: #fff;
}

.post-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #22222b;
    font-family: montserrat-extrabold;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: montserrat-regular;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-family: montserrat-regular, sans-serif;
}
.post-card-meta span  {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.sidebar-widget {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.sidebar-widget h3 {
    color: #1a0b2e;
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    font-family: 'montserrat-extrabold';
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: montserrat-regular, sans-serif;
}

.category-list a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    transform: translateX(5px);
}

.category-count {
    background: #1e0e34;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: montserrat-semibold;
}

/* Recent Posts List */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
    display: none !important;
}

.recent-post-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: montserrat-extrabold;
    color: #1a0b2e;
}

.recent-post-content a {
    color: #1a0b2e;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-content a:hover {
    color: #8B5CF6;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888;
    font-family: montserrat-regular, sans-serif;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #1a0b2e;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    font-family: montserrat-regular, sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

/* Estado disabled */
.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0 !important;
    color: #999 !important;
}

/* Oculta todos os números de página e páginas ativas (caso ainda use links() padrão) */
.pagination > span:not([rel="prev"]):not([rel="next"]):not(.pagination-disabled),
.pagination > a:not([rel="prev"]):not([rel="next"]) {
    display: none !important;
}

.pagination .active,
.pagination span[aria-current="page"] {
    display: none !important;
}

/* Hover para links ativos */
.pagination a:hover:not(.pagination-disabled) {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #1a0b2e;
}

.empty-state ion-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: montserrat-bold, sans-serif;
}

.empty-state p {
    color: #666;
    font-family: montserrat-regular, sans-serif;
}

/* Post Wrapper (show page) */
.post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    color: #1a0b2e;
}

.post-header {
    margin-bottom: 40px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
    font-family: montserrat-regular, sans-serif;
}

.post-breadcrumb a {
    color: #22222b;
    text-decoration: none;
    transition: opacity 0.3s;
}

.post-breadcrumb a:hover {
    opacity: 1;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    background: #1e0e34;
    border-radius: 25px;
    color: #fff;
    font-size: 12px;
    margin-bottom: 20px;
    font-family: montserrat-regular;
}
.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #22222b;
    font-family: montserrat-extrabold;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #888;
    font-family: montserrat-regular, sans-serif;
}

.post-meta span{
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.post-content {
    font-size: 14px;
    line-height: 26px;
    color: #656565;
    margin-bottom: 50px;
    font-family: montserrat-regular;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1a0b2e;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: montserrat-bold, sans-serif;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p { margin: 0;}

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

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

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

.post-content a {
    color: #8B5CF6;
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid #8B5CF6;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

/* Post Share */
.post-share {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    border: 1px solid #e0e0e0;
}

.post-share h3 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #22222b;
    font-family: 'montserrat-extrabold';
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    color: #fff;
    font-family: 'montserrat-regular';
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.share-btn-copy {
    background: #8B5CF6;
}

/* Related Posts */
.related-posts {
    margin-top: 60px; display: none;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a0b2e;
    font-family: montserrat-extrabold;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
}

.related-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
    color: #1a0b2e;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a0b2e;
    margin: 0;
    font-family: montserrat-semibold, sans-serif;
}

.d-none { display: none !important;}

/* Responsive */
@media (max-width: 990px) {
    .post-container { padding: 125px 20px 20px;}
    .blog-container { padding: 125px 20px 20px;}
    .post-share{ margin: 0;}
    .post-featured-image{ margin: 0 0 20px;}
    .blog-sidebar{ display: none;}	
    .blog-filters{ display: none;}	
    .blog-header { margin: 0 auto 20px;}
    .blog-header h1 { font-size: 26px; line-height: 36px; margin: 0 0 10px;}
    .blog-header p { font-size: 16px; line-height: 26px; }
}

@media (max-width: 968px) {
    .blog-content {
        grid-template-columns: 1fr;
    }
    
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content { font-size: 1rem; margin: 0 0 20px; }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

