/* Estilos para el blog de Binshops - Minimalista estilo Medium */

/* Tipografía principal del artículo */
.medium-article-content {
    font-family: charter, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: -0.003em;
    color: #1f2933; /* gris oscuro parecido al resto de la web */
    margin-top: 2rem;
}

/* Encabezados */
.medium-article-content h1,
.medium-article-content h2,
.medium-article-content h3,
.medium-article-content h4,
.medium-article-content h5,
.medium-article-content h6 {
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    color: #0f172a; /* similar a text-gray-900 */
}

.medium-article-content h1 { font-size: 2.25em; margin-top: 1.5em; }
.medium-article-content h2 { font-size: 1.875em; }
.medium-article-content h3 { font-size: 1.5em; }
.medium-article-content h4 { font-size: 1.25em; }

/* Párrafos */
.medium-article-content p {
    margin-bottom: 1.5em;
    font-weight: 400;
}

/* Enlaces */
.medium-article-content a {
    color: #004b85; /* azul principal Servincal */
    text-decoration: underline;
    text-decoration-color: rgba(0, 75, 133, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.medium-article-content a:hover {
    text-decoration-color: rgba(0, 75, 133, 0.7);
}

/* Citas */
.medium-article-content blockquote {
    border-left: 3px solid #004b85;
    padding-left: 1.5em;
    margin: 2.5em 0;
    font-style: italic;
    font-size: 1.05em;
    color: #4b5563;
    line-height: 1.58;
}

/* Listas */
.medium-article-content ul,
.medium-article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.medium-article-content li {
    margin-bottom: 0.5em;
    line-height: 1.58;
}

/* Imágenes */
.medium-article-content img {
    max-width: 100%;
    height: auto;
    margin: 3em auto;
    display: block;
    border-radius: 3px;
}

/* Código */
.medium-article-content code {
    background: #f2f2f2;
    padding: 0.125em 0.375em;
    border-radius: 3px;
    font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", Consolas, "Courier New", monospace;
    font-size: 0.875em;
    color: #333;
}

.medium-article-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1.5em;
    overflow-x: auto;
    margin: 2.5em 0;
    font-size: 0.875em;
}

.medium-article-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* Separadores */
.medium-article-content hr {
    border: none;
    height: 1px;
    background: #e6e6e6;
    margin: 3em 0;
}

/* Responsive */
@media (max-width: 768px) {
    .medium-article-content {
        font-size: 18px;
        line-height: 1.58;
    }

    .medium-article-content h1 { font-size: 1.75em; }
    .medium-article-content h2 { font-size: 1.5em; }
    .medium-article-content h3 { font-size: 1.25em; }
    .medium-article-content h4 { font-size: 1.125em; }
}

/* Estilos para elementos oembed y videos embebidos */
figure.media {
    margin: 2rem 0;
    text-align: center;
}

figure.media oembed {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Convertir oembed a iframe cuando sea posible */
figure.media oembed[url*="youtube.com"] {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

figure.media oembed[url*="youtube.com"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') center/60px no-repeat;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

/* Estilos para iframes directos */
.prose iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .prose iframe {
        height: 250px;
    }
}

/* Estilos para elementos embebidos en general */
.prose figure {
    margin: 2rem 0;
}

.prose oembed {
    display: block;
    width: 100%;
    margin: 1rem 0;
}

/* Ajustes específicos para el contenido del post en Servincal */
.blog-content p {
    margin-bottom: 1rem;
    font-size: 18px;
    line-height: 1.9;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 1.25rem;
    list-style-position: outside;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content em {
    font-style: italic;
}

.blog-content strong {
    font-weight: 600;
}

.blog-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.blog-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
