/*
Theme Name:  ReporterX
Theme URI:   https://reporterx.org
Author:      ReporterX Tim
Author URI:  https://reporterx.org
Description: Profesionalna news portal tema za nezavisne medije. Bezbedna, brza, optimizovana za SEO i Google News.
Version:     3.1.8 Pro
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: reporterx
Tags:        news, blog, dark, responsive, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =============================================
   NAPOMENA ZA DEVELOPERE:
   Ovo je GLAVNI style.css — samo globalni stilovi.
   Svaki template ima svoj CSS u /templates/css/
   Partials (header/footer/sidebar) imaju CSS ovde.
   Assets (live-search itd.) su u /assets/css/
   ============================================= */

/* =============================================
   1. CSS VARIJABLE (FALLBACK — tema se učitava iz baze via wp_head)
   ============================================= */
:root {
    /* Boje — fallback ako tema još nije učitana iz baze */
    --color-bg:         #000000;
    --color-surface:    #0a0a0a;
    --color-surface-2:  #111111;
    --color-border:     #1a1a1a;
    --color-accent:     #ff0000;
    --color-accent-2:   #cc0000;
    --color-text:       #ffffff;
    --color-text-muted: #aaaaaa;
    --color-text-dim:   #666666;

    /* Font — fallback */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Ostalo — NE menja se po temi */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: 0.2s ease;
    --nav-height: 60px;
}

/* =============================================
   2. GLOBALNI RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* =============================================
   3. KONTEJNERI
   ============================================= */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.vg-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* =============================================
   4. HEADER
   ============================================= */
.vg-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 9999;
}

/* =============================================
   5. NAVIGACIJSKA TRAKA
   ============================================= */
.vg-nav-wrapper {
    background: var(--color-surface);
    padding: 0;
    position: relative;
    z-index: 9999;
}

.vg-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* =============================================
   6. LOGO / BRAND
   ============================================= */
.navbar-brand-custom {
    color: var(--color-text) !important;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 15px 0;
}

/* =============================================
   7. MENI - DESKTOP
   ============================================= */
.vg-nav-collapse {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav.vg-navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav.vg-navbar-nav > li.vg-nav-item {
    position: relative;
}

.navbar-nav.vg-navbar-nav > li.vg-nav-item > a.vg-nav-link {
    color: var(--color-text) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    padding: 20px 16px;
    display: block;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-nav.vg-navbar-nav > li.vg-nav-item > a.vg-nav-link:hover {
    color: var(--color-accent) !important;
    background: var(--color-surface-2) !important;
}

/* =============================================
   8. SUBMENU - DESKTOP
   ============================================= */
.vg-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav.vg-navbar-nav > li.vg-nav-item:hover > .vg-sub-menu {
    display: block;
}

.vg-sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-muted) !important;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.vg-sub-menu li a:hover {
    background: var(--color-surface-2);
    color: var(--color-text) !important;
}

/* =============================================
   9. MEGA MENU
   ============================================= */
.vg-mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--color-surface);
    border-top: 3px solid var(--color-accent);
    display: none;
    z-index: 9999;
    padding: 25px 0;
}

.vg-nav-item:hover .vg-mega-menu {
    display: block;
}

.vg-mega-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.vg-mega-featured h4 {
    color: var(--color-accent);
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vg-mega-featured a {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.vg-mega-featured a:hover {
    color: var(--color-text);
    padding-left: 5px;
}

/* =============================================
   10. MOBILE TOGGLE
   ============================================= */
.vg-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.vg-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* =============================================
   11. MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 991px) {

    .vg-mobile-toggle {
        display: flex;
    }

    .vg-nav-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        border-top: 2px solid var(--color-accent);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 9998;
    }

    .vg-nav-collapse.open {
        display: flex;
    }

    .navbar-nav.vg-navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-nav.vg-navbar-nav > li.vg-nav-item > a.vg-nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        justify-content: space-between;
    }

    .vg-sub-menu {
        position: static;
        display: none;
        background: var(--color-surface-2);
        border: none;
        box-shadow: none;
        padding-left: 15px;
    }

    .vg-nav-item.vg-open > .vg-sub-menu {
        display: block;
    }

    .vg-mega-menu {
        position: static;
        display: none !important;
        padding: 15px;
    }

    .vg-nav-item.vg-open .vg-mega-menu {
        display: block !important;
    }

    .vg-mega-inner {
        grid-template-columns: 1fr;
    }

    .vg-sub-menu .vg-sub-menu {
        display: none !important;
    }
}

