/* =============================================
   TALKS News Portal - Main Stylesheet
   ============================================= */

:root {

    --header-height: 40px;
    --primary: #fb530d;
    --primary-dark: #cc0000;
    --secondary: #1a1a2e;
    --accent: #e94560;
    --dark: #0d0d1a;
    --light: #f4f6f9;
    --text: #222222;
    --text-muted: #6c757d;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background:#f9f9f9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
}

/* ============ PAGE LOADER ============ */
.page-loader {
    position: fixed; inset: 0; background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
    font-family: var(--font-display); font-size: 4rem; font-weight: 900;
    color: var(--primary); margin-bottom: 1rem; animation: pulse 1s ease-in-out infinite;
}
.loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--primary); animation: loading 1.5s ease-in-out infinite; }
@keyframes loading { 0% { width: 0; margin-left: 0; } 50% { width: 100%; margin-left: 0; } 100% { width: 0; margin-left: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ============ TOP BAR ============ */
.top-bar {
    background: #fff; color:#333;
    font-size: 0.75rem; padding: 6px 0;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;

}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar a { color: rgba(0, 0, 0, 0.7); }
.top-bar a:hover { color: white; }
.top-bar-right a { font-size: 0.85rem; }

/* ============ HEADER ============ */
.site-header {
    background: var(--white);
    position: sticky; top: 0; z-index: 1000;
    max-width: 1240px;
    margin-left:auto;
    margin-right: auto;
    /* UKLONJENA SENKA (box-shadow) da ne bi prljala ekran celom širinom */
}

.header-logo-row {
    background-color: #ffffff; /* Boxed layout boja */
    padding: 15px 20px; /* Dodajemo prostora gore i dole */
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color); /* Linija između logotipa i menija (opciono, ali izgleda bolje) */
}

.header-inner {
    display: flex; 
    align-items: center; /* Vertikalno centrira logo i ikonicu za pretragu */
    gap: 20px;
    height: var(--header-height); /* Kontejner dobija visinu */
    padding: 0;
    border-top: 1px solid #aaa;
    position: relative;
}

.header-inner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px; /* Gura je tačno ispod hedera */
    width: 100%;
    height: 1px;
    background: #aaaaaa;
}
.site-logo {
    display: flex;
    align-items: center;
    
}
.site-logo img {
    height: 40px; /* Visina logotipa */
    width: auto;
    display: block;
}

.header-nav-row {
    background-color: #ffffff;
}

.logo-m { color: var(--text); } 
.logo-otiv { color: var(--text); }
.logo-m::after { content: '.'; color: #f40b85; } /* Pink tačka u logou za bolji efekat */

.main-nav {
    display: flex; 
    align-items: stretch; /* Flex magija: Tera meni da se razvuče tačno od vrha do dna kontejnera (40px) */
    gap: 0;
    flex: 1; 
    overflow-x: auto; 
    scrollbar-width: none;
    height: 100%;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
    display: flex; align-items: center; /* Centrira sam tekst unutar 40px visine */
    padding: 0 16px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
    color: var(--text); border-bottom: none;
    transition: all 0.2s ease; 
    height: 100%; /* Linkovi popunjavaju visinu menija */
}
/* Magija za solidnu pozadinu: Koristi boju iz baze kada se pređe mišem! */
.nav-link:hover {
    color: var(--cat-color, var(--primary));
  
}
.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.search-btn {
    width: auto; height: auto; border-radius: 0;
    background: transparent; color: var(--text);
    font-size: 1.3rem; transition: color 0.2s ease;
}
.search-btn:hover { color: var(--primary); }
.subscribe-btn { display: none; } /* Sakrivamo dugme jer ga nema na referentnoj slici */
.mobile-menu-btn { display: none; font-size: 1.3rem; color: var(--secondary); }
/* ============ MOBILE MENU ============ */
.mobile-menu {
    position: fixed; top: 0; left: -100%; width: 300px; height: 100vh;
    background: var(--secondary); z-index: 2000; transition: left 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
}
.mobile-menu-header button { color: white; font-size: 1.3rem; }
.mobile-nav { padding: 20px 0; }
.mobile-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px; color: rgba(255,255,255,0.85);
    font-weight: 500; transition: all var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.05); color: white; }
body.menu-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999;
}




/* ============ BREAKING NEWS ============ */
.breaking-bar {
    background: var(--white);
    color: var(--text);
    padding: 0;
    margin-bottom: 0px;
    overflow: visible; 
    max-width: 1240px;
    margin-left:auto;
    margin-right:auto;
    margin-top:3px;
}


.breaking-inner {
    display: flex; align-items: stretch; gap: 0;
    height: 36px; 
    /* PREBAČENA LINIJA OVDE: Sada je dugačka u milimetar kao i šarena linija iznad! */
    border-bottom: 1px solid var(--border);
}

.alone-logo{
    height:80px;
    width:100%;
    background-color:#fff;
    max-width:1240px;
    margin-left:auto;
    margin-right:auto;
    padding: 0 20px;
    padding-bottom: 20px;
    padding-top:20px;
}


.ticker-wrapper { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
    display: inline-flex; gap: 0; white-space: nowrap; align-items: center;
    animation: ticker 40s linear infinite;margin-top:4px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 20px; font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }
.ticker-item a { color: var(--text-muted); }
.ticker-item a:hover { color: var(--primary); text-decoration: underline; }
.ticker-sep { opacity: 0; margin: 0; } /* Pink nema tačkice između vesti, pa ih sakrivamo */

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ HERO SECTION ============ */
.hero-section { padding: 28px 0; }
/* Prebacili smo sa 2fr 1fr na 2.2fr 1fr 1fr kako bismo napravili 3 kolone */
.hero-grid { 
    display: grid; 
    grid-template-columns: 1.6fr 1fr; 
    gap: 20px; 
    align-items: stretch; /* KLJUČNO: Obe kolone su uvek iste visine */
}
.hero-card { 
    display: flex;
    flex-direction: column;
    flex: 1; /* KLJUČNO: Tera karticu do samog dna */
    background: white; 
    border-radius:0px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}

.hero-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-img-link { 
    display: flex;
    flex-direction: column;
    flex: 1; /* Oduzima preostali prostor iznad teksta */
}

