/* ==========================================
   BLOG STYLES - Securecor
   Seguindo a identidade visual do site principal
========================================== */

/* ==========================================
   HERO BLOG
========================================== */

.hero-blog {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #181d36 0%, #017b3b 100%);
    overflow: hidden;
}

.hero-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../IMG/mundi.png') repeat center;
    background-size: auto 60%;
    opacity: 0.05;
    animation: worldMapScroll 180s linear infinite;
}

@keyframes worldMapScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-blog .wrapper {
    position: relative;
    z-index: 2;
}

.hero-blog h1 {
    color: var(--white);
    margin-bottom: 16px;
    text-align: center;
}

.hero-blog p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   FILTROS E BUSCA
========================================== */

.blog-filters {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-100);
}

.filters-container {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 123, 59, 0.1);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 10px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==========================================
   GRID DE POSTS
========================================== */

.blog-section {
    padding: 80px 0;
    background: var(--white);
}

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

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

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

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

.post-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-image.no-image i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.post-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

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

.post-card-title {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.post-card-excerpt {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.post-card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-category-badge {
    padding: 4px 12px;
    background: rgba(1, 123, 59, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.post-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.post-card:hover .post-card-link {
    gap: 10px;
}

/* ==========================================
   PAGINAÇÃO
========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 20px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================
   ESTADO VAZIO
========================================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.empty-state h3 {
    color: var(--secondary);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 16px;
}

/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-blog {
        padding: 140px 0 60px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

