/* ========================================
   Página de Notícias - Estilos
   ======================================== */

/* Seção Principal */
.noticias-section {
    padding: 40px 0 60px;
    min-height: 100vh;
    background-color: #fff3d8;
}

.noticias-title {
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    color: #873b4b;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Campo de Busca */
.noticias-search-box {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.noticias-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    color: #873b4b;
    font-size: 1.1rem;
    pointer-events: none;
}

.noticias-search-input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    border: 2px solid rgba(135, 59, 75, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #523827;
    transition: all 0.3s ease;
}

.noticias-search-input:focus {
    outline: none;
    border-color: #873b4b;
    box-shadow: 0 0 0 4px rgba(135, 59, 75, 0.1);
}

.noticias-search-input::placeholder {
    color: rgba(82, 56, 39, 0.5);
}

.search-clear {
    position: absolute;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(135, 59, 75, 0.1);
    border-radius: 50%;
    color: #873b4b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.search-clear:hover {
    background: #873b4b;
    color: white;
    transform: scale(1.1);
}

/* Filtro de Tags */
.tag-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.tag-filter-wrapper .tag-icon {
    position: absolute;
    left: 16px;
    color: #873b4b;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.noticias-tag-filter {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid rgba(135, 59, 75, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #523827;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23873b4b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.noticias-tag-filter:hover {
    border-color: #873b4b;
}

.noticias-tag-filter:focus {
    outline: none;
    border-color: #873b4b;
    box-shadow: 0 0 0 4px rgba(135, 59, 75, 0.1);
}

.noticias-search-btn {
    padding: 14px 32px;
    background: #873b4b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.noticias-search-btn:hover {
    background: #a04858;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 59, 75, 0.25);
}

/* Informação de Resultados da Busca */
.search-results-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 12px 20px;
    background: rgba(135, 59, 75, 0.08);
    border-radius: 8px;
    color: #523827;
}

.search-results-info p {
    margin: 0;
    font-size: 0.95rem;
}

.search-results-info strong {
    color: #873b4b;
    font-weight: 700;
}

/* Lista de Notícias - Layout Vertical */
.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 3rem;
}

