/* ===================================================================
   GLOBALNO RESETOVANJE I POČETNA PODEŠAVANJA - VEOMA VAŽNO
   =================================================================== */
*, *::before, *::after {
    box-sizing: border-box; /* Rešava problem sa paddingom i širinom */
}

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

body {
    font-family: "Taviraj", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.4;
    background-color: #121212;
    color: #e0e0e0;
    /* overflow-x: hidden; nije više neophodno, ali može ostati kao sigurnosna mreža */
}

.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-top: 10px;
    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;
}

/* Header stilovi */
.header-full-width {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    position: relative;
}

/* Hamburger meni stilovi - CSS verzija */
.hamburger {
    display: none; /* Sakriven na desktopu */
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px; /* Smanjena širina */
    height: 20px; /* Smanjena visina */
    background: transparent; /* Uklanjamo pozadinu */
    border: none; /* Uklanjamo okvir */
    cursor: pointer;
    z-index: 1001;
    padding: 0; /* Uklanjamo padding */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px; /* Tanja linija */
    width: 100%;
    background: #e0e0e0; /* Boja linija */
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out; /* Glatka animacija */
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px; /* Smanjen razmak između linija */
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Stilovi kada je meni otvoren (dodaje se JS-om) */
.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px; /* Pomera se van ekrana */
}

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

/* Mobilni sidebar stilovi */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100%;
    background-color: #1e1e1e;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

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

/* Overlay stilovi */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Container stilovi */
.container {
    display: flex;
    min-height: 80vh;
    width: 100%; /* Osigurava da kontejner nikad ne bude širi od svog roditelja */
}

.sidebar-left {
    width: 15%;
    background-color: #1e1e1e;
    padding: 15px;
    border-right: 1px solid #333;
    flex-shrink: 0; /* Sprečava da se sidebar smanjuje više nego što treba */
}

.main-content {
    width: 70%;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar-right {
    width: 15%;
    background-color: #1e1e1e;
    padding: 15px;
    border-left: 1px solid #333;
    flex-shrink: 0;
}

/* Vest stilovi */
.news-item {
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.news-item img {
    max-width: 100%;
    height: auto;
    display: block; /* Uklanja malo prostor ispod slike */
}

/* Link stilovi */
a {
    color: #4da6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Paginacija stilovi */
.pagination {
    text-align: center;
    margin-top: 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;
}

/* Form stilovi */
input[type="text"] {
    width: 100%; /* Postavljamo na 100% unutar svog kontejnera */
    padding: 8px;
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #444;
}

button {
    padding: 8px 15px;
    background-color: #4da6ff;
    color: white;
    border: none;
    cursor: pointer;
}

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

/* Dodatno: Stil za komentar formu */
.comments textarea {
    width: 100%; /* Koristimo 100% umesto cols */
    padding: 8px;
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #444;
    font-family: inherit; /* Nasleđuje font sa stranice */
    resize: vertical; /* Dozvoljava samo vertikalno menjanje veličine */
}

/* Mobilna verzija */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .sidebar-left, .sidebar-right {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    /* Mobilni prikaz članaka - slika, naslov, autor i datum */
    .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;
    }
    
    /* bulit  */
    .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;
    }
}