/* ===================================================================
   GLOBALNO RESETOVANJE I POČETNA PODEŠAVANJA - VEOMA VAŽNO
   =================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 1rem;
}

body {
    font-family: "Taviraj", Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.4;
    background-color: #121212;
    color: #e0e0e0;
}

.divsans {
    font-family: "Roboto", sans-serif;
}

.sanslight {
    font-family: "Roboto", sans-serif;
    font-weight: 200;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    margin-bottom: 0px;
    line-height: 1.2;
}

h1 {font-size: 2rem;}
h2 {font-size: 1.75rem;}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.25rem;}
h5 {font-size: 1.1rem;}
h6 {font-size: 1rem;}

a {
    text-decoration: none !important;
    color: #ffffff !important;
}

a:hover {
    color: #ffbb11 !important;
}

/* ===================================================================
   NOVI LAYOUT - 3 KOLONE (FLEXBOX)
   =================================================================== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-content-wrapper {
    width: 64%;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #333;
}

.header-section {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.news-section {
    background-color: #121212;
    padding: 20px;
    flex-grow: 1;
}

/* ===================================================================
   SIDEBAR LEFT & RIGHT - ULEPŠAN DIZAJN
   =================================================================== */
.sidebar-left, 
.sidebar-right {
    width: 18%;
    min-width: 200px;
    background: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 100%);
    padding: 20px 15px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-left {
    border-right: none;
}

.sidebar-right {
    border-left: none;
}