/* Slika sada nema fiksnih 420px, već se kao tečnost prilagođava visini desne kolone! */
.hero-img {
    width: 100%;
    height: 100%;
    min-height: 250px; /* Zaštita za mobilne */
    background-size: cover; 
    background-position: center;
    position: relative; 
    overflow: hidden; 
    transition: transform 0.4s ease;
}
.hero-img:hover { transform: scale(1.02); }
/* v2: .hero-img sada sadrži pravi <img> (ranije CSS background-image) radi
   bržeg LCP-a — ovo pravilo ga vizuelno svodi na potpuno isto ponašanje
   (puni ceo kontejner, cover, centrirano) */
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-body { padding: 24px; }
.hero-title {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
    line-height: 1.3; margin: 10px 0;
}
.hero-title a:hover { color: var(--primary); }
.hero-excerpt { color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.hero-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
/* 3. Desna kolona (4 male vesti) */
.hero-side { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    height: 100%; /* Mora pratiti visinu Grid-a */
}

/* Svaka mala kartica dobija jednak deo prostora (tačno 25% minus gap) */
.side-card { 
    display: flex; 
    align-items: stretch; 
    flex: 1; /* KLJUČNO: Održava ih sve jednakim u visini */
    background: white; 
    border-bottom: 1px solid var(--border);
    border-radius: 0px;
    overflow: hidden;
    padding-bottom: 0; /* Sklanjamo padding da ne kvari matematiku */
}

.side-img-link { 
    width: 120px; 
    flex-shrink: 0; 
    display: flex;
}

.side-img { 
    width: 100%; 
    height: 100%; /* Puni celu visinu male kartice */
    background-size: cover; 
    background-position: center; 
}

.side-body { 
    padding: 12px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* Savršeno vertikalno centrira tekst u maloj kartici */
}
.side-body h3 { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.4; margin: 4px 0; }
.side-body h3 a:hover { color: var(--primary); }

/* ============ BADGES ============ */
.cat-badge {
    display: inline-block; padding: 3px 10px; border-radius: 3px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: white; margin-bottom: 6px;
}
.cat-badge-sm {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.badge-breaking {
    position: absolute; top: 14px; left: 14px; background: var(--primary);
    color: white; padding: 5px 12px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    display: flex; align-items: center; gap: 5px; animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.badge-breaking-sm {
    position: absolute; top: 8px; left: 8px; background: var(--primary);
    color: white; padding: 2px 8px; border-radius: 2px;
    font-size: 0.65rem; font-weight: 700;
}

/* ============ SECTION HEADER ============ */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-title {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
}
.section-title span { color: var(--primary); }
.see-all {
    font-size: 0.82rem; font-weight: 600; color: var(--primary);
    display: flex; align-items: center; gap: 5px;
}
.see-all:hover { color: var(--primary-dark); }
.cat-title { display: flex; align-items: center; gap: 10px; }
.cat-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cat-color, var(--primary)); flex-shrink: 0; }

/* ============ ARTICLES GRID ============ */
.latest-section { padding: 0 0 28px; }
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.article-card { background: white; border-radius: 0px; overflow: hidden; transition: transform var(--transition); }
.article-card:hover { transform: translateY(-3px); }
.article-img { height: 180px; background-size: cover; background-position: center; position: relative; overflow: hidden; transition: transform 0.4s; }
.article-card:hover .article-img { transform: scale(1.04); }
/* AEO/perf: kategorija/tag/pretraga liste sada koriste pravi <img loading="lazy">
   unutar .article-img umesto background-image div-a — nema više potrebe za
   IntersectionObserver-om iz main.js za ove kartice, native lazy load je i
   brži i lakši za browser. */
.article-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-body { padding: 14px; }
.article-body h3 { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.4; margin: 4px 0 8px; }
.article-body h3 a:hover { color: var(--primary); }
.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Maksimalno 4 reda */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.5; /* Malo veći razmak između redova za lakše čitanje */
    margin-bottom: 15px; /* Pravi lep razmak pre meta podataka ispod */
}
.article-meta { display: flex; gap: 8px; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.meta-time { font-size: 0.75rem; color: var(--text-muted); }

/* ============ CATEGORY SECTIONS ============ */
.cat-section { padding: 28px 0; background: white; margin: 8px 0; }
.cat-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.cat-main-card { }
.cat-main-img { height: 240px; background-size: cover; background-position: center; border-radius: var(--radius-sm); margin-bottom: 12px; }
.cat-main-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.cat-main-title a:hover { color: var(--primary); }
.cat-main-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.cat-small-card { }
.cat-small-inner { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cat-small-inner:last-child { border-bottom: none; }
.cat-small-img { width: 80px; height: 65px; flex-shrink: 0; background-size: cover; background-position: center; border-radius: var(--radius-sm); }
.cat-small-inner h4 { font-family: var(--font-display); font-size: 0.87rem; line-height: 1.4; }
.cat-small-inner h4 a:hover { color: var(--primary); }

/* ============ WIDGETS ============ */
.widgets-section { padding: 28px 0; }
.widgets-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.widget { background: white; border-radius: 0px; overflow: hidden; }
.widget-header {
    background: transparent !important; /* Gasimo "kutije" sa bojama (crvenu/plavu pozadinu) */
    padding: 16px 18px 12px 0px !important;
    border-bottom: 2px solid var(--border); /* Diskretna linija ispod naslova */
}
.widget-header h3 {
    color: var(--secondary) !important; /* Slova postaju tamna umesto bela */
    font-family: var(--font-body);
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    padding-left: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Glavna crvena (primary) linija za standardne widgete */
    border-left: 6px solid var(--primary); 
}

/* Specifične boje za specifične widgete na sidebaru */
.weather-widget .widget-header h3 { 
    border-left-color: #f39c12; /* Narandžasta linija za vreme */
}
.widget-body { padding: 16px 18px; }
.most-read-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.most-read-item:last-child { border-bottom: none; }
.most-read-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; }
.most-read-item a { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.4; font-weight: 600; }
.most-read-item a:hover { color: var(--primary); }
.meta-sm { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.widget-newsletter { }
.widget-newsletter p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-form input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.88rem; }
.nl-form input:focus { outline: none; border-color: var(--primary); }
.nl-form button { background: var(--primary); color: white; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.nl-form button:hover { background: var(--primary-dark); }
.cat-widget-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.87rem; }
.cat-widget-item:last-child { border-bottom: none; }
.cat-widget-item:hover span:first-child { text-decoration: underline; }
.cat-count { background: var(--light); padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 0px; }
.footer-top { background: #f9f9f9; color: #333; padding: 0px 0 0px; }
.footer-grid { background: #fff; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: background var(--transition); }
.footer-social a:hover { background: var(--primary); color: white; }
.footer-links h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: white; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.87rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { background: transparent; color: rgba(255,255,255,0.5); padding: 14px 0; font-size: 0.8rem;   padding: 0 20px; margin-bottom:20px;}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    background: var(--primary); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 500; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all var(--transition); box-shadow: 0 4px 14px rgba(184,0,31,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============ ARTICLE PAGE ============ */
.article-main { padding: 24px 0 0px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.article-content { background: white; border-radius: 0px; padding: 32px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.article-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.25; margin: 10px 0; }
.article-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.article-meta-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.author-name { font-weight: 700; font-size: 0.9rem; display: block; }
.article-date { font-size: 0.78rem; color: var(--text-muted); }
.article-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }
.share-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; font-size: 0.82rem; }
.share-bar span { color: var(--text-muted); font-weight: 600; }
.share-btn { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: opacity var(--transition); }
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; color: white; }
.share-tw { background: #000; color: white; }
.share-wa { background: #25d366; color: white; }
.share-copy { background: var(--light); color: var(--text); }
.article-figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.article-featured-img { width: 100%; height: 400px; object-fit: cover; }
figcaption { padding: 8px 0; font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.article-body { font-size: 1rem; line-height: 1.85; color: #333; }
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 28px 0 14px; }
.article-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; margin: 24px 0; background: var(--light); font-style: italic; color: var(--text-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body .ql-video,
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="vimeo.com"] { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; margin: 16px 0; display: block; }
.article-body img { border-radius: var(--radius); }
.article-tags { margin: 24px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-tags span { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.tag-badge { background: var(--light); padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; transition: all var(--transition); }
.tag-badge:hover { background: var(--primary); color: white; }
.author-box { background: var(--light); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; margin: 24px 0; border: 1px solid var(--border); }
.author-box-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-avatar-ph { width: 70px; height: 70px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-muted); flex-shrink: 0; }
/* Automatsko formatiranje svih videa unutar teksta članka */
.article-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--radius);
    background: #000;
    margin: 24px 0;
}
.author-box-name { font-weight: 700; margin-bottom: 6px; }
.author-box p { font-size: 0.88rem; color: var(--text-muted); }
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.comments-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.comment-meta strong { font-size: 0.9rem; }
.comment-meta span { font-size: 0.75rem; color: var(--text-muted); }
.comment-body p { font-size: 0.9rem; }
.comment-form-wrap { margin-top: 24px; }
.comment-form-wrap h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form input, .comment-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-form button { background: var(--primary); color: white; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; align-self: flex-start; display: flex; align-items: center; gap: 6px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.article-sidebar { position: sticky; top: 80px; }
.related-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-img { width: 75px; height: 60px; flex-shrink: 0; background-size: cover; background-position: center; border-radius: var(--radius-sm); }
.related-item a { font-family: var(--font-display); font-size: 0.85rem; line-height: 1.4; font-weight: 600; display: block; margin-bottom: 4px; }
.related-item a:hover { color: var(--primary); }
.more-section { padding: 0px 0 0px; }
.more-section > :first-child {
    padding: 0 32px;
  padding-bottom: 60px;
  padding-top:40px;
  
}

/* ============ SEARCH / CATEGORY PAGE ============ */
.page-header { background: #f9f9f9; color: #333; padding: 0px 0; margin-bottom: 0px;padding-bottom:0px; }
.page-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.page-header p { opacity: 0.7; margin-top: 6px; }
.search-results-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination a:hover { background: var(--light); }

.katega{
   padding-top:0px!important;
   padding-bottom:0px!important;
}

.katega > div{
  padding:20px!important;
    padding-top:20px!important;
    background-color: transparent!important;
}

.page-header > .container > h1 {
   font-size: 1rem !important;
}
/* ============ TOAST ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--secondary); color: white; padding: 10px 20px; border-radius: var(--radius); font-size: 0.87rem; z-index: 9000; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid .cat-small-card:last-child { display: none; }
    
    /* DODATO ZA MOBILNE */
    .hero-grid { grid-template-columns: 1.5fr 1fr; }
    .hero-sidebar { display: none; } /* Gasimo trecu kolonu na manjim ekranima */
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .hero-img { height: 240px; }
    .hero-title { font-size: 1.3rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .widgets-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .article-title { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .share-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-content { padding: 16px; }
}

/* ============ GALLERY SLIDESHOW ============ */
.gallery-slideshow { margin: 32px 0; }
.gallery-title { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.slideshow-wrap { position: relative; background: #000; border-radius: 0px; overflow: hidden; }
.slides-track { display: flex; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); border-radius: 0px!important;}
.slide-item { min-width: 100%; position: relative; display: none; }
.slide-item.active { display: block; }
.slide-item img { width: 100%; max-height: 520px; object-fit: contain; cursor: zoom-in; display: block; }
.slide-caption { padding: 10px 16px; background: rgba(0,0,0,0.7); color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.slide-prev, .slide-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55); color: white; border: none; padding: 12px 16px;
    font-size: 1rem; cursor: pointer; transition: background 0.2s; z-index: 10; border-radius: 4px;
}
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-prev:hover, .slide-next:hover { background: rgba(184,0,31,0.85); }
.slide-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.slide-dot.active { background: white; transform: scale(1.3); }
.slide-counter { position: absolute; bottom: 12px; right: 14px; background: rgba(0,0,0,0.6); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; z-index: 10; }
/* Thumbnail strip */
.thumb-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb-img { width: 68px; height: 54px; object-fit: cover; border-radius: 0px; cursor: pointer; opacity: 0.55; transition: opacity 0.2s; border: 2px solid transparent; flex-shrink: 0; }
.thumb-img.active, .thumb-img:hover { opacity: 1; border-color: var(--primary); }

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: fixed; top: 16px; right: 20px; background: rgba(255,255,255,0.15); color: white; border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10000; }
.lb-close:hover { background: var(--primary); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: white; border: none; padding: 16px 20px; font-size: 1.2rem; cursor: pointer; border-radius: 4px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-prev:hover, .lb-next:hover { background: var(--primary); }
.lb-caption { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 12px; max-width: 600px; text-align: center; }
.lb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ============ VIDEO EMBED ============ */
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 24px 0; background: #000; }
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.article-video { width: 100%; border-radius: var(--radius); margin: 24px 0; max-height: 480px; }

/* ============ AMP LINK in article ============ */
.amp-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted); padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; margin-left: 8px; }
.amp-link:hover { color: var(--primary); border-color: var(--primary); }



/* ============ GALLERY SLIDESHOW ============ */
.gallery-slideshow { margin: 28px 0; }
.gallery-title { font-family: var(--font-body); font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--secondary); }
.slideshow-wrap {
    position: relative; background: #0d0d1a; border-radius: var(--radius);
    overflow: hidden; aspect-ratio: 16/9;
}
.slides-track {
    display: flex; transition: transform 0.4s ease; height: 100%;
}
.slide-item {
    min-width: 100%; height: 100%; position: relative; display: none; flex-direction: column;
}
.slide-item.active { display: flex; }
.slide-item img {
    width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
    max-height: calc(100% - 40px);
}
.slide-caption {
    padding: 8px 14px; background: rgba(0,0,0,0.7); color: white;
    font-size: 0.8rem; min-height: 36px; display: flex; align-items: center;
}
.slide-prev, .slide-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; z-index: 5; transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-prev:hover, .slide-next:hover { background: rgba(184,0,31,0.8); }
.slide-dots {
    position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.slide-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.45); cursor: pointer; transition: background var(--transition);
}
.slide-dot.active { background: white; }
.slide-counter {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(0,0,0,0.55); color: white;
    padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; z-index: 5;
}
.thumb-strip {
    display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding: 2px 0;
    scrollbar-width: thin;
}
.thumb-img {
    width: 70px; height: 50px; object-fit: cover; border-radius: 0px;
    cursor: pointer; opacity: 0.6; transition: all var(--transition);
    flex-shrink: 0; border: 2px solid transparent;
}
.thumb-img.active, .thumb-img:hover { opacity: 1; border-color: var(--primary); }

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 9000; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px; padding: 20px;
}
.lightbox #lbImg { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lb-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.15); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: white; border: none;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(184,0,31,0.7); }
.lb-caption { color: rgba(255,255,255,0.8); font-size: 0.88rem; text-align: center; max-width: 600px; }
.lb-counter { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ============ VIDEO EMBED ============ */
.video-embed-wrap {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: var(--radius); margin: 24px 0;
    background: #000;
}
.video-embed-wrap iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.article-video { width: 100%; border-radius: var(--radius); margin: 24px 0; }

/* ============ ADMIN NOTIFICATIONS BELL ============ */
.notif-wrapper { position: relative; }
.notif-bell-btn {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    background: var(--light); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text); cursor: pointer; border: 1px solid var(--border);
    transition: all var(--transition);
}
.notif-bell-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; background: var(--primary);
    border-radius: 20px; font-size: 0.65rem; font-weight: 700; color: white;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
    border: 2px solid white; animation: pulse 2s infinite;
}
.notif-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 340px; background: white; border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15); z-index: 1000;
    overflow: hidden; display: none; border: 1px solid var(--border);
}
.notif-panel.open { display: block; }
.notif-panel-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--secondary); color: white;
}
.notif-panel-header h4 { font-size: 0.88rem; font-weight: 700; }
.notif-mark-all { font-size: 0.75rem; color: rgba(255,255,255,0.7); cursor: pointer; background: none; border: none; color: rgba(255,255,255,0.7); }
.notif-mark-all:hover { color: white; }
.notif-item {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; gap: 10px; align-items: flex-start;
    transition: background var(--transition); cursor: pointer;
}
.notif-item:hover { background: var(--light); }
.notif-item.unread { background: #fff9f9; border-left: 3px solid var(--primary); }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; }
.notif-icon.comment { background: #dbeafe; color: #1d4ed8; }
.notif-icon.subscriber { background: #d1fae5; color: #065f46; }
.notif-icon.system { background: #fef3c7; color: #92400e; }
.notif-text { flex: 1; min-width: 0; }
.notif-text strong { font-size: 0.85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-text span { font-size: 0.75rem; color: var(--text-muted); }
.notif-empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.notif-empty i { font-size: 1.8rem; opacity: 0.3; display: block; margin-bottom: 8px; }
.notif-panel-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.notif-panel-footer a { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ============ PUSH NOTIFICATION PROMPT ============ */
.push-prompt {
    position: fixed; bottom: 80px; right: 20px;
    background: white; border-radius: var(--radius); padding: 16px 20px;
    box-shadow: var(--shadow-lg); z-index: 800; max-width: 300px;
    border-left: 4px solid var(--primary); animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.push-prompt h4 { font-size: 0.92rem; margin-bottom: 6px; color: var(--secondary); }
.push-prompt p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.push-prompt-btns { display: flex; gap: 8px; }
.push-prompt-btns button { flex: 1; padding: 7px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; }
.push-prompt-yes { background: var(--primary); color: white; }
.push-prompt-no { background: var(--light); color: var(--text-muted); }

/* ============ SCHEDULED BADGE ============ */
.badge-scheduled { background: #dbeafe; color: #1e40af; }

/* ============ TOAST IMPROVEMENTS ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--secondary); color: white; padding: 10px 20px; border-radius: var(--radius); font-size: 0.87rem; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: var(--primary); }

/* ============ AMP LINK ON ARTICLE ============ */
.amp-link { font-size: 0.75rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.amp-link:hover { color: var(--primary); }

/* ============================================
   TALKS v2.0 — Additional Styles
   ============================================ */

/* ===== VIDEO EMBED ===== */
.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 28px 0;
    background: #000;
}
.video-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.article-video {
    width: 100%;
    border-radius: var(--radius);
    margin: 28px 0;
    max-height: 480px;
}

/* ===== GALLERY SLIDESHOW ===== */
.gallery-slideshow {
    margin: 32px 0;
    border-radius: 0px;
    overflow: hidden;
    
}
.gallery-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 14px 18px;
    padding-left: 0px!important;
    background: transparent;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.slideshow-wrap {
    position: relative;
    background: #0d0d1a;
    overflow: hidden;
}
.slides-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-item {
    min-width: 100%;
    flex-shrink: 0;
}
.slide-item img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}
.slide-caption {
    padding: 10px 18px;
    background: rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-style: italic;
}
.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-prev:hover, .slide-next:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }
.slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slide-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.slide-dot.active { background: white; transform: scale(1.3); }
.slide-counter {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.thumb-strip {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: thin;
}
.thumb-strip::-webkit-scrollbar { height: 3px; }
.thumb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }
.thumb-img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 0px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, outline 0.2s;
    flex-shrink: 0;
}
.thumb-img.active, .thumb-img:hover { opacity: 1; outline: 2px solid var(--primary); }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lb-close {
    position: fixed;
    top: 18px; right: 20px;
    background: rgba(255,255,255,0.12);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    z-index: 10;
}
.lb-close:hover { background: var(--primary); }
.lb-prev, .lb-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
.lb-caption {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-style: italic;
    max-width: 600px;
    text-align: center;
    padding: 0 20px;
}
.lb-counter {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

/* ===== ADMIN NOTIFICATIONS BELL ===== */
.notif-wrapper {
    position: relative;
    display: inline-flex;
}
.notif-bell-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--light);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    font-size: 0.95rem;
}
.notif-bell-btn:hover { background: var(--primary); color: white; }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--primary);
    color: white;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}
.notif-badge.show { display: flex; animation: pulse 1.5s infinite; }
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 1000;
    overflow: hidden;
    display: none;
    border: 1px solid var(--border);
}
.notif-dropdown.open { display: block; animation: fadeInDown 0.2s ease; }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.notif-header {
    padding: 12px 16px;
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.notif-header button {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.15s;
}
.notif-header button:hover { color: white; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-row {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.notif-row:hover { background: var(--light); }
.notif-row.unread { background: #fff8f8; }
.notif-row:last-child { border-bottom: none; }
.notif-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.notif-icon.comment { background: #dbeafe; color: #1d4ed8; }
.notif-icon.subscriber { background: #d1fae5; color: #065f46; }
.notif-icon.article_published { background: #fef3c7; color: #92400e; }
.notif-icon.system { background: #f3f4f6; color: #374151; }
.notif-text { flex: 1; font-size: 0.82rem; line-height: 1.4; }
.notif-text strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.notif-empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ===== PUSH NOTIFICATION PROMPT ===== */
.push-prompt {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--secondary);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    max-width: 300px;
    z-index: 800;
    animation: slideUp 0.4s ease;
    border-left: 4px solid var(--primary);
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.push-prompt h4 { font-size: 0.9rem; margin-bottom: 6px; }
.push-prompt p { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; line-height: 1.5; }
.push-prompt-btns { display: flex; gap: 8px; }
.push-prompt-btns button { padding: 7px 14px; border-radius: 5px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; }
.push-btn-yes { background: var(--primary); color: white; }
.push-btn-no { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ===== SCHEDULED BADGE ===== */
.badge-scheduled { background: #e0f2fe; color: #0369a1; }

/* ===== AMP LINK ===== */
.amp-link { font-size: 0.72rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.amp-link:hover { color: var(--primary); }

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {
    .slide-item img { height: 240px; }
    .notif-dropdown { width: 290px; right: -10px; }
    .push-prompt { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}

/* ===== LIVE SEARCH RESULTS (v2 classes) ===== */
.live-result-img {
    width: 72px; height: 54px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-size: cover; background-position: center;
    background-color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
}
.live-result-body { flex: 1; min-width: 0; }
.live-result-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.live-result-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-result-title mark { background: rgba(184,0,31,0.15); border-radius: 2px; padding: 0 2px; font-style: normal; }
.live-result-excerpt { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-result-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; display: flex; gap: 10px; }
.live-header { padding: 8px 16px; font-size: 0.75rem; color: var(--text-muted); background: var(--light); border-bottom: 1px solid var(--border); }
.live-empty { padding: 28px; text-align: center; color: var(--text-muted); }
.live-empty i { font-size: 1.8rem; display: block; margin-bottom: 8px; opacity: 0.3; }
.live-see-all { display: block; padding: 12px 16px; text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--primary); border-top: 2px solid var(--border); transition: background var(--transition); }
.live-see-all:hover { background: var(--light); }
.search-hints a { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; border-left: 3px solid transparent; }
.search-hints a:hover { background: rgba(255,255,255,0.2); color: white; }

/* ===== GALLERY SLIDESHOW (article page) ===== */
.gallery-slideshow { margin: 32px 0; }
.gallery-title { font-family:var(--font-body); font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.slideshow-wrap { position: relative; background: #000; border-radius: 0px; overflow: hidden; }
.slides-track { display: flex; transition: transform 0.4s cubic-bezier(.25,.46,.45,.94); }
.slide-item { min-width: 100%; position: relative; }
.slide-item img { width: 100%; max-height: 480px; object-fit: contain; display: block; cursor: zoom-in; }
.slide-caption { padding: 10px 16px; background: rgba(0,0,0,0.7); color: rgba(255,255,255,0.85); font-size: 0.82rem; font-style: italic; }
.slide-prev, .slide-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55); color: white; border: none;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; transition: background var(--transition); z-index: 10;
}
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-prev:hover, .slide-next:hover { background: rgba(184,0,31,0.85); }
.slide-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.slide-dot.active { background: white; transform: scale(1.3); }
.slide-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.55); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; z-index: 10; }
.thumb-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb-strip::-webkit-scrollbar { height: 4px; }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.thumb-img { width: 72px; height: 54px; object-fit: cover; border-radius: 0px; cursor: pointer; opacity: 0.55; transition: all 0.2s; border: 2px solid transparent; flex-shrink: 0; }
.thumb-img.active, .thumb-img:hover { opacity: 1; border-color: var(--primary); }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.94);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 20px;
}
.lightbox #lbImg { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: 18px; right: 18px; color: white; font-size: 1.5rem; background: none; border: none; cursor: pointer; opacity: 0.7; }
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(184,0,31,0.7); }
.lb-caption { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 12px; text-align: center; font-style: italic; }
.lb-counter { position: absolute; bottom: 20px; color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ===== VIDEO EMBED ===== */
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 24px 0; background: #000; }
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.article-video { width: 100%; border-radius: var(--radius); margin: 24px 0; }

/* ===== PUSH NOTIFICATION FLOATING PROMPT ===== */
#pushFloatPrompt {
    position: fixed; bottom: 90px; right: 20px;
    background: var(--secondary); color: white;
    padding: 16px 20px; border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    max-width: 290px; z-index: 800;
    border-left: 4px solid var(--primary);
    animation: slideUpFade 0.4s ease;
}
@keyframes slideUpFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
#pushFloatPrompt h4 { font-size: 0.88rem; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
#pushFloatPrompt p { font-size: 0.76rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; line-height: 1.5; }
.push-prompt-actions { display: flex; gap: 8px; }
.push-yes { background: var(--primary); color: white; padding: 7px 16px; border-radius: 5px; font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer; }
.push-no { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 7px 12px; border-radius: 5px; font-size: 0.8rem; border: none; cursor: pointer; }

/* =============================================
   v3 — Dark mode, theme toggle, infinite scroll
   ============================================= */

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --secondary: #0d0d1a;
    --dark: #050508;
    --light: #14141f;
    --text: #e8e8ec;
    --text-muted: #9a9aa8;
    --border: #2a2a3a;
    --white: #1a1a28;
    --shadow: 0 2px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}
[data-theme="dark"] body { background: var(--light); color: var(--text); }
[data-theme="dark"] .site-header,
[data-theme="dark"] .top-bar,
[data-theme="dark"] .mobile-menu,
[data-theme="dark"] .search-overlay,
[data-theme="dark"] .live-results { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .article-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .page-header,
[data-theme="dark"] .live-result-item:hover,
[data-theme="dark"] .live-result-item.focused { background: var(--white); }
[data-theme="dark"] .article-card,
[data-theme="dark"] .sidebar-widget { box-shadow: var(--shadow); border: 1px solid var(--border); }
[data-theme="dark"] img.dim-on-dark { filter: brightness(0.85); }
[data-theme="dark"] .live-results { box-shadow: 0 12px 40px rgba(0,0,0,0.6); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--light); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    transition: background var(--transition), color var(--transition);
    font-size: 0.95rem;
}
.theme-toggle:hover { background: var(--primary); color: #fff; }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ===== INFINITE SCROLL ===== */
.infinite-sentinel { width: 100%; height: 1px; }
.infinite-loader {
    display: none; align-items: center; justify-content: center; gap: 10px;
    padding: 24px 0; color: var(--text-muted); font-size: 0.9rem; grid-column: 1/-1;
}
.infinite-loader.active { display: flex; }
.infinite-loader i { font-size: 1.2rem; color: var(--primary); }
.infinite-end {
    grid-column: 1/-1; text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 0.85rem;
}

/* ===== MOBILE FINE-TUNING ===== */
@media (max-width: 480px) {
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-title { font-size: 1.3rem; }
    .page-header h1 { font-size: 1.5rem; }
    .header-actions { gap: 6px; }
}
@media (max-width: 768px) {
    .site-header {
        height: 55px;
        display: flex;
        align-items: center;
        background-color: #ffffff;
    }

    /* 2. Logo vadimo iz protoka i zakucavamo tačno na apsolutnu sredinu */
    .header-logo-row {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        height: 55px;
        padding: 0;
        display: flex;
        align-items: center;
        background: transparent;
        z-index: 10;
        border: none;
    }

    .site-logo img {
        height: 24px; /* Kompaktna veličina za mobilne aplikacije */
    }

    /* 3. Donji red (Dugmići) razvlačimo na 100% širine ispod logotipa */
    .header-nav-row {
        width: 100%;
        background: transparent;
        padding: 0 10px;
    }

    .header-inner {
        height: 55px;
        border-top: none; /* Ukidamo sivu liniju koja je smetala */
        justify-content: space-between; /* Ključno: Gura Hamburger levo, a Lupu desno */
        padding: 0;
    }

    /* 4. Formatiranje dugmića da budu lakši za klik (Touch target) */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        color: var(--text-dark);
        height: 55px;
        width: 40px;
        z-index: 20; /* Da bude klikabilan iznad svega */
    }

    .header-actions {
        height: 55px;
        z-index: 20;
    }

    .search-btn {
        height: 55px;
        width: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 1.2rem;
    }

    /* 5. Šarena linija ide tačno na dno spojenog hedera */
    .header-inner::after {
        bottom: 0px;
    }
    .container { padding: 0 14px; }
}

/* ============ NOVA TRECA KOLONA (Najnovije) ============ */
.najnovije-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; height: 100%; }
.najnovije-lista li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px dashed var(--border); transition: background var(--transition); }
.najnovije-lista li:last-child { border-bottom: none; }
.najnovije-lista li:hover { background: var(--light); }
.najnovije-lista .vreme { color: var(--primary); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.najnovije-lista a { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--text); }
[data-theme="dark"] .najnovije-lista a { color: var(--text); }

/* ==========================================================================
   TRUE SIDEBAR LAYOUT (Master Grid)
   ========================================================================== */

/* Glavni layout koji drži Sadržaj Levo i Sidebar Desno */
.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: stretch; /* Ovo je ključno: "razvlači" obe kolone na istu visinu */
    padding-top: 28px;
}

/* Leva kolona - čistimo unutrašnji padding jer je wrapper sada container */
.portal-left-content section {
    padding: 0 0 40px 0;
}

/* Korigujemo Hero grid unutar uže leve kolone */
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

/* Zaseban Desni Sidebar koji ide do kraja */
.portal-right-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ovo tera sidebar da popuni visinu grid ćelije */
    border-left: 1px solid var(--border); /* Tvoja linija */
    padding-left: 20px; /* Razmak od sadržaja */
}

/* Sticky mehanizam za banere i widgete */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Dizajn Baner Placeholdera */
.ad-placeholder {
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0px;
    border: 1px solid rgba(0,0,0,0.05);
}

.ad-300-250 { width: 100%; height: 250px; }
.ad-300-600 { width: 100%; height: 600px; }

/* Ako smo na tabletima i telefonima, razbij grid i spusti sidebar dole */
@media (max-width: 1024px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .ad-300-600 { 
        display: none; /* Skrivamo ogromni baner na mobilnom da ne smeta */
    }
}

/* ==========================================================================
   VIŠE SA WEBA / CLEAN 3-COLUMN GRID (Kategorije)
   ========================================================================== */

.web-ads-section {
    margin-bottom: 40px;
}

/* Header sa linijama levo i desno */
.web-ads-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.web-ads-header::before,
.web-ads-header::after {
    display: none; /* Gasimo tanke sive horizontalne linije */
}
.web-ads-header span {
    padding: 0 0 0 14px;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.1;
    /* MAGIJA: border automatski uzima boju koju je PHP dodelio tekstu (inline style)! */
    border-left: 7px solid currentColor; 
}


/* Grid od 3 kolone */
.web-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 20px; /* 25px vertikalno, 20px horizontalno */
}

.web-ads-card {
    display: flex;
    flex-direction: column;
}

.web-ads-card a {
    display: block;
    text-decoration: none;
}

/* Slika - format 4:3 — pravi <img loading="lazy"> (bila je background-image div) */
.web-ads-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s ease;
}

