/* post.css — premium, čist; scope: .post; koristi varijable iz tokens.css */
.post { font-family: var(--ff); color: var(--text); background: var(--app-bg); margin-top: 13vh; }
.post__container { width: var(--container-w); max-width: var(--container-max); margin: 0 auto; }
.post__section { padding: 24px 0; }

/* Breadcrumb */
.post__breadcrumb { display:flex; gap:8px; align-items:center; color: var(--text-weak); font-size: 14px; padding-bottom: 15px; }
.post__breadcrumb a { color: inherit; text-decoration: none; }
.post__breadcrumb a:hover { text-decoration: underline; }

/* Hero card */
.post__heroCard {
  border:1px solid var(--neutral-200); background:#fff; border-radius: 16px; overflow: clip;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(2,8,23,.06));
}
.post__progress {
  height: 3px; width: 100%; background: linear-gradient(90deg, var(--primary) var(--p,0%), transparent 0);
}
.post__header { padding: 16px; display:grid; gap:10px; }
.post__eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); }
.post__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin: 0; }
.post__lead { color: var(--text-weak); font-size: 18px; margin: 0; }
.post__meta { display:flex; gap:8px; align-items:center; flex-wrap: wrap; color: var(--text-weak); font-size: 14px; }
.post__tags { display:flex; gap:6px; padding:0; margin:0; list-style:none; }
.post__tags a { color: inherit; text-decoration: none; }
.post__tags a:hover { text-decoration: underline; }

.post__cover img, .post__coverPh {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display:block;
}
.post__coverPh { background: linear-gradient(135deg, var(--primary), var(--accent-2)); }

/* Grid: content + TOC */
.post__grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.post__content {
  background:#fff; border:1px solid var(--neutral-200); border-radius:16px; padding: 16px;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(2,8,23,.06)); max-width:90vw;
}
.post__content h2 { font-size: clamp(20px, 2.2vw, 28px); margin: 10px 0 6px; }
.post__content h3 { font-size: clamp(16px, 1.8vw, 20px); margin: 8px 0 4px; }
.post__content p, .post__content ul, .post__content ol { line-height: 1.68; color: var(--text); opacity: .95; }
.post__content ul, .post__content ol { padding-left: 18px; }
.post__content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post__divider { border: none; border-top: 1px solid var(--neutral-200); margin: 14px 0; }

/* Feature grid */
.post__features {
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 10px;
}
.post__feature {
  border:1px solid var(--neutral-200); border-radius:14px; padding:12px; background:#fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post__feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post__feature h4 { margin: 0 0 4px; }

/* Utility blokovi */
.post__callout {
  border:1px solid var(--neutral-200); background: linear-gradient(180deg, color-mix(in oklab, var(--glass-strong) 50%, #fff), #fff 60%);
  border-radius: 14px; padding: 12px; margin: 8px 0; color: var(--text);
}
.post__note {
  border:1px dashed var(--neutral-300); border-radius: 14px; padding: 12px; background:#fff; margin: 8px 0;
  color: var(--text-weak);
}
.post__quote {
  margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--primary); background: var(--neutral-50);
  font-size: 18px; line-height: 1.6; color: var(--text);
}

/* Author & share */
.post__author { display:flex; gap:12px; align-items:center; }
.post__authorAvatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border:1px solid var(--neutral-200); }
.post__authorMeta { display:grid; gap:6px; }
.post__authorName { font-weight: 700; }
.post__authorRole { color: var(--text-weak); font-size: 14px; }
.post__share { display:flex; gap:8px; }
.post__btn {
  padding:8px 12px; border-radius: var(--radius-pill); border:1px solid var(--neutral-200); background:#fff; font-weight:600; cursor:pointer;
  transition: background .2s ease, transform .15s ease;
}
.post__btn:hover { background: var(--neutral-100); transform: translateY(-1px); }

/* Tags row */
.post__tagsRow { display:flex; gap:6px; flex-wrap:wrap; margin-top: 8px; }
.post__tag {
  display:inline-block; padding:6px 10px; border-radius: var(--radius-pill);
  border:1px dashed var(--neutral-300); color: var(--text-weak); text-decoration: none; font-weight:600;
}
.post__tag:hover { background: var(--neutral-50); }

/* TOC sidebar */
.post__toc { position: sticky; top: 12px; height: fit-content; }
.post__tocCard {
  border:1px solid var(--neutral-200); background:#fff; border-radius:16px; padding: 12px;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(2,8,23,.06));
}
.post__tocTitle { font-weight: 700; margin-bottom: 6px; color: var(--text-weak); }
.post__tocNav ul { list-style: none; padding: 0; margin: 0; display:grid; gap:6px; }
.post__tocNav li a {
  display:block; text-decoration:none; color: var(--text); opacity: .85; line-height: 1.4;
  border-radius: 8px; padding: 4px 6px;
}
.post__tocNav li a:hover { background: var(--neutral-50); }
.post__tocNav a.active { background: var(--neutral-100); font-weight: 700; }
.post__tocNav li.lvl-h3 a { padding-left: 16px; opacity: .75; }

/* More nav */
.post__more {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-top: 1px solid var(--neutral-200); padding-top: 12px;
}
.post__moreLink { color: var(--text); text-decoration: none; font-weight: 700; }
.post__moreLink:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .post__grid { grid-template-columns: 1fr; }
  .post__toc { position: static; }
  .post__features { grid-template-columns: 1fr; }
}



/* --- LEBDEĆE DUGME ZA ASISTENTA (Samo za Blog) --- */
.floating-asistent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #71bada;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(113, 186, 218, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.floating-asistent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(113, 186, 218, 0.6);
    color: white;
}

.floating-asistent svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Na mobilnom postaje mala okrugla ikonica iznad menija */
@media (max-width: 1024px) {
    .floating-asistent {
        bottom: 90px; 
        right: 20px;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
    }
    .floating-asistent .fa-text {
        display: none; 
    }
    .floating-asistent svg {
        width: 28px;
        height: 28px;
        margin: 0;
    }
}