/**
 * BLOG CSS OTIMIZADO - EAGLE TELECOM
 * Layout compacto seguindo padrões do site
 * 
 * @version 2.0.0
 * @author Lucas André - Eagle Telecom
 */

/* ========== LAYOUT PRINCIPAL ========== */
.blog-container {
    background: var(--background-color);
    min-height: 100vh;
    padding: 40px 0;
}

/* ========== PESQUISA COMPACTA ========== */
.blog-search-section {
    padding: 40px 0;
    background: var(--surface-color);
    border-bottom: 1px solid var(--shadow-color);
    margin-bottom: 40px;
}

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

.search-form {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--shadow-color);
}

.search-input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.125rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--shadow-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--default-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(224, 58, 60, 0.1);
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.15s ease;
    z-index: 2;
}

.clear-search:hover {
    color: var(--accent-color);
}

.search-btn {
    padding: 16px 24px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}

.search-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid var(--shadow-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--default-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ========== FILTROS RÁPIDOS MESCLADOS ========== */
.quick-filters {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--shadow-color);
}

.quick-filters-header {
    margin-bottom: 16px;
}

.quick-filters-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.quick-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--shadow-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--default-color);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-filter-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224, 58, 60, 0.2);
}

.quick-filter-btn.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(224, 58, 60, 0.2);
}

.quick-filter-btn i {
    font-size: 12px;
}

.search-results-info {
    margin-top: 24px;
    padding: 16px;
    background: rgba(224, 58, 60, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--default-color);
}

.results-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.count-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.count-label {
    font-size: 12px;
    color: var(--medium-gray);
}

/* ========== POSTS EM DESTAQUE - LAYOUT UNIFORME ========== */
.featured-posts-section {
    padding: 60px 0;
    background: var(--surface-color);
    margin-bottom: 40px;
}

.featured-posts-section .title-light {
    padding-bottom: 40px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.featured-post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--shadow-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
}

.featured-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--card-shadow);
}

.featured-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.featured-category {
    background: var(--nav-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
}

.featured-date {
    color: var(--medium-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-title {
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
    font-size: 1.125rem;
}

.featured-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-excerpt {
    color: var(--default-color);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--shadow-color);
    margin-top: auto;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--medium-gray);
    font-size: 12px;
    font-weight: 500;
}

.featured-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(224, 58, 60, 0.05);
    font-size: 12px;
}

.featured-read-more:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(2px);
}

/* ========== GRID DE POSTS ========== */
.blog-posts-section {
    padding: 60px 0;
    background: var(--surface-color);
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.posts-count {
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 500;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--shadow-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.post-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--light-gray);
}

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

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

.post-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: var(--card-shadow);
    z-index: 2;
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.post-read-overlay {
    background: var(--white);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    transform: translateY(10px);
    font-size: 14px;
}

.post-card:hover .post-read-overlay {
    transform: translateY(0);
}

.post-read-overlay:hover {
    background: var(--accent-color);
    color: var(--white);
}

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

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.post-category {
    background: var(--nav-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-reading-time {
    color: var(--medium-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-title {
    margin-bottom: 12px;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--heading-color);
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.post-excerpt {
    color: var(--default-color);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--shadow-color);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--heading-color);
}

.post-date {
    font-size: 11px;
    color: var(--medium-gray);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-views {
    color: var(--medium-gray);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* ========== PAGINAÇÃO ========== */
.blog-pagination {
    padding: 32px 0;
    background: var(--light-gray);
    border-radius: 12px;
    margin-top: 48px;
}

.pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    display: flex;
}

.page-link {
    color: var(--default-color);
    background: var(--white);
    border: 2px solid var(--shadow-color);
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
    justify-content: center;
    font-size: 14px;
}

.page-link:hover {
    color: var(--white);
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 58, 60, 0.2);
}

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: var(--card-shadow);
}

/* ========== ESTADO VAZIO ========== */
.empty-state {
    padding: 60px 0;
    text-align: center;
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--medium-gray);
    font-size: 2rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.empty-state-description {
    color: var(--default-color);
    line-height: 1.5;
    margin-bottom: 24px;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 0;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        min-width: auto;
    }

    .quick-filters-grid {
        flex-direction: column;
    }

    .quick-filter-btn {
        justify-content: center;
        padding: 10px 16px;
    }

    .posts-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

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

    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-results-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .results-count {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .blog-search-section {
        padding: 30px 0;
    }

    .search-form {
        padding: 20px;
    }

    .quick-filters {
        margin-top: 20px;
        padding-top: 20px;
    }

    .quick-filter-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .featured-content {
        padding: 20px;
    }

    .post-content {
        padding: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 36px;
    }

    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* ========== ESTATÍSTICAS SUTIS ========== */
.blog-stats {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--shadow-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--medium-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Remover estilos dos filtros rápidos (não usados mais) */
.quick-filters,
.quick-filters-header,
.quick-filters-grid,
.quick-filter-btn {
    display: none !important;
}

/* ========== RESPONSIVIDADE PARA ESTATÍSTICAS ========== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 200px;
    }

    .stat-item {
        padding: 10px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .stat-item i {
        font-size: 16px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .blog-stats {
        margin-top: 20px;
        padding-top: 20px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-item {
        padding: 8px;
    }
}   