.web-ads-card:hover .web-ads-img {
    opacity: 0.9;
}

/* Naslov */
.web-ads-title {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
    transition: color 0.2s ease;
}

.web-ads-card:hover .web-ads-title {
    color: var(--primary);
}

/* Prilagođavanje za Dark Mode */
[data-theme="dark"] .web-ads-header::before,
[data-theme="dark"] .web-ads-header::after {
    border-color: rgba(255,255,255,0.1);
}

/* Prilagođavanje za manje ekrane */
@media (max-width: 900px) {
    .web-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .web-ads-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HOROSKOP WIDGET (Native Style)
   ========================================================================== */
.horoscope-widget {
    background: #fff;
    padding: 20px 15px;
   
    text-align: center;
}

/* Naslov "HOROSKOP" sa plavim linijama sa strane */
.horoscope-header {
    background: transparent !important;
    padding: 16px 18px 12px 18px !important;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding-left:0px!important;
}
.horoscope-header::before,
.horoscope-header::after { 
    display: none; /* Gasimo plave linije levo i desno */
}
.horoscope-header span {
    color: var(--secondary) !important;
    font-family: var(--font-body);
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    padding-left: 12px;
    margin: 0;
    border-left: 6px solid #7bc1d9; /* Svetlo plava linija specifična za horoskop */
}

/* Kontejner za navigaciju i sadržaj */
.horoscope-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Strelice za levo/desno */
.horo-nav {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #000;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.horo-nav:hover { 
    color: var(--primary); 
    transform: scale(1.1);
}

/* Glavni sadržaj (Slika, Ime, Tekst) */
.horo-content {
    flex: 1;
    padding: 0 10px;
}
.horo-content img {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.horo-content h4 {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
    letter-spacing: 0.5px;
}
.horo-content p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    min-height: 70px; /* Zadržava visinu da kontejner ne "skače" kad je tekst kraći/duži */
}

/* Animacija smenjivanja (Fade) */
.horo-fade {
    opacity: 0;
}

/* Prilagođavanje za Dark Mode */
[data-theme="dark"] .widget-header h3,
[data-theme="dark"] .horoscope-header span { 
    color: var(--text) !important; 
}

/* ==========================================================================
   VREMENSKA PROGNOZA WIDGET
   ========================================================================== */
.weather-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}
.weather-list li {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 14px 16px; 
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-dark);
    transition: background var(--transition);
}
.weather-list li:last-child { 
    border-bottom: none; 
}
.weather-list li:hover { 
    background: var(--light); 
}
[data-theme="dark"] .weather-list li:hover { 
    background: rgba(255,255,255,0.05); 
}
.weather-city { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.weather-temp {
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-family: var(--font-display); 
    font-size: 1.15rem; 
    font-weight: 700;
}
.weather-icon { 
    font-size: 1.1rem; 
    width: 24px; 
    text-align: center; 
}
.weather-loading { 
    justify-content: center !important; 
    color: var(--text-muted) !important; 
    padding: 20px !important; 
    font-weight: 400 !important;
}

/* =========================================
   LAZY LOAD BACKGROUND IMAGES
========================================= */
.lazy-bg {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.lazy-bg.loaded {
    opacity: 1;
}

#ftre{
    background: #fff!important;
    padding-bottom:40px;
    padding-top:40px;
    border-top: solid 1px #aaa
}

#fasored{
background: #ee3b21!important;
color:#fff;    
}

