/* =====================================
   SINGLE – ARTICLE + RELATED + NEWSLETTER + POPULAR
   Theme: soundreportV2
===================================== */

/* =====================================
   ARTICLE LAYOUT
===================================== */

.sr-article{
  max-width: 760px;
  margin: 0 auto;
}

.sr-article-header{
  margin-bottom: 40px;
}

.sr-article-title{
  font-size: 42px;
  line-height: 1.15;
  margin: 16px 0 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sr-article-lead{
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Meta – light version (badge-like) */
.sr-article-meta{
  margin: 18px 0 0;
  padding: 10px 16px;
  background: #f7f7f7;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  font-size: 13px;
}

.sr-article-date{
  font-weight: 800;
  color: var(--sr-black);
}

.sr-article-author{
  font-weight: 800;
  color: var(--sr-black);
  text-decoration: none;
}

.sr-article-author:hover{
  color: var(--sr-accent);
}

.sr-meta-sep{
  opacity: 0.4;
}

/* Author role badge (NOVINAR / FOTOGRAF) */
.sr-author-role{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;

  padding: 3px 7px;
  border-radius: 999px;

  background: #e9e9e9;
  color: #444;
}

/* Body */
.sr-article-body{
  font-size: 18px;
  line-height: 1.8;
}

.sr-article-body p{
  margin-bottom: 1.4em;
}

/* Linkovi u člancima */
.sr-article-body a{
  color: var(--sr-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--sr-accent);
  transition: color .2s ease, border-color .2s ease;
}

.sr-article-body a:hover{
  color: #111;
  border-bottom-color: #111;
}

.sr-article-herocaption{
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.6;
}

.sr-article-footer{
  margin-top: 50px;
}

/* Post navigation (prev/next) */
.sr-post-nav{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.sr-post-nav-item{ flex: 1; }

.sr-post-nav-kicker{
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: 4px;
}

.sr-post-nav-title{
  font-size: 16px;
  font-weight: 600;
}

/* =====================================
   GUTENBERG BASIC FORMATTING
===================================== */

.wp-block-image{ margin: 30px 0; }

.wp-block-quote{
  border-left: 3px solid #111;
  padding-left: 15px;
  margin: 30px 0;
  font-style: italic;
}

.wp-block-heading{ margin-top: 40px; }

/* =====================================
   RELATED POSTS
===================================== */

.sr-related{
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--sr-border);
}

.sr-related-head{ margin-bottom: 24px; }

.sr-related-title{
  font-size: 22px;
  position: relative;
  padding-left: 14px;
  margin: 0;
}

.sr-related-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--sr-accent);
}

.sr-related-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sr-related-media{
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

.sr-related-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-related-card .sr-badge{
  margin-bottom: 8px;
  display: inline-block;
}

.sr-related-card-title{
  font-size: 18px;
  line-height: 1.25;
  margin: 10px 0 6px;
}

.sr-related-lead{
  font-size: 14px;
  opacity: 0.75;
}

.sr-related-sub{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--sr-muted);
}

.sr-related-link:hover .sr-related-card-title{
  color: var(--sr-accent);
}

@media (max-width: 1024px){
  .sr-related-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .sr-related-grid{ grid-template-columns: 1fr; }
}

/* =====================================
   READ NEXT (INLINE) – ispod teksta
   (Sticky verzija je u sr-readnext.css)
===================================== */

.sr-readnext{
  margin: 46px 0 10px;
  padding: 18px 18px;
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  background: #fff;
}

.sr-readnext-kicker{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sr-readnext-label{
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sr-muted);
}