/* Item de Notícia */
.noticia-item {
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-item:first-child {
    padding-top: 0;
}

.noticia-item:last-child {
    margin-bottom: 0;
}

.noticia-link {
    display: flex;
    gap: 25px;
    text-decoration: none;
    color: inherit;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(135, 59, 75, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.noticia-item:hover .noticia-link {
    transform: translateY(-6px);
    box-shadow: 
        0 16px 40px rgba(135, 59, 75, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.noticia-thumbnail {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8d4b8 100%);
    position: relative;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-item:hover .noticia-img {
    transform: scale(1.1);
}

.noticia-placeholder {
    background: linear-gradient(135deg, #873b4b 0%, #a85566 100%);
    opacity: 0.9;
}

/* Conteúdo */
.noticia-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.noticia-title-item {
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.noticia-item:hover .noticia-title-item {
    color: #873b4b;
}

/* Meta Informações */
.noticia-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.noticia-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #873b4b;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(135, 59, 75, 0.15);
}

.noticia-date i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.noticia-item:hover .noticia-date {
    background: #a04858;
    box-shadow: 0 4px 12px rgba(135, 59, 75, 0.25);
}

/* Tags das Notícias */
.noticia-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.noticia-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #873b4b;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid #873b4b;
    cursor: default;
    box-shadow: 0 2px 8px rgba(135, 59, 75, 0.15);
}

.noticia-tag i {
    font-size: 0.85rem;
}

.noticia-tag:hover {
    background: #a04858;
    border-color: #a04858;
}

/* Paginação */
.noticias-pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    padding: 2rem 0;
}

.noticias-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.noticias-pagination .page-numbers li {
    list-style: none;
}

.noticias-pagination a,
.noticias-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 18px;
    background: white;
    color: #873b4b;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8d4b8;
    box-shadow: 0 2px 8px rgba(135, 59, 75, 0.08);
}

.noticias-pagination a:hover {
    border-color: #873b4b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(135, 59, 75, 0.25);
    background: white;
    color: #873b4b;
}

.noticias-pagination .current {
    background: linear-gradient(135deg, #873b4b 0%, #a85566 100%);
    color: white;
    font-weight: 700;
    border-color: #873b4b;
    box-shadow: 
        0 4px 15px rgba(135, 59, 75, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.noticias-pagination .prev,
.noticias-pagination .next {
    font-weight: 700;
    padding: 0 24px;
    background: white;
    border-color: #873b4b;
    letter-spacing: 0.03em;
}

.noticias-pagination .prev:hover,
.noticias-pagination .next:hover {
    background: white;
    color: #873b4b;
    border-color: #873b4b;
}

.noticias-pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    color: #8b7355;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Lista Vazia */
.noticias-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(135, 59, 75, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 2px dashed #e8d4b8;
}

.noticias-empty p {
    font-size: 1.2rem;
    color: #8b7355;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ========================================
   Responsividade
   ======================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .noticia-link {
        gap: 20px;
        padding: 18px;
    }
    
    .noticia-thumbnail {
        width: 240px;
        height: 180px;
    }
    
    .noticia-title-item {
        font-size: 1.4rem;
    }
    
    .noticias-title {
        font-size: 2rem;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    .noticias-section {
        padding: 100px 0 40px;
    }
    
    .noticias-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .noticias-search-box {
        max-width: 100%;
    }
    
    .noticias-search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .tag-filter-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .noticias-search-btn {
        width: 100%;
        padding: 12px 24px;
    }
    
    .noticias-search-input {
        padding: 12px 45px 12px 45px;
        font-size: 0.95rem;
    }
    
    .noticias-tag-filter {
        padding: 12px 40px 12px 44px;
        font-size: 0.95rem;
    }
    
    .noticia-item {
        margin-bottom: 1.5rem;
    }
    
    .noticia-link {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .noticia-thumbnail {
        width: 100%;
        height: 220px;
    }
    
    .noticia-content {
        gap: 12px;
    }
    
    .noticia-title-item {
        font-size: 1.3rem;
    }
    
    .noticia-meta-wrapper {
        gap: 8px;
    }
    
    .noticia-date {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
    
    .noticia-date i {
        font-size: 0.85rem;
    }
    
    .noticia-tags {
        gap: 6px;
    }
    
    .noticia-tag {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
    
    .noticia-tag i {
        font-size: 0.8rem;
    }
    
    .noticias-pagination a,
    .noticias-pagination .current {
        min-width: 42px;
        height: 42px;
        padding: 0 14px;
        font-size: 0.9rem;
    }
    
    .noticias-pagination .prev,
    .noticias-pagination .next {
        padding: 0 18px;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    .noticias-section {
        padding: 90px 0 30px;
    }
    
    .noticias-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .noticia-item {
        margin-bottom: 1.25rem;
    }
    
    .noticia-link {
        padding: 14px;
        gap: 14px;
    }
    
    .noticia-thumbnail {
        height: 200px;
        border-radius: 10px;
    }
    
    .noticia-content {
        gap: 10px;
    }
    
    .noticia-title-item {
        font-size: 1.2rem;
    }
    
    .noticia-meta-wrapper {
        gap: 6px;
    }
    
    .noticia-date {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .noticia-date i {
        font-size: 0.8rem;
    }
    
    .noticia-tag {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .noticia-tag i {
        font-size: 0.75rem;
    }
    
    .noticias-pagination {
        margin-top: 2.5rem;
        padding: 1.5rem 0;
    }
    
    .noticias-pagination .page-numbers {
        gap: 0.5rem;
    }
    
    .noticias-pagination a,
    .noticias-pagination .current {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .noticias-pagination .prev,
    .noticias-pagination .next {
        padding: 0 16px;
        font-size: 0.85rem;
    }
    
    .noticias-pagination .dots {
        min-width: 38px;
        height: 38px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .noticias-title {
        font-size: 1.3rem;
    }
    
    .noticia-thumbnail {
        height: 180px;
    }
    
    .noticia-title-item {
        font-size: 1.1rem;
    }
    
    .noticia-link {
        padding: 12px;
    }
}
