/* Resetiranje osnovnih stilova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    overflow-x: hidden;
    background-color: #000; /* Čvrsta crna pozadina za body */
	
}

/* Omotač glavnog sadržaja */
.main-page-content {
    opacity: 0;
    visibility: hidden; /* Inicijalno potpuno skriven */
    background-color: #000; /* Osigurava da je pozadina omotača crna dok se pojavljuje */
	transition: opacity 0.5s ease-in; 
}

.main-page-content.content-visible { /* Klasa koju JS dodaje da pokrene opacity fade-in */
    opacity: 1;
    visibility: visible;
}

/* Linkovi za telefon i email - općenito */
.tel-link, .email-link {
    color: inherit;
    text-decoration: none;
}
.tel-link:hover, .email-link:hover {
    text-decoration: underline;
}

.static-section p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.6;
    color: #c5c5c5;
}

/* Stilovi za početni zaslon (splash screen) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.splash-text {
    font-family: 'Syne', serif;
    font-size: 2.5em;
    color: #fff;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 4px #888888;
    animation: fadeInTextSplash 1.5s 0.5s forwards;
    opacity: 0;
    max-width: 90%;
}

@keyframes fadeInTextSplash {
    to {
        opacity: 1;
    }
}

/* Stilovi za heder */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #080808; /* Tamna pozadina za header */
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid #222; 
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-left {
    flex: 0 1 270px;
    justify-content: flex-start;
    padding-right: 15px;
}

.header-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px #000;
    color: #f0f0f0;
}

.header-center p {
    margin: 2px 0;
}

.header-right {
    flex: 0 1 200px;
    justify-content: flex-end;
    padding-left: 15px;
}

#unplugged-logo-main {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

#solar-park-logo-main {
    max-height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Stilovi za glavni kontejner */
.container {
    display: flex;
    width: 100%;
    margin-top: 200px;
    min-height: calc(100vh - 200px);
}

/* Stilovi za lijevi meni */
.menu-left {
    width: 10%;
    min-width: 180px;
    background-color: #050505; /* Tamna pozadina za lijevi meni */
    padding: 25px 15px;
    overflow-y: auto;
    height: calc(100vh - 200px);
    position: sticky;
    top: 200px;
    align-self: flex-start;
    font-family: 'Syne', serif;
    font-size: 1.6em;
    text-shadow: 1px 1px 2px #000;
}

.menu-left nav ul {
    list-style: none;
    padding: 0;
}

.menu-left nav ul li {
    margin-bottom: 15px;
}

.menu-left nav a {
    text-decoration: none;
    color: #e0e0e0;
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.menu-left nav a:hover,
.menu-left nav a.active-nav-link {
    background-color: #2a2a2a; 
    color: #fff;
}

/* Stilovi za središnji meni */
.menu-center {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    height: calc(100vh - 200px);
    background-color: #030303; /* Tamna pozadina za središnji meni */
    /* Uklonjena tekstura s gradijentima za sada */
}

.menu-content-area {
    margin-bottom: 40px;
    scroll-margin-top: 220px;
}
.menu-content-area:last-child {
    margin-bottom: 0;
}

#pice-content,
#galerija-content {
    display: none;
}

.menu-header-image {
    width: 80%;
    margin-bottom: 50px;
    text-align: center;
	margin-left: auto;
    margin-right: auto;
}

.menu-header-image img {
    width: 80%;
    height: auto;
    object-fit: cover;
    max-width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    box-shadow: 2px 2px 4px #000;
    opacity: 0.95;
}

.main-menu-title { 
    font-family: 'Syne', serif;
    font-size: 2.5em;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 0px solid #444;
    text-shadow: 1px 1px 2px #000;
}

.menu-list {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 0px solid #333;
}
.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title { 
    font-family: 'Syne', serif;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #e0e0e0;
    border-bottom: 2px solid #c0392b;
    display: inline-block;
    text-shadow: 1px 1px 2px #000;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted #2c2c2c; 
}
.menu-item:last-child {
    border-bottom: none;
}

.item-number { 
    color: #aaa;
    margin-right: 10px;
    font-size: 1em;
    min-width: 30px;
    text-align: right;
    flex-shrink: 0;
}
.item-number:empty {
    display: inline-block;
    min-width: 0;
    margin-right: 0;
    padding: 0;
}

.item-name { 
    flex-grow: 1;
    color: #c5c5c5;
    font-size: 1.1em;
    margin-right: 10px;
}

.item-price { 
    color: #e0e0e0;
    font-weight: bold;
    margin-left: 15px;
    font-size: 1.1em;
    white-space: nowrap;
}

/* Galerija */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid a {
    display: block;
    line-height: 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid #333; 
}

/* Stilovi za desni meni/stupac */
.menu-right {
    width: 10%;
    min-width: 180px;
    background-color: #050505; /* Tamna pozadina */
    padding: 25px 15px;
    overflow-y: auto;
    height: calc(100vh - 200px);
    position: sticky;
    top: 200px;
    align-self: flex-start;
    border-left: 1px solid #222; 
}

.menu-right p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #bbb;
    text-align: center;
}

/* Stilovi za logotipe u desnom stupcu */
.sidebar-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
    width: 100%;
}

.sidebar-logos a {
    display: block;
    line-height: 0;
}

