/* =================================================================
   FABRIKA BIRE - FOOTER CSS
   Stavi u: theme/css/fb-footer.css
================================================================= */

.site-footer {
    color: white;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Spriječi horizontal scroll na cijeloj stranici */
html, body {
    overflow-x: hidden !important;
}

/* Čestice (zvjezdice) u pozadini */
.footer-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 250px 160px, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 300px 100px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 350px 60px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 400px 140px, rgba(255,255,255,0.15), transparent);
    background-size: 450px 200px;
    animation: twinkle 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* GLAVNI SADRŽAJ - centriran, max 1400px */
.footer-main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 5% 50px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    box-sizing: border-box;
}

/* --- LIJEVA STRANA (Logo + Social) --- */
.footer-brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    width: 180px;
    height: auto;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.3s;
}

.social-icons a:hover svg {
    fill: #c9a227;
}

/* --- DESNA STRANA (Link stupci) --- */
.footer-links-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column h4.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* WordPress menu klase - resetiraj */
.footer-column .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li,
.footer-column .menu li {
    margin-bottom: 12px;
}

.footer-column ul li a,
.footer-column .menu li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-column ul li a:hover,
.footer-column .menu li a:hover {
    color: #c9a227;
}

/* WordPress current-menu-item */
.footer-column .menu li.current-menu-item a {
    color: #c9a227;
}

/* Media logos u stupcu "U Medijima" */
.footer-column .media-logos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column .media-logos a {
    background: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    transition: transform 0.3s;
    text-decoration: none;
}

.footer-column .media-logos a:hover {
    transform: scale(1.05);
}

.footer-column .media-logos img {
    height: 22px;
    width: auto;
    display: block;
}

/* --- BOTTOM BAR --- */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.legal-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* WordPress menu u legal-links */
.legal-links .menu-item {
    list-style: none;
}

.legal-links a {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

.copyright {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}
.copyright .fb-credit-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.copyright .fb-credit-link:hover,
.copyright .fb-credit-link:focus {
    color: rgba(255,255,255,0.85);
}


/* =================================================================
   MOBILNA VERZIJA
================================================================= */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 50px 20px 40px 20px;
        gap: 40px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo-img {
        width: 150px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links-container {
        width: 100%;
        justify-content: space-between;
        gap: 30px;
    }

    .footer-column {
        flex: 0 0 45%;
        text-align: left;
    }

    .footer-column:last-child {
        flex: 0 0 100%;
        text-align: center;
    }

    .footer-column:last-child .media-logos {
        flex-direction: row;
        justify-content: center;
    }

    .footer-heading {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .legal-links {
        gap: 15px;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1100px) {
    .footer-links-container {
        gap: 30px;
    }

    .footer-column h4.footer-heading {
        font-size: 13px;
    }

    .footer-column ul li a,
    .footer-column .menu li a {
        font-size: 12px;
    }
}
