﻿/* OSNOVNI STILOVI */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000000;
}

/* HERO SEKCIJA */
.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;
}

/* KATEGORIJE */
.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;
}

/* DOGAĐAJI */
.event-card img {
    height: 180px;
    object-fit: cover;
}

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

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

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

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

/* NASLOVI SEKCIJA */
.section-title {
    font-weight: 600;
    font-size: 2rem;
}

/* 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);
    }

/* VIEW ALL LINK */
.view-all {
    text-align: center;
    margin-top: 1rem;
}

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

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

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

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

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

/* BACK TO TOP */
.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;
    }

/* === RESPONSIVNI HEADER === */
@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;
    }
}
