/* Estilos para o plugin Arquivo de Notícias */

.an-container {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Estilos para os controles */
.an-controls-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 96px 0 56px 0; */
    margin-bottom: 56px;
    gap: 32px;
    box-sizing: border-box;
}

/* Estilo para o container de busca */
.an-search-container {
    flex: 1;
    max-width: 648px;
    width: 100%;
}

.an-search {
    width: 100%;
    height: 52px;
    padding: 13px 16px;
    gap: 8px;
    border-radius: 500px !important;
    background: #FFFFFF;
    border: 1px solid #CCCCCC !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.an-search:focus {
    border-color: #004BE0;
}

/* Estilo para o container de filtro por tag */
.an-tag-filter-container {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 648px;
}

.an-filter-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    vertical-align: middle;
    color: #1A1A1A;
    white-space: nowrap;
}

.an-select {
    width: 240px;
    height: 52px;
    padding: 13px 16px;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1A1A'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
    box-sizing: border-box;
}

.an-select:focus {
    border-color: #004BE0;
}

/* Container de posts */
#an-posts-container {
    width: 100%;
    padding: 0 0 56px 0;
    min-height: 300px;
    box-sizing: border-box;
}

/* Grupo de Posts por Mês */
.an-month-group {
    margin-bottom: 64px;
    width: 100%;
}

.an-month-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: 0px;
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 32px;
}

.an-month-posts {
    width: 100%;
    gap: 32px;
    display: flex;
    flex-direction: column;
}

/* Estilo de cada post */
.an-post-item {
    width: 100%;
    height: 66px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.an-post-meta {
    display: flex;
    gap: 5px;
    align-items: center;
}

.an-post-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #1A1A1A;
    text-transform: capitalize;
}

.an-post-tag {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #004BE0;
}

.an-post-tag:before {
    content: "-";
    margin: 0 5px;
    color: #1A1A1A;
}

.an-post-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.an-post-title a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0px;
    color: #1A1A1A;
    text-decoration: underline;
    text-decoration-style: solid;
    transition: color 0.3s;    
}

.an-post-title a:hover {
    color: #004BE0;
}

.an-divider {
    width: 100%;
    border-bottom: 1px solid #CCCCCC;
    margin-top: 8px;
}

/* Mensagens */
.an-no-posts {
    text-align: center;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
}

.an-loading {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
}

.an-error {
    text-align: center;
    padding: 20px;
    background-color: #fef1f1;
    border-left: 4px solid #d63638;
    color: #666;
}

/* Estilos para o carregamento progressivo */
.an-loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    width: 100%;
    margin: 0 auto;
}

.an-loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border: 3px solid #eee;
    border-radius: 50%;
    border-top: 3px solid #004BE0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.an-loading-more p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
}

.an-load-status {
    display: none;
}

/* Responsividade */
@media (max-width: 992px) {
    .an-controls-container {
        flex-direction: column;
        padding: 40px 0 30px 0;
        gap: 24px;
        align-items: flex-start;
    }
    
    .an-search-container, 
    .an-tag-filter-container {
        width: 100%;
        max-width: 100%;
    }
    
    .an-search {
        width: 100%;
    }
    
    .an-tag-filter-container {
        flex-wrap: wrap;
    }
    
    .an-select {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .an-controls-container {
        padding: 20px 0;
    }
    
    #an-posts-container {
        padding: 0 0 20px 0;
    }
    
    .an-month-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .an-post-item {
        height: auto;
    }
    
    .an-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .an-post-tag:before {
        display: none;
    }

    .an-post-title a {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 0px;
        color: #1A1A1A;
        text-decoration: underline;
        text-decoration-style: solid;
        transition: color 0.3s;
        background-color: #d63638;
    }
}

/* Integração com Elementor */
.elementor-widget-container .an-container {
    width: 100%;
} 