﻿/* =========================================
   1. OSNOVNI STILOVI I TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.portal-body {
    max-width: 1165px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* NASLOVI */
.post-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 1rem;
}

h1.post-title {
    font-size: 2.8rem;
}

h2.post-title {
    font-size: 2.2rem;
}

h3.post-title {
    font-size: 1.8rem;
}

.section-title {
    font-weight: 600;
    font-size: 2rem;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* =========================================
   2. HERO SEKCIJA (NASLOVNICA)
   ========================================= */
.hero {
    background: url('https://cronetik.com/images/upload/750px-1fzdt.jpg') center center / cover no-repeat;
    height: 70vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1, .hero p {
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero form {
    margin-top: 2rem;
}

.hero input[type="text"] {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    width: 80%;
    max-width: 500px;
    border: 1px solid #ccc;
}

.hero button {
    margin-top: 1rem;
    border-radius: 30px;
    padding: 0.6rem 2rem;
    border: none;
    background: #28a745;
    color: #fff;
    font-weight: bold;
}

/* =========================================
   3. ELEMENTI NASLOVNICE (Kategorije, Inspire)
   ========================================= */
/* KATEGORIJE BOX */
.category-box {
    transition: all 0.3s;
    border-radius: 10px;
    border: 1px solid #28a745;
}

    .category-box:hover {
        background: #e6f7ec;
        box-shadow: 0 0 10px rgba(40,167,69,0.1);
    }

.category-icon {
    font-size: 2.5rem;
}

/* INSPIRE ME KARTICE */
.happening-card {
    position: relative;
    color: white;
    height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

    .happening-card:hover {
        transform: scale(1.02);
    }

.inspire-text {
    text-align: center;
    margin: 0 auto 2rem auto;
    max-width: 750px;
    color: #444;
    font-size: 1rem;
}

.view-all {
    text-align: center;
    margin-top: 1rem;
}

    .view-all a {
        text-decoration: underline;
        color: #28a745;
        font-weight: bold;
    }

/* =========================================
   4. SIDEBAR FILTERI (FLOAT FIX - NAJSIGURNIJE ZA ASP.NET)
   ========================================= */
.filter-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    z-index: 10;
    overflow: hidden;
}

/* Kontejner liste */
.filter-checkbox-list {
    display: block;
    width: 100%;
    padding: 5px 0;
}

    /* 1. SAKRIVAMO ASP.NET <br> TAGOVE */
    /* Ovo je ključno jer koristimo float, pa nam <br> smeta */
    .filter-checkbox-list br {
        display: none;
    }

    /* 2. KVAČICA (INPUT) */
    .filter-checkbox-list input[type="checkbox"] {
        float: left; /* Gura kvačicu skroz lijevo */
        width: 16px;
        height: 16px;
        margin-top: 3px; /* Poravnanje s prvim redom teksta */
        margin-right: 0; /* Razmak rješavamo marginom na labeli */
        cursor: pointer;
        accent-color: #28a745;
        clear: left; /* Osigurava da svaka kvačica ide u novi red */
    }

    /* 3. TEKST (LABELA) */
    .filter-checkbox-list label {
        display: block; /* Ponaša se kao blok */
        /* OVDJE STVARAMO STUPAC ZA TEKST: */
        /* 16px (širina kvačice) + 10px (razmak) = 26px */
        margin-left: 26px;
        margin-bottom: 6px; /* Razmak između redova (stavki) */
        font-size: 0.9rem;
        color: #555;
        line-height: 1.3;
        cursor: pointer;
        text-align: left;
        word-break: break-word; /* Prelama dugačke riječi */
    }

/* Bootstrap Accordion Overrides */
.accordion-button {
    background-color: transparent !important;
    padding: 12px 15px;
    color: #495B69;
}

    .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(0,0,0,.125);
    }

    .accordion-button:not(.collapsed) {
        color: #28a745 !important;
        background-color: #f9f9f9 !important;
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
    }

    .accordion-button::after {
        background-size: 0.8rem;
        opacity: 0.6;
    }

/* =========================================
   5. KARTICE DOGAĐAJA (EVENT CARDS)
   ========================================= */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

    .event-card img {
        height: 180px;
        object-fit: cover;
    }

    .event-card .card-body {
        min-height: 150px;
    }

/* =========================================
   6. GUMBI I PAGINACIJA
   ========================================= */
.btn-primary {
    background-color: #28a745;
    border: none;
}

    .btn-primary:hover {
        background-color: #218838;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

/* Paginacija - Zeleni stil */
.pagination .page-link {
    color: #495B69;
    border: 1px solid #dee2e6;
}

    .pagination .page-link:hover {
        color: #28A745;
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

.pagination .page-item.active .page-link {
    background-color: #28A745;
    border-color: #28A745;
    color: white;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* =========================================
   7. FOOTER I OSTALI ELEMENTI
   ========================================= */
footer {
    background: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.top-lang-bar {
    padding: 6px 20px;
    text-align: right;
}

    .top-lang-bar img {
        margin-left: 6px;
        vertical-align: middle;
    }

/* Back to Top Gumb */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    text-align: center;
    line-height: 48px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.4s ease;
}

    .back-to-top.show {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .back-to-top:hover {
        background-color: #218838;
        transform: scale(1.1);
        text-decoration: none;
    }

    .back-to-top i {
        vertical-align: middle;
    }

/* =========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-top: 6px;
    }

    .header-flags {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        padding: 6px 0;
    }

        .header-flags img {
            width: 24px;
            height: auto;
        }
}

@media (min-width: 992px) {
    .header-flags {
        margin-left: auto;
    }

    .navbar-nav {
        margin: 0 auto;
    }
}
