/**
 * CSS Category Desktop - category-desktop.css
 * v1.2.1 - Correções finais
 * - Navegação sem contador
 */

/* ===================================================================
   1. CONTAINER PRINCIPAL
   =================================================================== */

.category-desktop {
    background: #ffffff;
    font-family: 'Open Sans', Arial, sans-serif;
    min-height: 100vh;
}

.category-desktop .container-desktop {
    max-width: 1135px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================================
   2. ANÚNCIO CABEÇALHO
   =================================================================== */

.category-desktop .ad-header-desktop {
    text-align: center;
    margin: 20px 0 30px 0;
}

.category-desktop .publicidade-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    min-height: 100px;
}

/* ===================================================================
   3. HEADER DA CATEGORIA - COM LINHA DECORATIVA
   =================================================================== */

.category-header {
    padding: 40px 0 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.category-title {
    font-size: 48px;
    line-height: 1.25;
    font-weight: 700;
    color: #003482;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
}

/* LINHA DECORATIVA IGUAL AO MOBILE */
.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d00, #ff4444);
    border-radius: 2px;
}

/* ===================================================================
   4. FEED CENTRALIZADO (SEM SIDEBAR)
   =================================================================== */

.category-desktop .feed-area-centered {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================================================
   5. FEED DE POSTS
   =================================================================== */

.category-desktop .feed-post {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.category-desktop .feed-post:hover {
    background: rgba(255, 255, 255, 0.5);
}

.category-desktop .feed-post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
    border-radius: 4px;
}

.category-desktop .feed-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-desktop .feed-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-desktop .feed-post-image:hover img {
    transform: scale(1.05);
}

.category-desktop .feed-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-desktop .feed-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.category-desktop .feed-post-title a {
    color: #003482;
    text-decoration: none;
}

.category-desktop .feed-post-title a:hover {
    color: #d00;
}

.category-desktop .feed-post-excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 0 0 10px 0;
}

.category-desktop .feed-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-desktop .time-label {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ===================================================================
   6. ANÚNCIOS NO FEED
   =================================================================== */

.category-desktop .ad-wrapper {
    margin: 25px 0;
    text-align: center;
}

.category-desktop .ad-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.category-desktop .ad-center-feed {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    min-height: 100px;
}

/* ===================================================================
   7. PAGINAÇÃO AJAX (SEM CONTADOR)
   =================================================================== */

.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #003482;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #00255a;
    transform: translateY(-2px);
}

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

.pagination-btn svg {
    flex-shrink: 0;
}

/* ===================================================================
   8. RESPONSIVO
   =================================================================== */

@media (max-width: 1024px) {
    .category-title {
        font-size: 36px;
    }
    
    .category-desktop .feed-area-centered {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 28px;
    }
    
    .category-desktop .feed-post {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-desktop .feed-post-content {
        padding: 0;
    }
    
    .category-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================================================
   9. ACESSIBILIDADE
   =================================================================== */

.pagination-btn:focus,
.category-desktop .feed-post-title a:focus,
.category-desktop .feed-post-image a:focus {
    outline: 2px solid rgba(0, 52, 130, 0.6);
    outline-offset: 2px;
}

/* ===================================================================
   10. PRINT
   =================================================================== */

@media print {
    .ad-header-desktop,
    .category-pagination,
    .ad-wrapper,
    .category-title::after {
        display: none !important;
    }
}