.sidebar-left h4,
.sidebar-right h4 {
    font-size: 0.9rem;
    color: #ffbb11;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.sidebar-left h4:first-child,
.sidebar-right h4:first-child {
    margin-top: 0;
}

.sidebar-left h4 a,
.sidebar-right h4 a {
    color: #ffbb11 !important;
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
}

.sidebar-left h4 a:hover,
.sidebar-right h4 a:hover {
    color: #ffd700 !important;
}

.sidebar-left ul,
.sidebar-right ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.sidebar-left li,
.sidebar-right li {
    margin: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.sidebar-left li:hover,
.sidebar-right li:hover {
    transform: translateX(3px);
}

.sidebar-left li a,
.sidebar-right li a {
    display: block;
    padding: 10px 12px;
    color: #c0c0c0 !important;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.sidebar-left li a::before,
.sidebar-right li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ffbb11;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-left li a:hover,
.sidebar-right li a:hover {
    background-color: #2a2a2a;
    color: #ffffff !important;
    padding-left: 18px;
}

.sidebar-left li a:hover::before,
.sidebar-right li a:hover::before {
    transform: scaleY(1);
}

.sidebar-left h4:not(:first-child),
.sidebar-right h4:not(:first-child) {
    margin-top: 30px;
    position: relative;
}

.sidebar-left h4:not(:first-child)::before,
.sidebar-right h4:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #ffbb11 0%, transparent 100%);
}

/* AI sajtovi sekcija - plava boja (samo za sidebar-left) */
.sidebar-left h4:nth-of-type(2) {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
}

.sidebar-left h4:nth-of-type(2)::before {
    background: linear-gradient(90deg, #4a9eff 0%, transparent 100%);
}

.sidebar-left ul:nth-of-type(2) li a::before {
    background: #4a9eff;
}

/* Animacija pri učitavanju */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-left li,
.sidebar-right li {
    animation: fadeInLeft 0.5s ease forwards;
    opacity: 0;
}

.sidebar-left li:nth-child(1),
.sidebar-right li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-left li:nth-child(2),
.sidebar-right li:nth-child(2) { animation-delay: 0.15s; }
.sidebar-left li:nth-child(3),
.sidebar-right li:nth-child(3) { animation-delay: 0.2s; }
.sidebar-left li:nth-child(4),
.sidebar-right li:nth-child(4) { animation-delay: 0.25s; }
.sidebar-left li:nth-child(5),
.sidebar-right li:nth-child(5) { animation-delay: 0.3s; }
.sidebar-left li:nth-child(6),
.sidebar-right li:nth-child(6) { animation-delay: 0.35s; }
.sidebar-left li:nth-child(7),
.sidebar-right li:nth-child(7) { animation-delay: 0.4s; }

/* Scrollbar stilizacija */
.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.sidebar-left::-webkit-scrollbar-track,
.sidebar-right::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar-left::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sidebar-left::-webkit-scrollbar-thumb:hover,
.sidebar-right::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ===================================================================
   STILOVI ZA ELEMENTE UNUTAR SEKCIJA
   =================================================================== */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.search-container input[type="text"] {
    padding: 8px 12px;
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    width: auto;
}

.search-container button {
    padding: 8px 15px;
    background-color: #05427f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.search-container button:hover {
    background-color: #3a8fd1;
}

.news-item {
    border-bottom: 1px solid #333;
    padding: 20px 0;
}

.article-image-wrapper {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.article-meta {
    font-size: 1rem;
    color: #999;
    margin-bottom: 1rem;
}

.article-content {
    font-size: 18px;
}

.pagination {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

.pagination a {
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #333;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #444;
}

/* ===================================================================
   MOBILNI MENI - ULEPŠAN DIZAJN
   =================================================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -85%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active { 
    right: 0; 
}

.mobile-sidebar-content {
    padding: 70px 20px 30px 20px;
}

.mobile-sidebar-content h3 {
    font-size: 1.5rem;
    color: #ffbb11;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    text-align: center;
    letter-spacing: 1px;
}

.mobile-sidebar-content h4 {
    font-size: 0.95rem;
    color: #ffbb11;
    margin-top: 30px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.mobile-sidebar-content h4:first-of-type {
    margin-top: 0;
}

.mobile-sidebar-content h4:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #ffbb11 0%, transparent 100%);
}

.mobile-sidebar-content h4.kontakt-heading {
    color: #ffbb11;
    border-bottom-color: #ffbb11;
}

.mobile-sidebar-content h4.kontakt-heading a {
    color: #ffbb11 !important;
}

.mobile-sidebar-content h4.kontakt-heading a:hover {
    color: #ffd700 !important;
}

.mobile-sidebar-content h4.kontakt-heading::before {
    background: linear-gradient(90deg, #ffbb11 0%, transparent 100%);
}

.mobile-sidebar-content h4.tagovi-heading {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
}

.mobile-sidebar-content h4.tagovi-heading::before {
    background: linear-gradient(90deg, #4a9eff 0%, transparent 100%);
}

.mobile-sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.mobile-sidebar-content li {
    margin: 0;
    position: relative;
}

.mobile-sidebar-content li a {
    display: block;
    padding: 12px 10px;
    color: #c0c0c0 !important;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-sidebar-content li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffbb11;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-sidebar-content ul:nth-of-type(2) li a::before {
    background: #4a9eff;
}

.mobile-sidebar-content li a:hover,
.mobile-sidebar-content li a:active {
    background-color: #2a2a2a;
    color: #ffffff !important;
    padding-left: 22px;
}

.mobile-sidebar-content li a:hover::before,
.mobile-sidebar-content li a:active::before {
    transform: scaleY(1);
}

.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(42, 42, 42, 0.95);
    border-color: #ffbb11;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 20px;
    background: #e0e0e0;
    border-radius: 2px;
    opacity: 1;
    left: 5px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.open span {
    background: #ffbb11;
}

.hamburger.open span:nth-child(1) {
    top: 11px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 11px;
    transform: rotate(-135deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

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

/* ===================================================================
   MOBILNA VERZIJA - RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
    .hamburger { 
        display: block; 
    }
    
    .page-wrapper { 
        flex-direction: column; 
    }
    
    .sidebar-left, 
    .sidebar-right { 
        display: none; 
    }
    
    .main-content-wrapper { 
        width: 100%; 
        padding: 10px;
        border-left: none;
    }
    
    .header-section, 
    .news-section {
        padding: 10px;
    }

    .news-item { 
        display: flex; 
        flex-direction: column; 
    }
    
    .news-item .article-image { 
        order: 1; 
        margin-bottom: 0px; 
    }
    
    .news-item h1 { 
        order: 2; 
        margin-bottom: 5px; 
        font-size: 1.5rem; 
    }
    
    .news-item .article-meta { 
        order: 3; 
        margin-bottom: 0px; 
        font-size: 15px !important; 
        color: #ffffff !important; 
    }
    
    .news-item .article-category { 
        display: none !important; 
    }
    
    .news-item .article-content { 
        display: none !important;     }
    
    .article-meta-inline {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .article-meta-inline span:not(:last-child)::after { 
        content: " •";
        margin-left: 4px;
    }
    
    .article-meta i { 
        display: none; 
    }
}

/* Desktop prikaz - dodavanje bullet-a između meta elemenata */
@media (min-width: 769px) {
    .article-meta-inline { display: inline; }
    .article-meta-inline span:not(:last-child)::after {
        content: " •";
        margin-left: 4px;
    }
}