/**
 * Estilos para Widget AEU Listado Eventos
 */

.aeu-listado-eventos-wrapper {
    width: 100%;
}

.aeu-eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Estados de carga */
.aeu-eventos-grid.aeu-loading {
    opacity: 0.6;
    pointer-events: none;
}

.aeu-loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

/* Mensaje de error */
.aeu-error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Item de evento por defecto */
.aeu-evento-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aeu-evento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.aeu-evento-titulo {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 15px 0 15px;
}

.aeu-evento-titulo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aeu-evento-titulo a:hover {
    color: #007cba;
}

.aeu-evento-meta {
    padding: 0 15px;
    margin-bottom: 10px;
}

.aeu-evento-fecha {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.aeu-evento-excerpt {
    padding: 0 15px 15px 15px;
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

/* Badges */
.aeu-evento-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    margin: 5px 15px 15px 15px;
}

.aeu-evento-badge.aeu-featured {
    background-color: #f39c12;
    color: white;
}

.aeu-evento-badge.aeu-auspiciado {
    background-color: #e74c3c;
    color: white;
}

/* Meta información mejorada */
.aeu-evento-tipo,
.aeu-evento-ciudad {
    display: inline-block;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    color: #6c757d;
}

/* Sin resultados */
.aeu-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.aeu-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Paginación */
.aeu-eventos-pagination {
    margin-top: 30px;
    text-align: center;
}

.aeu-pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.aeu-pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aeu-pagination button:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.aeu-pagination button.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.aeu-pagination button:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Responsive */
@media (max-width: 1024px) {
    .aeu-eventos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .aeu-eventos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .aeu-evento-titulo {
        font-size: 16px;
    }

    .aeu-loading-spinner,
    .aeu-no-results p {
        font-size: 14px;
    }
}