@import url('https://fonts.googleapis.com/css2?family=Sono:wght@200..800&display=swap');

:root {
    --bg: #0b1529;
    --bgSoft: #1f3050;
    --text: #dee4eb;
    --textSoft: #cbd2d9;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: "Sono", monospace;
    word-spacing: -2px;
}

body.light {
    --bg: #dee4eb;
    --text: #0b1529;
}

/* Stilizovanje scrollbar trake */
::-webkit-scrollbar {
    width: 12px;
}

/* Stilizovanje trake na kojoj se kreće thumb */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Stilizovanje thumb-a scrollbar-a (dio koji se pomiče) */
::-webkit-scrollbar-thumb {
    background-color: var(--bg);
    border: 3px solid #f1f1f1;
    border-radius: 14px;
}

/* Promjena boje thumb-a pri hoveru */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--bgSoft);
}

::selection {
    background-color: #ffc107;
    color: var(--bg);
}

/* Alternativno, za Mozilla Firefox */
::-moz-selection {
    background-color: #ffc107;
    color: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 a {
    word-spacing: -7px;
}

a,
span,
p {
    word-spacing: -3px;
}

a {
    color: inherit;
    text-decoration: none;
}



.container {
    max-width: 1366px;
    padding-left: 50px;
    padding-right: 50px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pnf-404-h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* NAVBAR START */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    position: sticky;
    top: 0;
    background-color: var(--bg);
    z-index: 100;
}

.logo {
    font-weight: bold;
    font-size: 24px;
}

.links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    font-size: 20px;
    width: 100%;
}


.searchButton {
    display: flex;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    align-items: center;
    padding: 5px;
    border-radius: 10px;
}

.btnBurger-regular {
    display: none;
    height: 100%;
    width: 34px;
    cursor: pointer;
}

.burger-box {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 16px;
    width: 100%;
    justify-content: space-evenly;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.line-1,
.line-2,
.line-3 {
    position: absolute;
    background-color: var(--text);
    width: 34px;
    height: 2px;
    border-radius: 4px;
}

.burger-box .line-1 {
    top: 0;
}

.burger-box .line-2 {
    top: 50%;
}

.burger-box .line-3 {
    top: 100%;
}

.menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    background-color: var(--bg);
}

.menu-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100px;
    width: 100%;
}

.btnClose-regular {
    width: 34px;
    cursor: pointer;
}

.btn-close {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 34px;
    width: 100%;
    justify-content: space-evenly;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.close-line-1,
.close-line-2 {
    position: absolute;
    background-color: var(--text);
    width: 34px;
    height: 2px;
    border-radius: 4px;
    top: 50%;
}

.close-line-1 {
    transform: rotate(-135deg);
}

.close-line-2 {
    transform: rotate(135deg);
}

.listMobileNav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
}

.toggle {
    width: 40px;
    height: 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--bgSoft);
    border: 0.5px solid var(--textSoft);
    padding: 5px;
    position: relative;
}

.ball {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    background-color: var(--textSoft);
    border: 1px solid var(--bgSoft);
}

.light .ball {
    left: unset;
    right: 0;
}


/* NAVBAR END */

/* FOOTER START */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    font-size: 14px;
}

.social {
    display: flex;
    gap: 10px;
}

/* FOOTER END */

/* LIST START */

.list {
    margin: 50px 0;
}

