/* =====================================
   HOME – HERO + GRIDOVI (Najnovije / Popularno / Kategorije)
   Theme: soundreportV2
===================================== */

/* =====================================
   HOME SECTIONS (portal feel)
===================================== */

.sr-home-section {
  margin-bottom: 80px;
  border-top: 1px solid var(--sr-border);
  padding-top: 40px;
}

.sr-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

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

.sr-home-section-more {
  font-size: 14px;
  opacity: 0.75;
}

/* =====================================
   HERO (slider lijevo + tekst desno) – DARK MAGAZINE
===================================== */

.sr-home-hero {
  margin: 0 0 34px 0;
}

/* HERO wrapper */
.sr-hero-wrap {
  max-width: 1180px;
  margin: 0 auto 34px auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;

  background: #0b0b0c;
  border-radius: 16px;
  overflow: hidden;
}

/* SLIDER box */
.sr-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  margin: 0;
}

/* ✅ FIX: hero visina na wrapperu, ne na slici */
.sr-hero-slider,
.sr-hero-media {
  height: 440px;
}

/* ✅ FIX: ako globalni CSS daje aspect-ratio, pregazi ga */
.sr-hero-media {
  display: block;
  width: 100%;
  max-width: none;
  overflow: hidden;
  aspect-ratio: auto !important;
}

/* track + slide */
.sr-hero-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
  height: 100%;
}

.sr-hero-slide {
  min-width: 100%;
  height: 100%;
}

.sr-hero-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ✅ FIX: slika popunjava roditelja 100% */
.sr-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ARROWS */
.sr-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.30);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  z-index: 3;
}

.sr-hero-prev { left: 12px; }
.sr-hero-next { right: 12px; }

.sr-hero-nav:hover {
  background: rgba(0, 0, 0, 0.50);
}

/* DOTS */
.sr-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.sr-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sr-hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.sr-hero-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

/* DESNI BOX (tekst) */
.sr-hero-side {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 28px 28px;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.sr-hero-side-link {
  display: block;
  text-decoration: none;
  color: #fff;
  width: 100%;
  text-align: left;
}

.sr-hero-side-kicker {
  margin: 0 0 10px 0;
}

/* badge na tamnom */
.sr-hero-side .sr-badge {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.90);
}

.sr-hero-side-title {
  color: #fff;
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 12px 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sr-hero-side-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  opacity: 1;
  margin: 0 0 14px 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.sr-hero-side-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* FORCE (da uvijek bude gore lijevo) */
.sr-hero-wrap .sr-hero-side {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

/* Responsive hero: stacked */
@media (max-width: 900px) {
  .sr-hero-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sr-hero-slider,
  .sr-hero-media {
    height: 340px;
  }

  .sr-hero-side {
    padding: 18px 18px 22px;
  }

  .sr-hero-side-title {
    font-size: 26px;
    -webkit-line-clamp: 3;
  }

  .sr-hero-side-lead {
    -webkit-line-clamp: 4;
  }
}

/* =====================================
   NAJNOVIJE – 3x3 grid (9 postova)
===================================== */

.sr-home-top {
  margin: 44px 0 70px;
}

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

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

@media (max-width: 560px) {
  .sr-home-latestgrid { grid-template-columns: 1fr; }
}

/* =====================================
   POPULARNO – WPP grid (responsive)
===================================== */

.sr-pop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* slike uredno 16:9 */
.sr-hcard--popular .sr-hcard-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.sr-hcard--popular .sr-hcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-hcard--popular .sr-hcard-views {
  opacity: 0.65;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .sr-pop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sr-pop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sr-pop-grid { grid-template-columns: 1fr; }
}

/* =====================================
   KATEGORIJE – 3 kartice u jednom redu
===================================== */

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

@media (max-width: 900px) {
  .sr-home-row3 { grid-template-columns: 1fr; }
}

/* Najnovije: ujednači visine kartica u gridu */
.sr-home-latestgrid{
  align-items: stretch;
}

.sr-home-latestgrid .sr-hcard{
  height: 100%;
}

/* =====================================
   CATEGORY TILES NAV (after Popularno)
   5 tiles in one row, only category badge
===================================== */

.sr-catnav .sr-home-section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

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

.sr-catnav-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sr-catnav-tile{
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 9;
}

.sr-catnav-img{
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  display: block;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.sr-catnav-fallback{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111, #222);
}

.sr-catnav-label{
  position: absolute;
  left: 12px;
  top: 12px;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  backdrop-filter: blur(6px);
}

.sr-catnav-tile:hover .sr-catnav-img{
  transform: scale(1.07);
}

/* Responsive */
@media (max-width: 1100px){
  .sr-catnav-grid{ grid-template-columns: repeat(3, 1fr); }
}

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

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

/* ===== Mobile landscape guard (npr 800×360) ===== */
@media (max-width: 860px) and (max-height: 420px){
  .sr-hero-slider,
  .sr-hero-media{ height: 240px; }

  .sr-hero-side{ padding: 14px 14px 16px; }
  .sr-hero-side-title{ font-size: 22px; }
  .sr-hero-side-lead{ display:none; }
}

/* ===== Big desktop polish ===== */
@media (min-width: 1400px){
  .sr-hero-slider,
  .sr-hero-media{ height: 480px; }
}