.page-header > :first-child {
  padding-top: 40px;
    padding-bottom: 40px;
    background: white;
}

/* ==========================================================================
   NASLOVI - Ograničavanje na max 2 reda (Line Clamp)
   ========================================================================== */

/* Targetiramo naslove u sidebaru, gridu i web-ads sekciji */
.side-body h3 a,
.article-body h3 a,
.web-ads-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimalan broj redova */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Osiguravamo da visina reda uvek bude ista radi savršenog poravnanja */
    line-height: 1.3; 
    
    /* Sprečavamo da CSS prepiše display svojstvo na neki drugi način */
    white-space: normal; 
}

/* Za listu najnovijih vesti u sidebaru (gde su naslovi sitniji), možda želiš isto: */
.najnovije-lista a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ==========================================================================
   PREMIUM SIDEBAR WIDGET - NAJNOVIJE
   ========================================================================== */

.najnovije-lista-premium {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-left:0px;
    gap: 14px; /* Fin razmak između vesti */
}

.najnovije-lista-premium li {
    border-bottom: 1px dashed var(--border); /* Suptilna isprekidana linija umesto jake pune */
    padding-bottom: 14px;
}

.najnovije-lista-premium li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.najnovije-item {
    display: flex;
    gap: 14px;
    align-items: center; /* Centralno poravnanje slike i teksta */
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.najnovije-item:hover {
    transform: translateX(4px); /* Efekat blagog pomeranja udesno na hover */
    opacity: 0.85;
}

.najnovije-img {
    width: 70px;
    height: 52px;
    border-radius: 0px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06); /* Blaga senka oko sličice */
    border: 1px solid rgba(0,0,0,0.04);
}

