/* --- Estilos do Shortcode DOEM --- */

.doem-grid-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: 100%;
    margin: 20px 0;
}

/* O Grid de 4 Colunas */
.doem-grid {
    display: grid;
    /* Cria 4 colunas de tamanho igual */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* O Card */
.doem-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.doem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Thumbnail do Card */
.doem-card-thumbnail {
    width: 100%;
    height: 200px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doem-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço */
}

/* Placeholder para quando não há thumbnail */
.doem-card-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.doem-card-placeholder-icon .dashicons {
    font-size: 80px;
    color: #adb5bd;
}

/* Conteúdo do Card */
.doem-card-content {
    padding: 20px;
    flex-grow: 1; /* Faz o conteúdo ocupar o espaço restante */
    display: flex;
    flex-direction: column;
}

.doem-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.doem-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.doem-card-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Empurra o botão de download para baixo */
}

/* Botão de Download */
.doem-card-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0073aa; /* Cor padrão do WordPress */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.doem-card-download .dashicons {
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}

.doem-card-download:hover {
    background-color: #005a87;
    color: #ffffff;
}

.doem-card-no-file {
    font-size: 0.9rem;
    color: #999;
}


/* Paginação */
.doem-pagination {
    margin-top: 30px;
    text-align: center;
}

.doem-pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doem-pagination .page-numbers:hover {
    background: #f0f0f0;
}

.doem-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}


/* --- Responsividade --- */

/* Tablets (ex: 3 colunas) */
@media (max-width: 1024px) {
    .doem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Celulares (ex: 2 colunas) */
@media (max-width: 768px) {
    .doem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares (ex: 1 coluna) */
@media (max-width: 480px) {
    .doem-grid {
        grid-template-columns: 1fr;
    }
}
