/**
 * Chrome do single post: progress bar, breadcrumb, article head, cover,
 * 2-col layout, TOC sticky, post-footer (tags + share + author bio),
 * related grid head.
 */

/* === Progress bar fixed top === */
.progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: transparent;
    z-index: 60;
    pointer-events: none;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), #7C3AED);
    transition: width 0.1s ease;
}

/* === Breadcrumb === */
.breadcrumb {
    max-width: 44rem;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--slate-500);
}
.breadcrumb a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--slate-300); }
.breadcrumb-current {
    color: var(--slate-700);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18rem;
}

/* === Article head === */
.article-head {
    max-width: 44rem;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
    text-align: left;
}
.post-eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 9999px;
    padding: 0.3125rem 0.75rem;
    margin-bottom: 1.25rem;
}
.post-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 1rem;
}
.post-deck {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--slate-500);
    line-height: 1.55;
    margin-bottom: 1.75rem;
    max-width: 38rem;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}
.post-meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.post-meta-info { display: flex; flex-direction: column; line-height: 1.2; }
.post-meta-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-800);
}
.post-meta-role {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.125rem;
}
.post-meta-dot {
    width: 3px; height: 3px;
    border-radius: 9999px;
    background: var(--slate-300);
}
.post-meta-time {
    font-size: 0.8125rem;
    color: var(--slate-500);
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
}
.post-meta-time svg { width: 0.875rem; height: 0.875rem; }

/* === Post cover === */
.post-cover {
    max-width: 56rem;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}
.post-cover-frame {
    position: relative;
    aspect-ratio: 16 / 7;
    border-radius: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(52, 132, 196, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(109, 40, 217, 0.14), transparent 60%),
        linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-cover-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.post-cover-illu {
    position: relative;
    z-index: 1;
    text-align: center;
}
.post-cover-illu .big {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -0.05em;
    line-height: 1;
}
.post-cover-illu .small {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--slate-500);
    margin-top: 0.625rem;
}

/* === Article layout (2-col) === */
.article-layout {
    max-width: 72rem;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 14rem minmax(0, 44rem);
        gap: 3rem;
        justify-content: center;
    }
}

/* === TOC === */
.toc { font-size: 0.8125rem; }
@media (min-width: 1024px) {
    .toc {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}
.toc--hidden { display: none; }
.toc-title {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-400);
    margin-bottom: 0.75rem;
}
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
    border-left: 0;
}
/* Cada link da TOC tem sua própria border-left que muda cor no
 * hover e quando o heading correspondente está visível (scroll spy). */
.toc-list a {
    display: block;
    color: var(--slate-500);
    text-decoration: none;
    line-height: 1.4;
    padding: 0.375rem 0 0.375rem 0.75rem;
    border-left: 2px solid var(--slate-100);
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.toc-list a.is-h3 {
    padding-left: 1.5rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}
.toc-list a:hover {
    color: var(--blue);
    border-color: var(--blue-200);
    background: var(--blue-50);
}
.toc-list a.is-active {
    color: var(--blue);
    border-color: var(--blue);
    font-weight: 600;
}

/* === Post footer (tags / share / bio) === */
.post-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4375rem;
    margin-bottom: 1.5rem;
}
.post-tags-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-400);
    margin-right: 0.5rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 2rem;
}
.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
}
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
    width: 2.25rem; height: 2.25rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    cursor: pointer;
}
.share-btn svg { width: 0.9375rem; height: 0.9375rem; }
.share-btn:hover {
    border-color: var(--blue-200);
    background: var(--blue-50);
    color: var(--blue);
}
.share-btn.is-copied {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border-color: var(--accent-green-bd);
}

/* === Author bio === */
.author-bio {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    padding: 1.5rem;
}
.author-bio .avatar {
    width: 3.5rem !important;
    height: 3.5rem !important;
    font-size: 0.9375rem;
    flex-shrink: 0;
}
.author-bio-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
}
.author-bio-role {
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin-top: 0.125rem;
}
.author-bio-text {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-top: 0.75rem;
}
.author-bio-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.author-bio-links a {
    color: var(--slate-500);
    transition: color 0.15s;
    display: inline-flex;
}
.author-bio-links a:hover { color: var(--blue); }
.author-bio-links svg { width: 1.125rem; height: 1.125rem; }

/* === Related === */
.related {
    max-width: 72rem;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}
.related-head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}
.related-sub {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.375rem;
}
