/* Estilos para el frontend */
.wp-block-custom-update-entry {
    margin: 0 auto;
    max-width: 800px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Estilos de encabezado */
.updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
    flex-wrap: wrap;
}

.updates-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Items de actualización */
.updates-list {
    margin-top: 20px;
}

.update-item {
    border-left: 4px solid #d63638;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.update-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.update-title {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
}

.update-content {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

/* Estilos para el contenido HTML generado por el editor */
.update-content h1,
.update-content h2,
.update-content h3,
.update-content h4,
.update-content h5,
.update-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.update-content p {
    margin-bottom: 1em;
}

.update-content ul,
.update-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.update-content li {
    margin-bottom: 0.5em;
}

.update-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.update-content blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 3px solid #ccc;
    font-style: italic;
    color: #666;
}

.update-content pre {
    background-color: #f4f4f4;
    padding: 1em;
    border-radius: 3px;
    overflow-x: auto;
    margin: 1em 0;
}

.update-content code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
}

.update-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.update-content table th,
.update-content table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.update-content table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Botón de refrescar */
.refresh-button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-button:hover {
    background-color: #006ba1;
}

.refresh-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}