.najnovije-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0; /* KLJUČNO: Omogućava text-overflow unutar Flexbox-a */
}

/* Izgled vremena */
.najnovije-time {
    font-size: 0.75rem;
    color: var(--primary); /* Prepoznatljiva crvena/akcentna boja sajta */
    font-weight: 800;
}

/* Naslov sa ograničenjem na tačno 2 reda */
.najnovije-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--secondary);
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* =========================================
   DARK MODE PRILAGOĐAVANJE
   ========================================= */
[data-theme="dark"] .najnovije-title {
    color: var(--text);
}
[data-theme="dark"] .najnovije-lista-premium li {
    border-bottom-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .najnovije-img {
    border-color: rgba(255,255,255,0.1);
}


/* ==========================================================================
   ENTERPRISE SEARCH UI - MASTER ARCHITECTURE (Spotlight + iOS Native)
   ========================================================================== */

/* 1. OSNOVNI OVERLAY (Desktop & Tablet) - macOS Spotlight stil */
.search-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 9999;
    background: rgba(15, 15, 20, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    display: flex; 
    align-items: flex-start; 
    justify-content: center;
    padding-top: 12vh; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

/* 2. GLAVNI KONTEJNER (Drži formu i rezultate) */
.search-inner {
    width: 100%; 
    max-width: 720px; 
    padding: 0 20px;
    position: relative;
    transform: scale(0.98) translateY(-15px); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-inner { 
    transform: scale(1) translateY(0); 
}

/* 3. DUGME ZA ZATVARANJE NA DESKTOPU */
.search-close {
    position: absolute; 
    top: -40px; 
    right: 20px; 
    color: white; 
    font-size: 1.5rem; 
    background: none; 
    border: none; 
    cursor: pointer;
    opacity: 0.7; 
    transition: opacity 0.2s, transform 0.2s;
}
.search-close:hover { opacity: 1; transform: scale(1.1); }

/* 4. FORMA ZA UNOS (Glavni Search Bar) */
.search-form { 
    display: flex; 
    background: var(--white); 
    border-radius: 16px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); 
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.05);
}

.search-input {
    flex: 1; 
    padding: 22px 24px; 
    font-size: 1.15rem; 
    border: none; 
    outline: none; 
    background: transparent; 
    color: var(--text);
    font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.search-form button[type="submit"] { 
    padding: 0 24px; 
    background: transparent; 
    color: var(--text-muted); 
    font-size: 1.2rem; 
}
.search-form button[type="submit"]:hover { color: var(--primary); }

/* 5. KONTEJNER SA REZULTATIMA */
.live-results {
    position: absolute; 
    top: calc(100% + 16px); 
    left: 20px; 
    right: 20px;
    background: var(--white); 
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.05);
    max-height: 60vh; 
    overflow-y: auto;
    overscroll-behavior: contain;
}

.live-results::-webkit-scrollbar { width: 6px; }
.live-results::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

/* 6. POJEDINAČNI REZULTAT (Spotlight Avatari) */
.live-result-item {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--text);
    align-items: center; 
}
.live-result-item:last-child { border-bottom: none; }
.live-result-item:hover, .live-result-item.focused { background: var(--light); }

