/* Frontend stilovi za Važne Obavijesti */

/* CSS varijable za dinamičke vrijednosti */

.vo-close-button:hover{
    background-color: transparent !important;
}

/* Animacija pojavljivanja - spuštanje zastora */
@keyframes vo-slide-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animacija skrivanja - podizanje zastora */
@keyframes vo-slide-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.vo-notice-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--vo-bg-color);
    color: var(--vo-text-color);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    animation: vo-slide-down 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.vo-notice-container.vo-hiding {
    animation: vo-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}






/* Header koji drži logo i X dugme */
.vo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    min-height: var(--vo-logo-height);
    padding: 30px 60px 30px 70px !important;
}

/* Logo container */
.vo-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.vo-logo {
    height: var(--vo-logo-height);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Content container */
.vo-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-y: auto;
    margin-top: -130px;
}






.vo-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Naslov */
.vo-title {
    font-size: var(--vo-title-size);
    color: var(--vo-text-color);
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tekst */
.vo-text {
    font-size: var(--vo-text-size);
    color: var(--vo-text-color);
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Stilovi za rich text elemente */
.vo-text h1,
.vo-text h2,
.vo-text h3,
.vo-text h4,
.vo-text h5,
.vo-text h6 {
    color: var(--vo-text-color);
    margin: 0.5em 0;
    line-height: 1.2;
}


.vo-text h2 {
    letter-spacing: 3px;
}

.vo-text p {
    margin: 0.5em 0;
}

.vo-text strong,
.vo-text b {
    font-weight: bold;
}

.vo-text em,
.vo-text i {
    font-style: italic;
}

.vo-text ul,
.vo-text ol {
    text-align: left;
    max-width: 600px;
    margin: 0.5em auto;
    padding-left: 20px;
}

.vo-text a {
    color: var(--vo-text-color);
    text-decoration: underline;
}

.vo-text a:hover {
    opacity: 0.8;
}

/* Gumb "Više" */
.vo-more-btn {
    color: var(--vo-text-color);
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid var(--vo-text-color);
    transition: all 0.3s ease;
    font-size: 14px !important;
    font-family: "Barlow";
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: transparent;
    text-transform: uppercase;
    margin-top: 20px;
        min-width: 140px !important;
    min-height: 52px !important;
    text-align: center !important;
}

.vo-more-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--vo-text-color);
    background: transparent;
}

.vo-more-btn:active {
    transform: translateY(0);
}

/* Gumb za zatvaranje */
.vo-close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--vo-close-size);
    color: var(--vo-text-color);
    width: var(--vo-close-size);
    height: var(--vo-close-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    line-height: 1;
    min-width: var(--vo-close-size);
    min-height: var(--vo-close-size);
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

.vo-close-button::before,
.vo-close-button::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px; /* debljina linije */
    background-color: var(--vo-text-color);
    top: 50%;
    left: 50%;
}

.vo-close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.vo-close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.vo-close-button:hover {
    transform: rotate(90deg);
    outline: none !important;
}

.vo-close-button:active {
    outline: none !important;
}



.vo-close-button::before,
.vo-close-button::after {
    outline: none !important;
    box-shadow: none !important;
}

/* Ikona za zatvaranje */
.vo-close-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.vo-close-default {
    font-size: inherit;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: block;
    border: none !important;
    outline: none !important;
}

/* Pomjeranje sadržaja stranice */
body.vo-active {
    margin-top: 100vh !important;
    transition: margin-top 0.5s ease-out;
    overflow: hidden !important; /* Sprečava skrolovanje */
    position: fixed;
}

/* Responsive design */
@media (max-width: 1024px) {
    .vo-notice-container {
        height: 100vh;
        padding: 15px;
    }

    body.vo-active {
        margin-top: 100vh !important;
    }

    .vo-title {
        font-size: calc(var(--vo-title-size) * 0.9);
        margin-bottom: 12px;
    }

    .vo-text {
        font-size: calc(var(--vo-text-size) * 0.95);
        margin-bottom: 15px;
    }

    .vo-more-btn {
        font-size: calc(var(--vo-text-size) * 0.85);
        margin-top: 30px;
    }

}

@media (max-width: 768px) {
    .vo-notice-container {
        height: 100vh;
        padding: 12px;
    }

    body.vo-active {
        margin-top: 100vh !important;
    }

    .vo-content {
        max-width: 100%;
    }

    .vo-title {
        font-size: calc(var(--vo-title-size) * 0.8);
        margin-bottom: 10px;
    }

    .vo-text {
        font-size: calc(var(--vo-text-size) * 0.9);
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .vo-more-btn {
        padding: 8px 16px;
        font-size: calc(var(--vo-text-size) * 0.8);
    }





    .vo-header {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .vo-notice-container {
        height: 100vh;
        padding: 10px;
    }

    body.vo-active {
        margin-top: 100vh !important;
    }

    .vo-title {
        font-size: calc(var(--vo-title-size) * 0.7);
        margin-bottom: 8px;
    }

    .vo-text {
        font-size: calc(var(--vo-text-size) * 0.85);
        margin-bottom: 10px;
    }

    .vo-more-btn {
        padding: 3px 30px;
        font-size: calc(var(--vo-text-size) * 0.75);
        margin-top: 30px;
    }


.vo-close-button::before,
.vo-close-button::after {
    height: 2.5px; /* debljina linije */
    background-color: var(--vo-text-color);

}




    .vo-logo {

        margin-left: 4px;
    }

    .vo-header {
        margin-top: -10px !important;
        margin-bottom: 10px;
    }
    .vo-main-content {
    margin-top: -10vh;
}
}

/* Landscape orientacija na mobilnim uređajima */
@media (max-width: 768px) and (orientation: landscape) {
    .vo-notice-container {
        height: 100vh;
    }

    body.vo-active {
        margin-top: 100vh !important;
    }
}

/* Visoki kontrast */
@media (prefers-contrast: high) {
    .vo-close-button:hover {
        background-color: rgba(0, 0, 0, 0.3);
    }

    .vo-more-btn {
        border-width: 3px;
    }

    .vo-title,
    .vo-text {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vo-notice-container {
        animation: none;
    }

    .vo-notice-container.vo-hiding {
        animation: none;
        display: none;
    }

    .vo-close-button,
    .vo-more-btn {
        transition: none;
    }

    body.vo-active {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vo-more-btn {
        background-color: transparent;
    }

    .vo-more-btn:hover {
        background-color: transparent;
    }

    .vo-close-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .vo-notice-container {
        display: none !important;
    }

    body.vo-active {
        margin-top: 0 !important;
    }
}



/* Dodatne CSS resetiranja za problematične stilove */
.vo-close-button,
.vo-close-button *,
.vo-close-icon,
.vo-close-default {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Uklanjanje browser default stilova */
.vo-close-button::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

.vo-close-button::-webkit-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

/* Screen reader only content */
.vo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}






@media only screen and (max-width: 999px) {
.vo-more-btn {
    padding: 8px 16px !important;
    min-width: 120px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.5px;
}


/* Header koji drži logo i X dugme */
.vo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    min-height: var(--vo-logo-height);
    padding: 2px 1px 10px 10px !important;
}

.vo-logo {
    height: 44px;

}

.vo-close-button {
    min-height: 40px !important;
    min-width: 40px !important;
    height: 56px !important;
    width: 54px !important;

}
}