/* ==============================================
   RESET - sve na nulu
============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: white;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #111;
}

/* ==============================================
   KONTEJNER - max 1150px, centriran
   OVDE SE DRŽI SVE UNUTRA!
============================================== */
.site-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 0px;
}

/* ==============================================
   1. BELI BAR (About, Contact, Login)
   Visina 48px, svetlo siva linija na dnu
============================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
}

.top-bar-left a,
.top-bar-right a {
    text-decoration: none;
    color: #333;
    margin-right: 2px;
}

.top-bar-right a:last-child {
    margin-right: 0;
}

/* Login poravnanje - kompenzacija paddinga roditelja */
.login-link {
    margin-right: 0px;
    padding-right: 0;
}

.login-link {
    font-weight: 500;
    color: #000;
}

.top-bar a:hover {
    text-decoration: underline;
    color: #000;
}

/* ==============================================
   2. CRNI BAR - PUNA ŠIRINA (pozadina crna do ivica)
   Unutrašnji sadržaj je i dalje u 1150px
============================================== */
.black-bar-full {
    background: #000;
    width: 100%;
}

.black-bar-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    height: 17px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.nav-links a:hover {
    text-decoration: underline;
}



/* ==============================================
   3. GLAVNI SADRŽAJ (slike + kolona)
   Razmak: slike levo, kolona desno 30px
============================================== */
.main-content {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

/* ----- LEVI DEO: HERO SLIKE ----- */
.hero-images {
    display: flex;
    gap: 20px;
}

.hero-images,
.article-content {
    width: 840px;
    flex-shrink: 0;
}

/* Velika slika (550px fiksno) */
.hero-large {
    width: 550px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 380px;
}

.hero-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desni stub - dve male slike (270px) */
.hero-small-stack {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-small {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
}

.hero-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- CAPTION (naslov + datum PREKO slike, dole levo) ----- */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 16px 12px 12px 12px;
    color: white;
    pointer-events: none;
}

.caption h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.caption h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.caption span {
    font-size: 12px;
    opacity: 0.85;
}

/* ----- DESNA KOLONA: LATEST NEWS (280px) ----- */
.latest-news,
.sidebar-empty {
    width: 280px;
    flex-shrink: 0;
}

/* Sprečava izlazak teksta van kolone */
.latest-news {
    overflow-x: hidden;
}

.latest-news a {
    word-break: break-word;
    white-space: normal;
}

.latest-news h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000;
    display: inline-block;
}

.latest-news ul {
    list-style: none;
}

.latest-news li {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.latest-news li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-news a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
}