.sidebar-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

#logo-prvi {
    height: 50px;
    width: auto;
	max-width: 100%;
}

#logo-drugi {
    height: 50px;
    width: auto;
	max-width: 100%;
}

#logo-treci {
    height: 55px;
    width: auto;
	max-width: 100%;
    object-fit: contain;
}

/* Staticne sekcije */
.static-section {
    padding-top: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.static-section:last-child {
    margin-bottom: 0;
}

/* Stilovi za linkove društvenih mreža */
.social-media-links {
    text-align: center; 
    margin-top: 20px; 
    margin-bottom: 10px;
}

.social-media-links a {
    margin: 0 12px; 
    display: inline-block; 
    color: #c5c5c5; 
    transition: color 0.3s ease;
}

.social-media-links a:hover {
    color: #fff; 
}

.social-media-links .social-icon {
    font-size: 2em; 
    vertical-align: middle;
}

.social-media-links img {
    width: 32px; 
    height: 32px;
    vertical-align: middle;
}

/* Mapa */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid #333; 
    border-radius: 4px;
}

.map-container iframe {
    display: block;
    width: 100%;
    opacity: 1; 
}

/* ==========================================================================
   Responzivni stilovi za mobilne uređaje
   ========================================================================== */

@media (max-width: 992px) {

    .header {
        height: auto;
        min-height: 60px;
        padding: 10px;
        flex-direction: column;
        position: static;
        background-color: #080808; 
        border-bottom: 1px solid #222;
    }

    .header-left,
    .header-center,
    .header-right {
        flex-basis: auto;
        width: 100%;
        padding: 5px 0;
        height: auto;
    }

    .header-center p {
        font-size: 0.9em;
        margin: 5px 0;
    }

    #unplugged-logo-main { max-height: 70px; }
    #solar-park-logo-main { max-height: 45px; }


    .container {
        flex-direction: column;
        margin-top: 0;
    }
    
    .menu-left {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: static;
        background-color: #1c1c1c; 
        padding: 0;
        overflow-y: visible;
        border-bottom: 1px solid #333;
        margin-top: 0;
        text-shadow: none;
    }

    .menu-left nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }

    .menu-left nav ul li {
        margin: 5px 8px;
    }

    .menu-left nav a {
        font-size: 1em;
        padding: 8px 10px;
        color: #f0f0f0;
    }
     .menu-left nav a:hover,
    .menu-left nav a.active-nav-link {
        background-color: #2a2a2a; 
        color: #fff;
    }


    .menu-center,
    .menu-right {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: static;
        padding: 20px;
        margin-top: 0;
        border-left: none;
    }
    .menu-center {
        background-color: #030303; /* Tamna pozadina i na mobilnom */
        overflow-y: visible;
        overflow-x: hidden;
        min-width: 0;
    }

    .menu-right {
        background-color: #050505; 
        border-top: 1px solid #222; 
        overflow-y: visible;
    }


    .menu-content-area {
        scroll-margin-top: 20px;
    }

    .menu-header-image { margin-bottom: 30px; }
    .menu-header-image img { width: 100%; max-width: 100%; border-radius: 4px;}

    .main-menu-title { font-size: 1.9em; } 
    .section-title { font-size: 1.5em; } 
    .static-section p { font-size: 1.1em; line-height: 1.5; }

    .menu-item { flex-direction: column; align-items: flex-start; }
    .item-price { margin-left: 0; margin-top: 5px; font-size: 1em; } 
    .item-name { font-size: 1em; } 
    .item-number { text-align: left; min-width: auto; margin-right: 5px; font-size: 0.9em; } 

    .social-media-links .social-icon {
        font-size: 1.8em; 
    }
    .social-media-links img {
        width: 28px;
        height: 28px;
    }


    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
        max-width: 100%;
    }
    .gallery-grid img { height: 160px; }

    .map-container {
        max-width: 100%;
        margin: 15px 0;
        border: none;
        border-radius: 0;
    }
    .map-container iframe { height: 300px; }

    .sidebar-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
    }
    #logo-prvi, #logo-drugi, #logo-treci {
         height: 45px;
    }
}

/* Dodatna prijelomna točka za vrlo male ekrane */
@media (max-width: 480px) {
    .header { min-height: 50px; }
    .header-center p { font-size: 0.9em; } 
    #unplugged-logo-main { max-height: 60px; }
    #solar-park-logo-main { max-height: 35px; }

    .main-menu-title { font-size: 1.6em; } 
    .section-title { font-size: 1.3em; } 
    .static-section p { font-size: 1em; }

    .menu-left nav a { font-size: 0.9em; padding: 7px 8px; }
    .menu-left nav ul li { margin: 3px 5px; }

    .menu-center, .menu-right { padding: 15px; }
 
    .item-price { font-size: 0.95em; }
    .item-name { font-size: 0.95em; }
    .item-number { font-size: 0.85em; }

    .social-media-links .social-icon {
        font-size: 1.6em;
    }
    .social-media-links img {
        width: 24px;
        height: 24px;
    }
    .social-media-links a {
        margin: 0 8px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid img { height: 180px; }

    .sidebar-logos { gap: 15px; }
    #logo-prvi, #logo-drugi, #logo-treci { height: 40px; }
}
