/*
 * Estilos específicos para páginas de artículo del blog.
 * Complementa style.css — no lo reemplaza.
 */

/* ===== BREADCRUMB ===== */
.post__breadcrumb {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.breadcrumb li a {
    color: var(--color-primary);
    transition: opacity var(--transition-base);
}

.breadcrumb li a:hover {
    opacity: 0.75;
}

.breadcrumb li[aria-current="page"] {
    color: var(--color-muted);
}

/* ===== ARTICLE HEADER ===== */
.post {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.post__header {
    margin-bottom: 3rem;
}

.post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.post__tag {
    background-color: rgba(31, 94, 255, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
}

.post__title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.post__lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.post__cover {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    margin: 0;
}

.post__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post__cover figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
    text-align: center;
    background-color: rgba(15, 23, 42, 0.03);
}

/* ===== ARTICLE BODY ===== */
.post__body {
    display: grid;
    gap: 2.5rem;
}

.post__section {
    display: grid;
    gap: 1.25rem;
}

.post__section h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    color: var(--color-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(31, 94, 255, 0.15);
}

.post__section p {
    color: var(--color-secondary);
    line-height: 1.8;
}

/* ===== FIGURES ===== */
.post__figure {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
    margin: 0;
}

.post__figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post__figure figcaption {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
    text-align: center;
    background-color: rgba(15, 23, 42, 0.03);
}

/* ===== VIDEO EMBED ===== */
.post__video-wrapper {
    display: grid;
    gap: 0.75rem;
}

.post__video-label {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.post__video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    background-color: var(--color-secondary);
}

.post__video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== BLOCKQUOTE ===== */
.post__quote {
    background: linear-gradient(135deg, rgba(31, 94, 255, 0.06), rgba(56, 189, 248, 0.06));
    border-left: 4px solid var(--color-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
    margin: 0;
}

.post__quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.7;
}

/* ===== LIST ===== */
.post__list {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding: 0;
}

.post__list li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
    color: var(--color-secondary);
}

.post__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* ===== FOOTER DEL ARTÍCULO ===== */
.post__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.post__back {
    display: inline-flex;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .post {
        padding-top: 3rem;
    }

    .post__breadcrumb {
        padding-top: 2rem;
    }
}
