/* Page-specific styles for individual blog post pages (blog/*.html).
   Shared navbar/footer/dropdown come from blog.css (same file every post
   links, right after it). This file is only the article itself. */

.post-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    border-bottom: 1px dashed rgba(30, 30, 30, 0.2);
}

.post-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30, 30, 30, .5);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 200ms ease;
}
.post-hero .back-link:hover { color: #1E1E1E; }

.post-hero .post-meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.post-hero .post-category {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    letter-spacing: .05em;
    background: #1E1E1E;
    color: #fff;
    padding: 6px 14px;
    border-radius: 40px;
}
.post-hero .post-date {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30, 30, 30, .45);
}

.post-hero h1 {
    font-size: 54px;
    line-height: 64px;
    font-weight: 500;
    max-width: 820px;
    margin-bottom: 24px;
}

.post-hero .post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-hero .post-author img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.post-hero .post-author .name { font-size: 15px; font-weight: 600; }
.post-hero .post-author .read-time { font-size: 13px; color: rgba(30, 30, 30, .5); }

/* ── ARTICLE BODY ── */
.post-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 70px 0 60px;
}

.post-body p {
    font-size: 18px;
    line-height: 30px;
    color: rgba(30, 30, 30, .78);
    margin-bottom: 24px;
}

.post-body h2 {
    font-size: 32px;
    line-height: 42px;
    font-weight: 500;
    margin: 56px 0 20px;
}

.post-body h2:first-child { margin-top: 0; }

.post-body h3 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    margin: 36px 0 14px;
}

.post-body ul, .post-body ol {
    margin: 0 0 24px 22px;
}
.post-body li {
    font-size: 18px;
    line-height: 29px;
    color: rgba(30, 30, 30, .78);
    margin-bottom: 10px;
}
.post-body li strong { color: #1E1E1E; font-weight: 600; }
.post-body p strong { color: #1E1E1E; font-weight: 600; }

.post-callout {
    background: #fff;
    border: 1px solid rgba(30, 30, 30, .1);
    border-left: 3px solid var(--accent, #FFD600);
    border-radius: 0 14px 14px 0;
    padding: 24px 28px;
    margin: 36px 0;
}
.post-callout p { margin-bottom: 0; font-size: 16.5px; }
.post-callout p:not(:last-child) { margin-bottom: 14px; }

/* ── INLINE CTA (end of article) ── */
.post-cta {
    max-width: 700px;
    margin: 20px auto 100px;
    background: #1E1E1E;
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
}
.post-cta h3 { color: #fff; font-size: 28px; line-height: 36px; font-weight: 500; margin-bottom: 10px; }
.post-cta h3 .highlight { color: var(--accent, #FFD600); }
.post-cta p { color: rgba(255, 255, 255, .6); font-size: 16px; line-height: 24px; margin-bottom: 24px; }
.post-cta a.btn-cta {
    background-color: var(--accent, #FFD600);
    color: #1E1E1E;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 40px;
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 200ms ease, transform 200ms ease;
}
.post-cta a.btn-cta:hover { opacity: .85; transform: translateY(-2px); }

/* ── RELATED POSTS ── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.related-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(30, 30, 30, .1);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(30, 30, 30, .25);
}
.related-card .bc-category {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    letter-spacing: .05em;
    color: rgba(30, 30, 30, .45);
}
.related-card h4 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    margin-top: 10px;
}

@media screen and (max-width: 850px) {
    .post-hero { padding-top: 130px; }
    .post-hero h1 { font-size: 38px; line-height: 46px; }
    .related-grid { grid-template-columns: 1fr; }
    /* .post-body is an <article> with no .container wrapper, so it never
       picks up the site's normal section side gutters (section{padding-
       inline:...} doesn't match it, and it's not a .container child) -
       below the point where its own max-width:700px stops creating margin
       for us, it was running text edge-to-edge. */
    .post-body { padding-inline: 40px; }
}

@media screen and (max-width: 650px) {
    section { padding-inline: 20px; }
    .post-body { padding-inline: 20px; }
    .post-hero h1 { font-size: 30px; line-height: 38px; }
    .post-body h2 { font-size: 26px; line-height: 34px; margin: 40px 0 16px; }
    .post-body p, .post-body li { font-size: 16px; line-height: 26px; }
    .post-cta { padding: 32px 24px; }
    .post-cta h3 { font-size: 24px; line-height: 30px; }
}

/* ── POST IMAGE ──
   Fotografija posta, između hero-a i teksta. Postoji samo kad post ima
   svoju sliku (agent je generiše uz draft) - bez nje stranica kreće od
   naslova pravo u tekst, kao i do sada, pa ovaj blok tada ne postoji u
   HTML-u uopšte.

   aspect-ratio drži 16:9 i pre nego što se slika učita, pa tekst ispod ne
   poskoči kad stigne. width/height na <img> su tu iz istog razloga za
   pregledače koji ne poštuju aspect-ratio na kontejneru. */
.post-figure {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0 0;
}
.post-figure .post-figure-media {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(30, 30, 30, .06);
}
.post-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-figure figcaption {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30, 30, 30, .45);
    margin-top: 10px;
    text-align: center;
}

@media screen and (max-width: 850px) {
    .post-figure { padding: 36px 40px 0; }
}
@media screen and (max-width: 650px) {
    .post-figure { padding: 26px 20px 0; }
    .post-figure .post-figure-media { border-radius: 12px; }
}