.latest-news li span {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-news a:hover {
    text-decoration: underline;
}

/* ----- FOOTER ----- */
.footer {
    text-align: center;
    padding: 32px 0 48px;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}



/* BLACKBOX efekat - širenje slova za SVE stavke u meniju */
.nav-links a:hover {
    letter-spacing: 3.5px;
    transition: 0.25s ease;
    color: #fff;
}



/* ==============================================
   MOBILNI (768px) - sve u kolonu
============================================== */
@media (max-width: 768px) {
    .site-container {
        padding: 0 16px;
    }
    
    .hero-images,
    .article-content {
        width: 100%;
    }
    
    .black-bar-inner {
        padding: 0 16px;
    }
    
    /* Resetuj margine za mobilni */
    .top-bar-right .login-link {
        margin-right: 0;
    }
    
    .nav-links a:last-child {
        margin-right: 0;
    }
    
    /* Beli bar na mobilnom */
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        text-align: center;
    }
    
    .top-bar-left a,
    .top-bar-right a {
        margin: 0 12px;
    }
    
    /* Crni bar na mobilnom */
    .black-bar-inner {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* Glavni sadržaj u kolonu */
    .main-content {
        flex-direction: column;
        gap: 40px;
    }
    
    /* Hero slike u kolonu */
    .hero-images {
        flex-direction: column;
    }
    
    .hero-large {
        width: 100%;
        height: auto;
    }
    
    .hero-large img {
        height: auto;
        aspect-ratio: 550 / 380;
    }
    
    .hero-small-stack {
        width: 100%;
        flex-direction: row;
        gap: 16px;
    }
    
    .hero-small {
        width: 50%;
        height: auto;
    }
    
    .hero-small img {
        height: auto;
        aspect-ratio: 270 / 180;
    }
    
    .latest-news {
        width: 100%;
    }
    
    .caption h3 {
        font-size: 16px;
    }
    
    .caption h4 {
        font-size: 13px;
    }
}

/* Mala braća (480px) - male slike jedna ispod druge */
@media (max-width: 480px) {
    .hero-small-stack {
        flex-direction: column;
    }
    
    .hero-small {
        width: 100%;
    }
}

/* ==============================================
   FAKE LOGIN MODAL
============================================== */
.fake-login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.fake-login-box {
    width: 320px;
    background: #0b0b0b;
    border: 1px solid #2a2a2a;
    padding: 28px;
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
    animation: fadeIn 0.15s ease;
}

.fake-login-header {
    color: #888;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-align: center;
}

.fake-login-box input {
    width: 100%;
    box-sizing: border-box;
    background: #111;
    border: 1px solid #222;
    color: #ddd;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
}

.fake-login-box input:focus {
    border-color: #555;
}

.fake-login-box button {
    width: 100%;
    padding: 12px;
    background: #151515;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 2px;
}

.fake-login-box button:hover {
    background: #1d1d1d;
    color: #fff;
}

.fake-message {
    margin-top: 18px;
    text-align: center;
    color: #888;
    min-height: 18px;
    font-size: 13px;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   STILOVI ZA STRANU ČLANKA
============================================== */

/* Breadcrumbs */
.article-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

/* Kategorija */
.article-category {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6600;
    margin-bottom: 12px;
}

/* Naslov članka */
.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

/* Uvodni tekst */
.article-intro {
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Slika članka */
.article-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

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

/* Meta podaci */
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.article-author {
    font-weight: 600;
    color: #111;
}

/* Glavni tekst */
.article-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    margin-bottom: 20px;
}

/* Mobile za article */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-intro {
        font-size: 16px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .sidebar-empty {
        display: none;
    }
}

/* ==============================================
   LEVA KOLONA ZA INDEX
============================================== */
.left-column {
    width: 840px;
    flex-shrink: 0;
}

/* ==============================================
   KATEGORIJE NA GLAVNOJ STRANI (3 kolone)
============================================== */
.category-sections {
    margin-top: 48px;
}

.category-row {
    margin-bottom: 48px;
}

.category-row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.category-row-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.category-more {
    font-size: 13px;
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-more:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Grid sa tri kolone */
.category-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Kartica u row-u */
.category-row-card {
    display: flex;
    flex-direction: column;
}

.category-row-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.category-row-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.category-row-card h3 a {
    text-decoration: none;
    color: #111;
}

.category-row-card h3 a:hover {
    text-decoration: underline;
    color: #ff6600;
}

/* Mobile */
@media (max-width: 768px) {
    .left-column {
        width: 100%;
    }
    
    .category-row-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-row-header h2 {
        font-size: 20px;
    }
}

/* Osiguranje da hero-images ne gubi svojstva kad je unutar left-column */
.left-column .hero-images {
    margin-bottom: 0;
}


/* ==============================================
   JEDNA FOTKA – CSS RADI POSAO
   1920×1080 master slike, object-fit sređuje
============================================== */

/* Hero velika slika (550×380) */
.hero-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* malo podigni fokus (opciono) */
}

/* Hero male slike (270×180) */
.hero-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Kartice u kategorijama (category-grid) */
.category-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* Ilustracija unutar članka (puna širina) */
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slika na članku (ako je manja ili ima poseban kontejner) */
.article-content .article-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Opciono – hover efekat na slike u karticama */
.category-card-image img:hover {
    transform: scale(1.02);
    transition: 0.2s ease;
}
