/* Estilos para eventos dinámicos */

/* Mejorar visibilidad del buscador */
.news-search {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.news-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.news-search input:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.news-search input::placeholder {
    color: #999;
}

.event-badge-destacado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    z-index: 2;
}

.event-badge-destacado i {
    margin-right: 4px;
}

.news-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-time {
    margin-left: 10px;
    color: #666;
}

.event-location {
    color: #666;
}

.badge-destacado {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
    vertical-align: middle;
}

.loading-news {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #1a4b8c;
}

.loading-news i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-news,
.error-news {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}

.error-news {
    color: #e74c3c;
}

/* Estilos para el formulario de eventos en admin */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pdf-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.pdf-preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-size: 0.9rem;
}

.pdf-preview-info i {
    font-size: 1.5rem;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.pdf-link:hover {
    background: #c0392b;
}

.pdf-link i {
    font-size: 1.2rem;
}

/* Contenedor de acciones */
.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Botón Ir al evento */
.btn-ir-evento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

.btn-ir-evento:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-ir-evento i {
    font-size: 1rem;
}

/* Botón Descargar PDF */
.btn-descargar-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
}

.btn-descargar-pdf:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-descargar-pdf i {
    font-size: 1rem;
}

/* Botón Saber más */
.btn-saber-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #1a4b8c, #2563a8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(26, 75, 140, 0.2);
}

.btn-saber-mas:hover {
    background: linear-gradient(135deg, #2563a8, #1a4b8c);
    box-shadow: 0 4px 8px rgba(26, 75, 140, 0.3);
    transform: translateY(-2px);
}

.btn-saber-mas:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 75, 140, 0.2);
}

.btn-saber-mas i {
    transition: transform 0.3s ease;
}

.btn-saber-mas.expanded i {
    transform: rotate(180deg);
}

.event-description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.description-text {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .event-badge-destacado {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .news-search {
        max-width: 100%;
        min-width: 100%;
        margin-top: 10px;
    }
    
    .news-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-saber-mas {
        width: 100%;
        justify-content: center;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .btn-ir-evento,
    .btn-descargar-pdf {
        width: 100%;
        justify-content: center;
    }
}