/* =============================================
   12. DESKTOP: 3. NIVO SUBMENU
   ============================================= */
@media (min-width: 992px) {
    .vg-sub-menu .vg-sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        display: none;
        min-width: 210px;
    }

    .vg-sub-menu li {
        position: relative;
    }

    .vg-sub-menu li:hover > .vg-sub-menu {
        display: block;
    }
}

/* =============================================
   13. CONTENT GRID / KOLONE NA HOME
   ============================================= */
.home-main-content {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.home-columns {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.column {
    flex: 1;
    min-width: 0;
}

.cat-title {
    background: var(--color-accent);
    color: #ffffff;
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: bold;
    border: none;
    outline: none;
}

/* Link unutar cat-title mora biti beo, ne accent boja */
.cat-title a,
.cat-title a:hover,
.cat-title a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

/* Glavna kategorija koja ima podkategorije */
.cat-title-parent {
    font-size: 13px;
    padding: 6px 14px;
    margin-top: 5px;
    margin-bottom: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* Crvena linija ispod */
    border-bottom: 3px solid var(--color-accent);
}

/* Podkategorija — tamnija nijansa, sa levim border akcentom */
.cat-title-sub {
    font-size: 11px;
    padding: 4px 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-surface-2);
    border-left: 4px solid var(--color-accent);
    color: #ffffff !important;
}

.cat-title-sub a,
.cat-title-sub a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.home-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.home-post:last-child {
    border-bottom: none;
}

.post-thumb {
    flex: 0 0 95px;
    height: 70px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-data {
    flex: 1;
    min-width: 0;
}

.post-data h3 {
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 1.3;
}

.post-data h3 a {
    color: var(--color-text);
    font-weight: bold;
}

.post-data p {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* =============================================
   14. SOCIAL ICONS
   ============================================= */
.soc {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
}

.soc:hover {
    transform: scale(1.1);
}

.soc.fb { background: #3b5998; }
.soc.yt { background: var(--color-accent); }
.soc.x  { background: #000; border: 1px solid #333; }

/* =============================================
   15. SIDEBAR WIDGETI
   ============================================= */
.vg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vg-widget {
    background: var(--color-surface);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.vg-widget ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.vg-widget li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.vg-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.vg-widget a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 13px;
    line-height: 1.4;
}

.vg-widget a:hover {
    color: var(--color-accent);
}

.vg-title {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   16. PAGINACIJA
   ============================================= */
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nav-links a,
.nav-links span {
    padding: 8px 14px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    font-size: 13px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links .current {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}

/* =============================================
   17. TICKER (globalni wrapper)
   ============================================= */
.ticker-section {
    background: var(--color-accent);
    overflow: hidden;
}

/* =============================================
   18. RESPONSIVE - OPŠTE
   ============================================= */
@media (max-width: 768px) {
    .home-columns {
        flex-direction: column;
    }

    .home-main-content {
        padding: 15px;
        margin-top: 10px;
    }
}

/* =============================================
   19. dodatak za kustom stranicu  - OPŠTE
   ============================================= */

/* Gornji red - 4 vesti */
.top-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Glavna linija separator */
.main-horizontal-divider {
    width: 100%;
    height: 2px;
    background: #440000; /* Tamno crvena */
    margin: 10px 0 30px 0;
}

/* 50/50 Split Grid */
.sub-groups-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
    position: relative;
    padding-bottom: 40px;
}

/* Vertikalna linija u sredini */
.sub-groups-split-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #440000;
    transform: translateX(-50%);
}

/* Lowercase i crvena boja za sve naslove u gridu */
.main-subcat-title, 
.child-group-title {
    text-transform: lowercase;
    margin: 20px 0 5px 0;
}

.main-subcat-title a, 
.child-group-title a {
    color: var(--color-accent) !important;
    font-weight: normal;
}

.main-subcat-title { font-size: 38px; }
.child-group-title { font-size: 28px; margin-top: 50px; }

/* Horizontalne crvene linije ispod naslova */
.red-line-full {
    width: 100%;
    height: 2px;
    background: #440000;
}

/* Fix za slike u gornjem redu */
.top-news-item .post-thumb {
    height: 120px;
    background: var(--color-surface);
}
/* =============================================
   20. SINGLE — članak + sidebar layout
   ============================================= */

.vg-single-wrap {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.vg-single-main {
    flex: 3;
    min-width: 0;
}

.vg-single-sidebar {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
}

/* ČLANAK */
.vg-article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
}

.vg-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 13px;
}

.vg-article-cat {
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    text-decoration: none;
    border-radius: 2px;
}

.vg-article-date {
    color: var(--color-text-muted);
}

.vg-article-views {
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.vg-article-views .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.vg-article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: var(--color-text);
}

.vg-article-thumb {
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vg-article-thumb img {
    width: 100%;
    height: auto;
}

.vg-article-content {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.vg-article-content p { margin-bottom: 1.2em; }

.vg-article-content h2,
.vg-article-content h3 {
    color: var(--color-text);
    margin: 1.5em 0 0.5em;
}

.vg-article-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.vg-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

.vg-article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 20px 0;
}

.vg-article-tags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vg-article-tags a {
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.vg-article-tags a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* =============================================
   21. ARCHIVE — kategorija layout
   ============================================= */

/* Header kategorije */
.vga-header {
    margin: 20px 0 0;
}

.vga-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0 12px;
    margin: 0;
    border-bottom: 3px solid var(--color-accent);
}

.vga-wrap {
    margin-top: 20px;
    margin-bottom: 50px;
}

/* GORNJI GRID — 4 kolone, 8 vesti */
.vga-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.vga-post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.vga-post-card:hover {
    border-color: var(--color-accent);
}

.vga-card-thumb {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.vga-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vga-post-card:hover .vga-card-thumb img {
    transform: scale(1.04);
}

.vga-card-data {
    padding: 10px 12px;
}

.vga-card-data h3 {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.3;
}

.vga-card-data h3 a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.vga-card-data h3 a:hover { color: var(--color-accent); }

.vga-card-data p {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* RAZDVAJAČ */
.vga-divider {
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    margin: 20px 0 25px;
    opacity: 0.4;
}

/* 50/50 GRID PODKATEGORIJA */
.vga-subcats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 50px;
    position: relative;
    margin-bottom: 30px;
}

/* Vertikalna linija između kolona */
.vga-subcats-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.vga-subcats-nested {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.vga-subcat-block {
    padding-bottom: 20px;
}

.vga-subcat-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.vga-subcat-title a {
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vga-subcat-title a:hover { color: var(--color-accent); }

/* REDOVI VESTI U PODKATEGORIJAMA */
.vga-post-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.vga-post-row:last-child { border-bottom: none; }

.vga-row-thumb {
    flex: 0 0 80px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.vga-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vga-row-data { flex: 1; min-width: 0; }

.vga-row-data h4 {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.3;
}

.vga-row-data h4 a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.vga-row-data h4 a:hover { color: var(--color-accent); }

.vga-row-data p {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* PAGINACIJA */
.vga-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* =============================================
   22. RESPONSIVE — single i archive
   ============================================= */
@media (max-width: 991px) {
    .vg-single-wrap {
        flex-direction: column;
    }
    .vg-single-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    .vga-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vga-subcats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vga-subcats-grid::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .vga-top-grid {
        grid-template-columns: 1fr;
    }
    .vg-article-title {
        font-size: 20px;
    }
    .vg-article {
        padding: 15px;
    }
}/* =============================================
   23. FOOTER
   ============================================= */
.vg-footer {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-top: none;
    margin-top: 60px;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
}

.vg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 50px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.vg-footer-col {
    transition: transform var(--transition);
}

.vg-footer-col:hover {
    transform: translateY(-3px);
}

.vg-footer-title {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

.vg-footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
}

.vg-footer-col:hover .vg-footer-title::after {
    width: 80px;
}

/* PRETRAGA */
.vg-footer-search {
    display: flex;
    margin-bottom: 20px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.vg-footer-search-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-text);
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.vg-footer-search-input::placeholder {
    color: var(--color-text-muted);
}

.vg-footer-search-input:focus {
    background: rgba(255,255,255,0.15);
}

.vg-footer-search-btn {
    background: var(--color-accent);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    font-size: 16px;
}

.vg-footer-search-btn:hover {
    background: var(--color-accent-2);
}

.vg-footer-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    border-left: 2px solid var(--color-accent);
    padding-left: 15px;
}

/* v3.1.2 — FOOTER LOGO */
.vg-footer-logo-wrap {
    margin-bottom: 16px;
}

.vg-footer-logo {
    height: 40px; /* fallback — prepisuje se inline stilom */
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.vg-footer-logo-wrap a:hover .vg-footer-logo {
    opacity: 1;
}

/* KONTAKT */
.vg-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vg-footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    transition: transform var(--transition);
}

.vg-footer-contact li:hover {
    transform: translateX(5px);
}

.vg-footer-contact .dashicons {
    color: var(--color-accent);
    font-size: 18px;
    width: 20px;
    height: 20px;
}

.vg-footer-contact a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.vg-footer-contact a:hover {
    color: var(--color-accent);
}

/* SOCIAL */
.vg-footer-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.vg-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 20px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.vg-footer-socials a:hover {
    transform: scale(1.1) translateY(-3px);
    background: var(--color-accent);
    color: white;
}

.soc.fb:hover  { background: #1877f2; }
.soc.yt:hover  { background: var(--color-accent); }
.soc.x:hover   { background: #000000; }
.soc.ig:hover  { background: #e1306c; }
.soc.linkedin:hover { background: #0077b5; }
.soc.tiktok:hover   { background: #010101; }

/* COPYRIGHT BAR */
.vg-footer-bottom {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
    text-align: center;
}

.vg-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-dim);
}

/* RESPONZIVNOST */
@media (max-width: 991px) {
    .vg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    .vg-footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .vg-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px 20px;
    }
    .vg-footer-col:first-child {
        grid-column: auto;
    }
    .vg-footer-title {
        font-size: 16px;
    }
}

/* =============================================
   24. SIDEBAR — RECENT POSTS WIDGET (slika + tekst)
   ============================================= */
.vg-widget-recent {
    padding-bottom: 5px;
}

.vg-recent-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.vg-recent-post:last-child {
    border-bottom: none;
}

.vg-recent-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    display: block;
}

.vg-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.vg-recent-thumb:hover img {
    transform: scale(1.05);
}

.vg-recent-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
}

.vg-recent-data {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vg-recent-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text) !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vg-recent-title:hover {
    color: var(--color-accent) !important;
}

.vg-recent-excerpt {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-recent-date {
    font-size: 10px;
    color: var(--color-text-dim);
    margin-top: 2px;
}


/* =============================================
   25. SINGLE — lead layout
   ============================================= */

/* Slika lijevo 55%, tekst desno */
.vg-article-lead {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.vg-article-lead-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vg-article-lead-img img {
    width: 100%;
    height: auto;
    display: block;
}

.vg-article-lead-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-accent);
    padding-left: 18px;
}

.vg-article-lead-text p {
    margin: 0 0 1em;
}

/* Ostatak sadržaja — puna širina ispod */
.vg-article-content {
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.vg-article-content p        { margin-bottom: 1.2em; }
.vg-article-content h2,
.vg-article-content h3       { color: var(--color-text); margin: 1.5em 0 0.5em; }
.vg-article-content a        { color: var(--color-accent); text-decoration: underline; }
.vg-article-content img      { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 15px 0; }
.vg-article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 20px 0;
}

/* Sidebar recent posts */
.vg-widget-recent          { padding-bottom: 5px; }

.vg-recent-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.vg-recent-post:last-child  { border-bottom: none; }

.vg-recent-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vg-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.vg-recent-thumb:hover img  { transform: scale(1.06); }
.vg-recent-no-img           { color: var(--color-text-dim); font-size: 24px; }

.vg-recent-data {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vg-recent-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text) !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vg-recent-title:hover      { color: var(--color-accent) !important; }
.vg-recent-excerpt {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vg-recent-date             { font-size: 10px; color: var(--color-text-dim); }

/* Responsive */
@media (max-width: 768px) {
    .vg-article-lead {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .vg-article-lead-text {
        border-left: none;
        border-top: 3px solid var(--color-accent);
        padding-left: 0;
        padding-top: 14px;
    }
}
/* =============================================
   26. SEARCH STRANICA
   ============================================= */
.vg-search-wrap {
    margin-top: 20px;
    margin-bottom: 50px;
}

.vg-search-term {
    color: var(--color-accent);
}

.vg-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.vg-search-card {
    display: flex;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 130px;
    transition: border-color var(--transition);
}

.vg-search-card:hover {
    border-color: var(--color-accent);
}

.vg-search-card-thumb {
    width: 150px;
    min-width: 150px;
}

.vg-search-card-thumb a {
    display: block;
    height: 100%;
}

.vg-search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vg-search-no-img {
    width: 100%;
    height: 100%;
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    font-size: 28px;
}

.vg-search-card-data {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    gap: 6px;
}

.vg-search-card-data h3 {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.3;
}

.vg-search-card-data h3 a {
    color: var(--color-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-search-card-data h3 a:hover {
    color: var(--color-accent);
}

.vg-search-card-data p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-search-empty {
    color: var(--color-text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}

@media (max-width: 600px) {
    .vg-search-grid {
        grid-template-columns: 1fr;
    }
    .vg-search-card {
        height: auto;
        flex-direction: column;
    }
    .vg-search-card-thumb {
        width: 100%;
        height: 160px;
    }
}

/* =============================================
   27. BREADCRUMBS
   ============================================= */
.vg-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--color-text-dim);
    margin-bottom: 8px;
}

.vg-bc-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.vg-bc-link:hover {
    color: var(--color-accent);
}

.vg-bc-sep {
    color: var(--color-text-dim);
    font-size: 12px;
}

.vg-bc-current {
    color: var(--color-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* =============================================
   28. AUTHOR BIO
   ============================================= */
.vg-author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
}

.vg-author-avatar {
    flex: 0 0 80px;
}

.vg-avatar-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 3px solid var(--color-border);
    transition: border-color var(--transition);
}

.vg-author-bio:hover .vg-avatar-img {
    border-color: var(--color-accent);
}

.vg-author-info {
    flex: 1;
}

.vg-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.vg-author-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(var(--accent-rgb, 255,0,0), 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.vg-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.vg-author-name:hover {
    color: var(--color-accent);
}

.vg-author-count {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-left: auto;
}

.vg-author-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .vg-author-bio {
        flex-direction: column;
        gap: 14px;
    }
    .vg-author-count {
        margin-left: 0;
    }
}

/* =============================================
   29. RELATED POSTS
   ============================================= */
.vg-related {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.vg-related-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.vg-related-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}

.vg-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vg-related-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition), transform var(--transition);
}

.vg-related-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.vg-related-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-2);
}

.vg-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.vg-related-card:hover .vg-related-thumb img {
    transform: scale(1.05);
}

.vg-related-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    font-size: 32px;
}

.vg-related-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    pointer-events: none;
}

.vg-related-data {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vg-related-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vg-related-post-title:hover {
    color: var(--color-accent);
}

.vg-related-date {
    font-size: 11px;
    color: var(--color-text-dim);
}

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

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

/* =================================================================
   v2.1 — KONSOLIDOVANI CSS BLOK
   (live-search.css + 404.css + UX + optimizacije — sve na jednom mestu)
   ================================================================= */

/* --- Smooth scroll (uz redukovano kretanje za osobe sa vestibularnim tegobama) --- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* =================================================================
   LIVE SEARCH — ugrađeno iz assets/css/live-search.css
   ================================================================= */
.vg-search-form   { position: relative; }
.vg-search-wrap   { display: flex; }

.vg-search-input,
#rx-live-search {
    flex: 1;
    padding: 10px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.vg-search-input::placeholder,
#rx-live-search::placeholder { color: #666; }

.vg-search-btn {
    background: var(--color-accent, #ff0000);
    border: none;
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition, .2s);
    min-height: 44px;
    min-width: 44px;
}
.vg-search-btn:hover  { background: var(--color-accent-dark, #cc0000); }
.vg-search-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

#vg-search-results {
    position: absolute;
    width: 100%;
    background: #111;
    border: 1px solid #222;
    border-top: none;
    display: none;
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #111;
}

.vg-live-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #fff;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}
.vg-live-item:last-child { border-bottom: none; }
.vg-live-item:hover,
.vg-live-item:focus-visible {
    background: var(--color-accent, #ff0000);
    color: #fff;
    outline: none;
}
.vg-live-item img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

/* =================================================================
   404 PAGE — ugrađeno iz templates/css/404.css
   ================================================================= */
.error-404-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg, #000);
    padding: 40px 20px;
}
.error-404-content {
    text-align: center;
    max-width: 500px;
}
.fadeIn { animation: fadeIn .6s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.glitch {
    font-size: 120px;
    font-weight: 900;
    color: var(--color-accent, #ff0000);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -5px;
    animation: glitch 2s infinite;
}
@keyframes glitch {
    0%, 90%, 100% { text-shadow: 3px 0 0 rgba(255,0,0,.4), -3px 0 0 rgba(0,255,255,.4); }
    92%           { text-shadow: -4px 0 0 rgba(255,0,0,.6),  4px 0 0 rgba(0,255,255,.6); }
    94%           { text-shadow:  4px 0 0 rgba(255,0,0,.6), -4px 0 0 rgba(0,255,255,.6); }
}
@media (prefers-reduced-motion: reduce) {
    .glitch   { animation: none; text-shadow: 3px 0 0 rgba(255,0,0,.3); }
    .fadeIn   { animation: none; }
    .vg-skeleton { animation: none; background: var(--color-surface); }
}
.error-msg {
    color: var(--color-text, #fff);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.error-sub  { color: var(--color-text-muted, #aaa); font-size: 14px; margin: 0 0 30px; }
.error-btn {
    display: inline-block;
    background: var(--color-accent, #ff0000);
    color: #fff !important;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: opacity .2s;
    margin-bottom: 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.error-btn:hover { opacity: .85; color: #fff !important; }
.countdown { color: var(--color-text-dim, #666); font-size: 13px; margin: 15px 0 25px; }
.countdown span { color: var(--color-accent, #ff0000); font-weight: 700; }
.error-search .search-form {
    display: flex;
    max-width: 360px;
    margin: 0 auto;
}
.error-search .search-field {
    flex: 1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-right: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    border-radius: 3px 0 0 3px;
}
.error-search .search-submit {
    background: var(--color-accent, #ff0000);
    border: none;
    color: #fff;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0 3px 3px 0;
    transition: opacity .2s;
    min-height: 44px;
}
.error-search .search-submit:hover { opacity: .85; }

/* =================================================================
   UX KOMPONENTE — Progress bar, Back-to-top, Share, Read time
   ================================================================= */
.vg-article-readtime {
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}
.vg-share-copy {
    background: transparent;
    border: 1px solid var(--color-border, #333);
    color: var(--color-text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-sm, 3px);
    cursor: pointer;
    font-size: 12px;
    transition: border-color var(--transition,.2s), color var(--transition,.2s);
    min-height: 32px;
}
.vg-share-copy:hover,
.vg-share-copy:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
    outline: none;
}
#vg-back-to-top:hover {
    opacity: .85;
    transform: translateY(-2px);
}
#vg-back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* =================================================================
   SLIKE — aspect-ratio uniformnost, hover, skeleton
   ================================================================= */
.post-thumb {
    aspect-ratio: 4 / 3;
    height: auto !important;
    overflow: hidden;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.cat-post-item:hover .cat-post-thumb img { transform: scale(1.04); }

/* Skeleton loader */
.vg-skeleton {
    background: linear-gradient(90deg,
        var(--color-surface) 25%,
        color-mix(in srgb, var(--color-surface) 70%, white) 50%,
        var(--color-surface) 75%
    );
    background-size: 200% 100%;
    animation: vg-shimmer 1.3s ease-in-out infinite;
    border-radius: var(--radius-sm, 3px);
}
@keyframes vg-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =================================================================
   HOVER EFEKTI — kartice i related
   ================================================================= */
.home-post {
    transition: background var(--transition, .2s);
    border-radius: var(--radius-md, 6px);
    padding: 8px;
    margin-bottom: 10px;
}
.home-post:hover { background: var(--color-surface); }

.vg-related-card {
    transition: transform .25s ease, box-shadow .25s ease;
}
.vg-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* =================================================================
   KONSOLIDOVANI MEDIA QUERIES
   Sve na istim breakpointima na jednom mestu
   ================================================================= */

/* --- max-width: 991px — tablet i manji desktop --- */
@media (max-width: 991px) {
    .vg-share-copy { min-height: 44px; padding: 8px 14px; }
    .vg-search-btn { min-height: 44px; min-width: 44px; }
}

/* --- max-width: 767px — tablet portret i mobilni --- */
@media (max-width: 767px) {
    .vg-article-title { font-size: clamp(1.35rem, 5vw, 2rem); }
    .glitch { font-size: 80px; }
    .vg-mobile-toggle,
    #vg-back-to-top,
    .vg-search-btn,
    .vg-share-copy,
    .error-btn { min-height: 44px; min-width: 44px; }
}

/* --- max-width: 600px — mobilni --- */
@media (max-width: 600px) {
    .glitch { font-size: 64px; letter-spacing: -3px; }
    .error-msg { font-size: 16px; }
}

/* =================================================================
   PRINT — čist štampa bez navigacije (fallback ako wp_head ne radi)
   ================================================================= */
@media print {
    .vg-nav-wrapper, .vg-ticker, .vg-single-sidebar,
    .vg-related, .vg-author-bio, .vg-article-tags,
    .vg-footer, #vg-back-to-top, #vg-reading-bar,
    .vg-reading-bar, .vg-share-copy { display: none !important; }
    .vg-single-main { width: 100% !important; max-width: 100% !important; }
    .vg-article-title { font-size: 22pt; color: #000 !important; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    @page { margin: 2cm; }
}



/* =============================================
   v2.6 — SCROLL PROGRESS BAR
   ============================================= */
#rx-scroll-progress {
    position:   fixed;
    top:        0;
    left:       0;
    width:      0%;
    height:     3px;
    background: var(--color-accent, #e63946);
    z-index:    9999;
    transition: width 0.1s linear;
    pointer-events: none;
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-accent, #e63946) 60%, transparent);
}

/* =============================================
   v2.6 — BACK TO TOP
   ============================================= */
#rx-back-to-top {
    position:         fixed;
    bottom:           28px;
    right:            24px;
    width:            44px;
    height:           44px;
    background:       var(--color-accent, #e63946);
    color:            #fff;
    border:           none;
    border-radius:    50%;
    font-size:        20px;
    line-height:      1;
    cursor:           pointer;
    z-index:          999;
    opacity:          0;
    transform:        translateY(16px);
    transition:       opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events:   none;
    box-shadow:       0 4px 16px rgba(0,0,0,0.4);
}
#rx-back-to-top.visible {
    opacity:        1;
    transform:      translateY(0);
    pointer-events: auto;
}
#rx-back-to-top:hover {
    background: color-mix(in srgb, var(--color-accent, #e63946) 80%, #fff);
}
#rx-back-to-top:focus-visible {
    outline:        2px solid #fff;
    outline-offset: 2px;
}

/* =============================================
   v2.6 — SKELETON LOADING
   Primjenjuje se na .post-thumb.rx-skeleton i .vg-article-lead-img.rx-skeleton
   ============================================= */
.rx-skeleton {
    position:   relative;
    overflow:   hidden;
    background: var(--color-surface-2, #111);
}
.rx-skeleton::after {
    content:    '';
    position:   absolute;
    inset:      0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--color-text, #fff) 6%, transparent) 50%,
        transparent 100%
    );
    animation:  rx-shimmer 1.6s infinite;
}
@keyframes rx-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
.rx-skeleton img {
    opacity: 0;
    transition: opacity 0.3s;
}

/* =============================================
   v2.6 — SMOOTH IMAGE REVEAL (nakon učitavanja)
   ============================================= */
.post-thumb img,
.vg-article-lead-img img {
    transition: opacity 0.4s ease;
}

/* =============================================
   v2.6 — READING TIME u single.php meta baru
   ============================================= */
.vg-article-readtime {
    display:     inline-flex;
    align-items: center;
    gap:         4px;
    font-size:   0.82rem;
    color:       var(--color-text-muted, #888);
}

/* =============================================
   v2.6 — FOCUS VISIBLE globalni (pristupačnost)
   ============================================= */
:focus-visible {
    outline:        2px solid var(--color-accent, #e63946);
    outline-offset: 3px;
    border-radius:  2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* =============================================
   v2.6 — PRINT stilovi (Google indeksira print CSS)
   ============================================= */
@media print {
    .vg-nav-wrapper,
    .vg-header .rx-live-search,
    #rx-scroll-progress,
    #rx-back-to-top,
    .vg-footer-search,
    .vg-footer-socials,
    aside.vg-single-sidebar { display: none !important; }

    body    { background: #fff !important; color: #000 !important; font-size: 12pt; }
    a       { color: #000 !important; text-decoration: underline; }
    h1, h2  { page-break-after: avoid; }
    img     { max-width: 100% !important; page-break-inside: avoid; }
}

/* v2.7 — SAČUVAJ ZA KASNIJE dugme */
.rx-save-btn {
    display:       inline-flex;
    align-items:   center;
    gap:           5px;
    padding:       5px 12px;
    background:    transparent;
    border:        1.5px solid var(--color-border, #333);
    border-radius: 5px;
    color:         var(--color-text-muted, #888);
    font-size:     0.82rem;
    cursor:        pointer;
    transition:    border-color 0.2s, color 0.2s, background 0.2s;
    white-space:   nowrap;
}
.rx-save-btn:hover,
.rx-save-btn.saved {
    border-color: var(--color-accent, #e63946);
    color:        var(--color-accent, #e63946);
    background:   color-mix(in srgb, var(--color-accent, #e63946) 8%, transparent);
}