.live-result-img {
    width: 48px; 
    height: 48px; 
    flex-shrink: 0;
    border-radius: 50%; 
    background-size: cover; 
    background-position: center;
    background-color: var(--light);
    border: 1px solid rgba(0,0,0,0.05);
}

.live-result-body { flex: 1; min-width: 0; }

.live-result-title {
    font-family: var(--font-body); 
    font-size: 0.95rem; 
    font-weight: 600; 
    line-height: 1.3; 
    margin-bottom: 2px; 
    color: var(--text);
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.live-result-title mark { background: rgba(184,0,31,0.1); color: var(--primary); padding: 0 2px; border-radius: 2px; font-style: normal; }

.live-result-cat { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; display: block; }
.live-result-excerpt { display: none; }

.live-result-item::after {
    content: '\f061'; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    color: var(--border); 
    font-size: 0.85rem; 
    margin-left: auto;
}
.live-result-item:hover::after { color: var(--primary); transform: translateX(3px); transition: 0.2s; }

.search-hints { margin-top: 24px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-hints span { color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; }
.search-hints a { background: rgba(255,255,255,0.15); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; backdrop-filter: blur(5px); transition: background 0.2s; border: none; }
.search-hints a:hover { background: var(--primary); }

.live-header { padding: 12px 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: #fdfdfd; border-bottom: 1px solid rgba(0,0,0,0.03); }
.live-see-all { display: block; padding: 16px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--primary); background: #fdfdfd; border-top: 1px solid rgba(0,0,0,0.03); transition: background 0.2s; }
.live-see-all:hover { background: var(--light); }
.live-loading, .live-empty { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.live-empty i { display: block; font-size: 2rem; margin-bottom: 12px; opacity: 0.2; }

/* ==========================================================================
   MOBILE & TABLET NATIVE UI (Apsolutni Fullscreen Takeover)
   ========================================================================== */
/* ==========================================================================
   MOBILE & TABLET NATIVE UI (Apsolutni Fullscreen Takeover - FIX)
   ========================================================================== */
/* ==========================================================================
   MOBILE & TABLET NATIVE UI (Apsolutni Fullscreen Takeover - FIX)
   ========================================================================== */
@media (max-width: 768px) {
    .search-overlay {
        background: var(--white) !important; 
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        display: block !important; /* Gasimo flex centriranje overlay-a */
    }
    
    .search-inner {
        max-width: 100% !important; 
        height: auto !important;
        padding: max(10px, env(safe-area-inset-top)) 15px 10px 10px !important;
        display: flex !important; 
        flex-direction: row !important; /* Strelica i input u isti red */
        align-items: center !important;
        background: var(--white) !important;
        border-bottom: 1px solid var(--border) !important;
        transform: translateY(20px); 
    }

    .search-overlay.active .search-inner {
        transform: translateY(0);
    }

    .search-close {
        position: static !important; 
        width: 40px !important; 
        height: 40px !important; 
        color: var(--text) !important;
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        opacity: 1 !important;
        margin-right: 8px !important;
        background: none !important;
        transform: none !important;
    }
    .search-close i::before { content: "\f060"; } /* Pretvara X u strelicu levo */

    .search-form {
        flex: 1 !important; /* Forma uzima preostali prostor desno od strelice */
        border-radius: 10px !important; 
        box-shadow: none !important; 
        border: none !important;
        background: var(--light) !important;
        padding: 0 !important;
    }

    .search-input {
        width: 100% !important;
        background: transparent !important;
        padding: 10px 16px !important;
        font-size: 16px !important; 
        height: 42px !important;
    }

    .search-form button[type="submit"], 
    .search-hints { 
        display: none !important; 
    } 

    .live-results {
        position: fixed !important; /* KLJUČNO: Izbacujemo ga iz forme! */
        top: calc(max(10px, env(safe-area-inset-top)) + 63px) !important; /* Pozicionirano odmah ispod headera */
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important; 
        height: calc(100vh - 63px) !important; 
        max-height: none !important; 
        border-radius: 0 !important; 
        box-shadow: none !important; 
        border: none !important;
        margin: 0 !important;
        background: var(--white) !important;
        -webkit-overflow-scrolling: touch !important; 
        display: block !important;
    }
}
/* ==========================================================================
   DARK MODE OVERRIDES
   ========================================================================== */
[data-theme="dark"] .search-form,
[data-theme="dark"] .live-results { background: var(--secondary); border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .search-input { color: var(--text); }
[data-theme="dark"] .live-result-item { border-bottom-color: rgba(255,255,255,0.02); color: var(--text); }
[data-theme="dark"] .live-result-item:hover, [data-theme="dark"] .live-result-item.focused { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .live-result-img { border-color: transparent; }
[data-theme="dark"] .live-result-title { color: white; }
[data-theme="dark"] .live-result-item::after { color: rgba(255,255,255,0.2); }
[data-theme="dark"] .live-header, [data-theme="dark"] .live-see-all { background: var(--secondary); border-color: rgba(255,255,255,0.02); }
[data-theme="dark"] .live-see-all:hover { background: rgba(255,255,255,0.03); }

@media (max-width: 768px) {
    [data-theme="dark"] .search-overlay { background: var(--dark); }
    [data-theme="dark"] .search-form { background: var(--dark); border-bottom-color: rgba(255,255,255,0.05); }
    [data-theme="dark"] .search-input { background: var(--secondary); }
    [data-theme="dark"] .search-close { color: white; }
    [data-theme="dark"] .live-results { background: var(--dark); }
}

/* ==========================================================================
   FIX: ELEGANTNO SAKRIVANJE TAGOVA PRI KUCANJU (Spotlight UX)
   ========================================================================== */

/* Definišemo osnovno stanje sa blagom animacijom */
.search-hints {
    transition: all 0.25s ease !important;
    transform: translateY(0);
}

/* MAGIJA: Čim je forma fokusirana (kliknuta) 
   ILI input više nije prazan (sakriven placeholder), tagovi nestaju! 
*/
.search-inner:focus-within .search-hints,
.search-inner:has(.search-input:not(:placeholder-shown)) .search-hints {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px); /* Blago propadanje na dole dok nestaje */
}

/* FIX: Ako je slika već učitana inline, pokaži je odmah */
.lazy-bg[style*="background-image"] {
    opacity: 1 !important;
}


/* ==========================================================================
   HEADER VREMENSKA PROGNOZA (Spin Animation)
   ========================================================================== */
.header-weather-wrap {
    height: 40px; /* Mora biti fiksno da bi sakrilo ostale gradove */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding-right: 15px;
   
}


.header-weather-item {
    height: 40px; /* Visina svakog grada mora biti tačno kao visina wrapa */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.header-weather-item i {
    font-size: 1.2rem;
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
/* Kontejner u kome su gradovi */
.header-weather-track {
    display: flex;
    flex-direction: column;
}

/* Pokretač animacije: 'alternate' je ključna reč koja ga tera da ide napred-nazad */
.weather-animating {
    animation: weatherPingPong 10s infinite alternate ease-in-out !important; 
}

/* Savršeno izbalansirana matematika za Yoyo (Ping-Pong) efekat */
@keyframes weatherPingPong {
    /* GRAD 1 (Početak) */
    0%, 14% { transform: translateY(80px); }
    
    /* GRAD 2 */
    19%, 47% { transform: translateY(40px); }
    
    /* GRAD 3 */
    52%, 80% { transform: translateY(0px); }
    
    /* GRAD 4 (Poslednji pravi grad - odavde kreće unazad!) */
    85%, 100% { transform: translateY(-40px); }
}
/* Na mobilnom gasimo vremensku da ne gužva heder */
@media (max-width: 768px) {
    .header-weather-wrap { display: none; }
}

/* Stil za temperaturu (Boldirano) */
.header-weather-item .hw-temp {
    font-weight: 800;
    margin-right: 2px; /* Veoma blag razmak do imena grada */
}

/* Stil za ime grada (Normal, 0.9 opacity) */
.header-weather-item .hw-city {
    font-weight: 400; /* Normal debljina fonta */
    opacity: 0.9;
}

/* Sakrivanje vremenske prognoze na ekranima od 1057px i manjim */
@media (max-width: 1057px) {
    .header-weather-wrap {
        display: none !important;
    }
}

/* ==========================================================================
   MARKET SNAPSHOT WIDGET (Crypto / Berza)
   ========================================================================== */
.live-indicator {
    font-size: 0.7rem; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 6px; letter-spacing: 1px;
    background: rgba(184, 0, 31, 0.08); padding: 4px 8px; border-radius: 4px;
}
.pulse-dot {
    width: 6px; height: 6px; background-color: var(--primary);
    border-radius: 50%; display: inline-block;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(184, 0, 31, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(184, 0, 31, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(184, 0, 31, 0); }
}

.crypto-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 15px; border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}
.crypto-item:last-child { border-bottom: none; }
.crypto-item:hover { background: var(--light); }

.crypto-info { display: flex; flex-direction: column; width: 60px; flex-shrink: 0; }
.crypto-symbol { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.crypto-name { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }

.crypto-chart { 
    flex: 1; height: 32px; margin: 0 15px; 
    /* Dodajemo blagi glow efekat na grafikonu */
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.05));
}

.crypto-price-wrap { display: flex; flex-direction: column; align-items: flex-end; width: 85px; flex-shrink: 0; }
.crypto-price { font-weight: 700; font-size: 0.95rem; color: var(--text); font-family: var(--font-display); }
.crypto-change { font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* Tržišne boje koje ne paraju oči */
.change-up { color: #10B981; } 
.change-down { color: #EF4444; }

/* =============================================
   TALKS v2 - Additional CSS (spojeno iz style-v2-additions.css
   2026-07-20 radi performansi: eliminiše drugi render-blocking
   CSS HTTP zahtev na clanak.php, i čini da .live-results stilovi
   rade svuda gde postoji header.php pretraga, ne samo na članku)
   ============================================= */

/* ============ LIVE SEARCH ============ */
.live-results {
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border);
    border-top: none;
    max-height: 480px;
    overflow-y: auto;
    margin-top: -1px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.live-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    text-decoration: none;
    color: var(--text);
    align-items: flex-start;
}
.live-result-item:last-of-type { border-bottom: none; }
.live-result-item:hover,
.live-result-item.focused { background: var(--light); }
.lri-img {
    width: 72px; height: 52px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-size: cover; background-position: center;
    background-color: var(--light);
}
.lri-body { flex: 1; min-width: 0; }
.lri-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.lri-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lri-title mark { background: rgba(184,0,31,0.12); border-radius: 2px; padding: 0 1px; }
.lri-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 10px; }
.live-loading { padding: 20px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.live-no-results { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.live-no-results i { display: block; font-size: 1.5rem; margin-bottom: 8px; opacity: 0.4; }
.live-results-footer { border-top: 2px solid var(--border); }
.live-results-all {
    display: block; padding: 12px 16px; text-align: center;
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    background: var(--light); transition: background var(--transition);
}
.live-results-all:hover { background: rgba(184,0,31,0.05); }

/* search-form now acts as wrapper */
.search-form { position: relative; display: flex; background: white; border-radius: var(--radius); overflow: visible !important; }
.search-input { border-radius: var(--radius) 0 0 var(--radius) !important; }
.search-form button[type=submit] { border-radius: 0 var(--radius) var(--radius) 0 !important; }

/* ============ GALLERY SLIDESHOW ============ */
.gallery-slideshow { margin: 28px 0; }
.gallery-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--secondary); }
.slideshow-wrap {
    position: relative; background: #0d0d1a; border-radius: var(--radius);
    overflow: hidden; aspect-ratio: 16/9;
}
.slides-track {
    display: flex; transition: transform 0.4s ease; height: 100%;
}
.slide-item {
    min-width: 100%; height: 100%; position: relative; display: none; flex-direction: column;
}
.slide-item.active { display: flex; }
.slide-item img {
    width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
    max-height: calc(100% - 40px);
}
.slide-caption {
    padding: 8px 14px; background: rgba(0,0,0,0.7); color: white;
    font-size: 0.8rem; min-height: 36px; display: flex; align-items: center;
}
.slide-prev, .slide-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; z-index: 5; transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-prev:hover, .slide-next:hover { background: rgba(184,0,31,0.8); }
.slide-dots {
    position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.slide-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.45); cursor: pointer; transition: background var(--transition);
}
.slide-dot.active { background: white; }
.slide-counter {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(0,0,0,0.55); color: white;
    padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; z-index: 5;
}
.thumb-strip {
    display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding: 2px 0;
    scrollbar-width: thin;
}
.thumb-img {
    width: 70px; height: 50px; object-fit: cover; border-radius: 4px;
    cursor: pointer; opacity: 0.6; transition: all var(--transition);
    flex-shrink: 0; border: 2px solid transparent;
}
.thumb-img.active, .thumb-img:hover { opacity: 1; border-color: var(--primary); }

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 9000; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px; padding: 20px;
}
.lightbox #lbImg { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lb-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.15); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: white; border: none;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(184,0,31,0.7); }
.lb-caption { color: rgba(255,255,255,0.8); font-size: 0.88rem; text-align: center; max-width: 600px; }
.lb-counter { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ============ VIDEO EMBED ============ */
.video-embed-wrap {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: var(--radius); margin: 24px 0;
    background: #000;
}
.video-embed-wrap iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.article-video { width: 100%; border-radius: var(--radius); margin: 24px 0; }

/* ============ ADMIN NOTIFICATIONS BELL ============ */
.notif-wrapper { position: relative; }
.notif-bell-btn {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    background: var(--light); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text); cursor: pointer; border: 1px solid var(--border);
    transition: all var(--transition);
}
.notif-bell-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; background: var(--primary);
    border-radius: 20px; font-size: 0.65rem; font-weight: 700; color: white;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
    border: 2px solid white; animation: pulse 2s infinite;
}
.notif-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 340px; background: white; border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15); z-index: 1000;
    overflow: hidden; display: none; border: 1px solid var(--border);
}
.notif-panel.open { display: block; }
.notif-panel-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--secondary); color: white;
}
.notif-panel-header h4 { font-size: 0.88rem; font-weight: 700; }
.notif-mark-all { font-size: 0.75rem; color: rgba(255,255,255,0.7); cursor: pointer; background: none; border: none; color: rgba(255,255,255,0.7); }
.notif-mark-all:hover { color: white; }
.notif-item {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; gap: 10px; align-items: flex-start;
    transition: background var(--transition); cursor: pointer;
}
.notif-item:hover { background: var(--light); }
.notif-item.unread { background: #fff9f9; border-left: 3px solid var(--primary); }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; }
.notif-icon.comment { background: #dbeafe; color: #1d4ed8; }
.notif-icon.subscriber { background: #d1fae5; color: #065f46; }
.notif-icon.system { background: #fef3c7; color: #92400e; }
.notif-text { flex: 1; min-width: 0; }
.notif-text strong { font-size: 0.85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-text span { font-size: 0.75rem; color: var(--text-muted); }
.notif-empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.notif-empty i { font-size: 1.8rem; opacity: 0.3; display: block; margin-bottom: 8px; }
.notif-panel-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.notif-panel-footer a { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ============ PUSH NOTIFICATION PROMPT ============ */
.push-prompt {
    position: fixed; bottom: 80px; right: 20px;
    background: white; border-radius: var(--radius); padding: 16px 20px;
    box-shadow: var(--shadow-lg); z-index: 800; max-width: 300px;
    border-left: 4px solid var(--primary); animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.push-prompt h4 { font-size: 0.92rem; margin-bottom: 6px; color: var(--secondary); }
.push-prompt p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.push-prompt-btns { display: flex; gap: 8px; }
.push-prompt-btns button { flex: 1; padding: 7px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; }
.push-prompt-yes { background: var(--primary); color: white; }
.push-prompt-no { background: var(--light); color: var(--text-muted); }

/* ============ SCHEDULED BADGE ============ */
.badge-scheduled { background: #dbeafe; color: #1e40af; }

/* ============ TOAST IMPROVEMENTS ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--secondary); color: white; padding: 10px 20px; border-radius: var(--radius); font-size: 0.87rem; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: var(--primary); }

/* ============ AMP LINK ON ARTICLE ============ */
.amp-link { font-size: 0.75rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.amp-link:hover { color: var(--primary); }

/* ===== Skeleton screens (dynamic-views / dynamic-comments) =====
   Zamena za fa-spin spinner: mozak percipira "shimmer" oblik kao
   sadržaj koji se već učitava, umesto praznine/vrteške koja ističe čekanje. */
.meta-skeleton {
    display: inline-block;
    width: 52px;
    height: 13px;
    border-radius: 4px;
    vertical-align: middle;
    background: linear-gradient(90deg, rgba(0,0,0,0.07) 25%, rgba(0,0,0,0.13) 37%, rgba(0,0,0,0.07) 63%);
    background-size: 400% 100%;
    animation: metaSkeletonShimmer 1.4s ease infinite;
}
@keyframes metaSkeletonShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ============ AI SEARCH — povezani video modul (clanak.php) ============ */
.ai-video-module {
    margin: 32px 0; padding: 18px 20px 20px;
    opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, max-height .25s ease;
}
.ai-video-module.avm-in { opacity: 1; transform: translateY(0); }
.ai-video-module.avm-collapsing { opacity: 0; transform: translateY(-4px); }
.ai-video-module-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ai-video-module-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
    color: #fff; background: #ff590d; padding: 4px 10px; border-radius: 0px;
    text-transform: uppercase;
}
.ai-video-module-badge i { font-size: 0.7rem; }
.ai-video-module-title { font-size: 0.95rem; font-weight: 700; color: var(--secondary, #1a1a2e); }
.ai-video-module-logo { margin-left: auto; opacity: 0.9; }
.ai-video-module-grid, .ai-video-module-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.avm-card { display: block; text-decoration: none; color: inherit; border-radius: 0px; overflow: hidden; background: white; border:none; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; }
.avm-embed { position: relative; aspect-ratio: 16/9; background: #000; }
.avm-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.avm-embed-controls { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; z-index: 2; }
.avm-embed-controls button { width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background .15s ease; }
.avm-embed-controls button:hover { background: rgba(0,0,0,0.85); }
.avm-embed:fullscreen { aspect-ratio: unset; }
.avm-embed:fullscreen iframe { width: 100vw; height: 100vh; }
.avm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,0.08)); }
.avm-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.avm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avm-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,0,0,0.88); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.avm-title { padding: 8px 10px 2px; font-size: 0.83rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avm-channel { padding: 0 10px 10px; font-size: 0.72rem; color: var(--text-muted); }

.avm-skel { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: white; }
.avm-thumb-skel, .avm-line-skel {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 37%, rgba(0,0,0,0.06) 63%);
    background-size: 400% 100%; animation: metaSkeletonShimmer 1.4s ease infinite;
}
.avm-thumb-skel { aspect-ratio: 16/9; }
.avm-line-skel { height: 10px; border-radius: 4px; margin: 10px 10px 0; }
.avm-line-skel:last-child { margin-bottom: 10px; }

@media (max-width: 640px) {
    .ai-video-module-grid, .ai-video-module-skeleton { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .ai-video-module-grid, .ai-video-module-skeleton { grid-template-columns: 1fr; }
}

/* ============================================================
   TALKS — AEO (Answer Engine Optimization) blokovi
   TL;DR / ključne činjenice / FAQ / izvori na članku.
   ============================================================ */
.article-aeo-box{background:var(--bg-secondary,#f7f7f9);border-left:4px solid var(--primary,#b8001f);border-radius:8px;padding:16px 20px;margin:18px 0 26px}
.article-aeo-summary{margin:0 0 10px;font-size:1.02rem;line-height:1.5}
.article-aeo-facts{margin:0;padding-left:20px}
.article-aeo-facts li{margin-bottom:6px;line-height:1.45}
.article-faq,.article-sources{margin:32px 0}
.article-faq-title,.article-sources-title{font-size:1.15rem;font-weight:700;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.article-faq-item{margin-bottom:16px}
.article-faq-q{font-size:1rem;font-weight:700;margin:0 0 4px}
.article-faq-a{margin:0;line-height:1.55;color:var(--text-secondary,#444)}
.article-sources ul{margin:0;padding-left:20px}
.article-sources li{margin-bottom:6px}

/* ============================================================
   TALKS — "Sledeći članak" CTA (pametno biran: tagovi + kategorija
   + trending_score, isključujući istu priču/duplikat).
   ============================================================ */
.next-article-cta{
    display:flex; align-items:center; gap:16px; margin:28px 0 8px;
    background:var(--bg-secondary,#f7f7f9); border-radius:var(--radius,8px);
    overflow:hidden; text-decoration:none; color:inherit;
    border:1px solid rgba(0,0,0,0.06); transition:transform .15s ease, box-shadow .15s ease;
}
.next-article-cta:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.next-article-cta-img{
    flex:0 0 120px; width:120px; height:90px; background-size:cover; background-position:center;
    border-radius:var(--radius-sm,4px) 0 0 var(--radius-sm,4px);
}
.next-article-cta-body{ flex:1; min-width:0; padding:10px 14px 10px 0; }
.next-article-cta-label{
    display:inline-flex; align-items:center; gap:6px; font-size:0.72rem; font-weight:700;
    text-transform:uppercase; letter-spacing:.04em; color:var(--primary,#fb530d); margin-bottom:4px;
}
.next-article-cta-body h3{
    font-size:1.02rem; line-height:1.3; margin:0 0 4px; font-weight:700;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.next-article-cta-cat{ font-size:0.78rem; font-weight:600; }
.next-article-cta-arrow{
    flex:0 0 auto; padding-right:18px; color:var(--text-muted,#888); font-size:1.1rem;
}
[data-theme="dark"] .next-article-cta{ background:rgba(255,255,255,0.04); border-color:rgba(255,255,255,0.08); }

@media (max-width:640px){
    .next-article-cta-img{ flex-basis:88px; width:88px; height:70px; }
    .next-article-cta-body h3{ font-size:0.92rem; }
}