.listItem {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.listItemImage {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.listItemText {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listItemDetail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.listItemAvatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.listItemCategories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.listItemCategory {
    padding: 5px;
    border-radius: 5px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-style: 14px;
    margin-top: 80px;
    margin-bottom: 30px;
}

.page-item {
    border: 1px solid var(--textSoft);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.page-item.active {
    background-color: var(--text);
    color: var(--bg);
}

.page-item.disabled {
    background-color: #313845;
    cursor: not-allowed;
}

/* LIST END */

/* SINGLE-START */

.singleHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.singleHeadTexts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.singleHeadTitle {
    /* font-size: 48px; */
}

.singleHeadDesc {
    /* font-size: 20px; */
    font-weight: 300;
    object-fit: cover;
}

.singleHeadDetail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    font-size: 16px;
}

.singleHeadDetail .firstLine {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.singleHeadDetail .firstLine a {
    margin: 5px;
}

.singleHeadDetail .secondLine {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}


.singleAvatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.singleCategory {
    padding: 5px;
    border-radius: 5px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    white-space: nowrap;
}

.singleHeadDetail .singleCategory {
    margin: 5px;
}

.singleHeadDetail .singleCategory:first-child {
    margin-left: 0;
}

.singleHeadImg {
    flex: 1;
    max-height: 350px;
    object-fit: cover;
}

.singleBottom {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
}

.singleContent {
    flex: 3;
    font-size: 20px;
    line-height: 32px;
}

.singleContent p,
.singleContent h1,
.singleContent h2,
.singleContent h3 {
    margin: 20px 0;
}

.singleContent a {
    color: #ffc107;
    transition: all .3s;
}

.singleContent a:hover {
    color: #f1f1f1;
}

.singleContent img {
    padding: 20px 0;
    object-fit: contain;
    max-width: 100%;
}

.singleContent pre {
    width: 100%;
    overflow-x: scroll;
}

.singleRightBar {
    flex: 1;
}

/* SINGLE-END */

/* RIGHTBAR-START */

.rightBar {
    position: sticky;
    top: 100px;
}

.rightBarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rightBarImgHr {
    display: none;
}

/* RIGHTBAR-END */

/* SEARCH-START */

.searchForm {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 25px 0;
}

.searchForm .searchButton-1 {
    margin-left: 10px;
}

.searchForm input[type="text"] {
    height: 40px;
    width: 50%;
    outline: none;
    font-family: "Sono", monospace;

}

.searchForm input[type="text"]:focus-visible {
    outline: none;
}

#search-results {
    margin-top: 50px;
}

/* SEARCH-END */

/* Gallery EDIT*/

#gallery-container {
    position: relative;
    width: fit-content;
    /* margin: auto; */
    display: flex;
    justify-content: flex-start;
}

.gallery-slider img {
    width: 100%;
    display: none;
    object-fit: contain;
    cursor: pointer;
    /* Sakrijte sve slike početno */
}

.gallery-controls {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--bg);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: var(--bgSoft);
}

/* Modal (background) */
.modal {
    display: none;
    /* Sakriti modal početno */
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Crna pozadina sa malo providnosti */
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

/* Modalni sadržaj (slika) */
.modal-content {
    margin: auto;
    display: block;
    width: fit-content;
    max-width: 700px;
    cursor: auto;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    position: absolute;
}

/* Zatvaranje X dugme */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery EDIT - END*/



@media (max-width:1536px) {
    .container {
        max-width: 1366px;
    }
}

@media (max-width:1336px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width:1280px) {
    .container {
        max-width: 1024px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width:1024px) {
    .container {
        max-width: 768px;
    }

    .links {
        font-size: 14px;
    }

    .singleHead {
        flex-direction: column-reverse;
        align-items: normal;
    }

    .singleBottom {
        flex-direction: column-reverse;
    }

    .rightBarImg {
        display: none;
    }

    .rightBarImgHr {
        display: none;
        width: 100%;
    }
}

@media (max-width:768px) {
    .container {
        max-width: 100%;
        margin: 0 20px;
    }

    .listItem {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .listItem .itemImgUrl {
        width: 100%;
    }

    .listItem .listItemImage {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .listItemCategories,
    .listItemDetail {
        flex-wrap: wrap;
    }


    .searchForm input[type="text"] {
        height: 40px;
        width: 90%;
        outline: none;
        font-family: "Sono", monospace;

    }

    .footer {
        flex-direction: column;
        margin: 20px 0;
    }

    .footer .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btnBurger-regular {
        display: block;
    }

    .links a {
        display: none;
    }

    .menu .listMobileNav a {
        font-size: 24px;
    }

    .singleBottom {
        margin-top: 0;
    }

    .singleContent p {
        font-size: 16px;
    }

    .singleContent h2 {
        font-size: 20px;
    }

    .modal-content {
        max-width: 90% !important;
    }
}

@media (max-width:500px) {
    .container {
        max-width: 100%;
        margin: 0 20px;
    }
}