.sr-readnext-title{
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.sr-readnext-lead{
  margin: 0;
  font-size: 14px;
  opacity: 0.78;
}

.sr-readnext-link:hover .sr-readnext-title{
  color: var(--sr-accent);
}

/* =====================================
   NEWSLETTER CTA
===================================== */

.sr-newsletter{
  margin-top: 60px;
  padding: 40px 28px;
  border-radius: 18px;
  background: var(--sr-accent-soft);
}

.sr-newsletter-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.sr-newsletter-title{
  font-size: 22px;
  margin: 0 0 8px;
}

.sr-newsletter-desc{
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.sr-newsletter-form{
  display: flex;
  gap: 10px;
}

.sr-newsletter-input{
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sr-border);
  min-width: 240px;
  font-size: 14px;
  outline: none;
}

.sr-newsletter-input:focus{
  border-color: var(--sr-accent);
}

.sr-newsletter-btn{
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: var(--sr-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sr-newsletter-btn:hover{ opacity: 0.9; }

@media (max-width: 900px){
  .sr-newsletter-inner{ grid-template-columns: 1fr; }
  .sr-newsletter-form{
    flex-direction: column;
    align-items: stretch;
  }
  .sr-newsletter-input{
    min-width: 100%;
  }
}

/* =====================================
   POPULAR (WPP) – na single
===================================== */

.sr-popular{
  margin-top: 70px;
}
/* =====================================
   GUTENBERG – EMBED full width (inside article)
===================================== */

.sr-article-body .wp-block-embed,
.sr-article-body .wp-block-embed__wrapper,
.sr-article-body iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.sr-article-body .wp-block-embed iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}/* =====================================
   EMBEDS – consistent spacing in article
===================================== */

.sr-article-body .wp-block-embed {
  margin: 28px 0; /* razmak iznad i ispod embed bloka */
}

.sr-article-body .wp-block-embed__wrapper {
  width: 100%;
  max-width: 100%;
}

/* fallback za razne oEmbed iframes */
.sr-article-body .wp-block-embed iframe,
.sr-article-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}.sr-article-body .wp-block-embed iframe {
  border-radius: 12px;
  overflow: hidden;
}
/* =====================================
   SINGLE – Sidebar ad (desktop only)
===================================== */

@media (min-width: 1180px){
  .sr-article-bodywrap--withside:has(.sr-ad--sidebar){
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 34px;
    align-items: start;
  }

  .sr-ad--sidebar{
    position: sticky;
    top: 110px; /* ispod sticky headera */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sr-border);
    background: #111;
  }

  .sr-ad--sidebar .sr-ad-img{
    display:block;
    width:100%;
    height:auto;
  }
}

/* On mobile/tablet: sidebar ad hidden (because it won't render nicely) */
@media (max-width: 1179px){
  .sr-ad--sidebar{ display:none; }
}

/* =====================================
   RESPONSIVE TYPE (mobile)
===================================== */
@media (max-width: 640px){
  .sr-article-title{
    font-size: 32px;
    line-height: 1.18;
  }

  .sr-article-lead{
    font-size: 18px;
    line-height: 1.65;
  }

  .sr-article-body{
    font-size: 17px;
  }
}
/* =====================================
   POST NAV — Prethodno / Sljedeće
===================================== */
.sr-post-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sr-border);
}

.sr-post-nav-kicker {
  color: var(--sr-accent);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sr-post-nav-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sr-black);
  transition: color .2s ease;
}

.sr-post-nav-item:hover .sr-post-nav-title {
  color: var(--sr-accent);
}

.sr-post-nav-item--next {
  text-align: right;
}
/* Gallery - masonry */
.gallery {
    column-count: 3;
    column-gap: 6px;
    margin: 2rem 0;
}

.gallery-item {
    break-inside: avoid;
    margin: 0 0 6px 0;
    width: 100% !important;
    display: block;
}

.gallery-icon {
    line-height: 0;
}

.gallery-icon a {
    display: block;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery-icon a:hover img {
    opacity: 0.85;
    cursor: zoom-in;
}

.gallery-caption {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
}
/* =====================================
   CAPTIONS – naslovna + slike u tekstu
===================================== */

.sr-article-herocaption,
.sr-article-body figcaption,
.sr-article-body .wp-caption-text {
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
    font-style: italic;
}