/* ---- Globalne nastavitve ---- */
body {
    margin: 0;
    box-sizing: border-box;
}

main {
    display: flex;
    flex-direction: column;
    color: black;
    width: 100%;
}

@keyframes slideInDogodki {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* ---- Navigacija ---- */
.nav-dogodki {
    display: flex;
    flex-direction: row;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    height: 8vh;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
}

.nav-dogodki ul { list-style: none; }

.nav-dogodki li { float: left; margin: 0 5vw; }

.nav-dogodki a { color: black; text-decoration: none; }

.nav-dogodki a:hover { text-decoration: underline; }

/* ---- Subtitle ---- */
.subtitle {
    padding: 5vw;
    display: flex;
    flex-direction: row;
    background-image: url(../../assets/top-gradient-green-orange-left.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    justify-content: center;
    align-items: center;
}

.subtitle div hr { width: 70%; float: left; }

.subtitle-middle {
    margin: 10vh;
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.description { width: 40vw; }

.description h1 { font-size: 2rem; }

.naslov-dogodki h1 { margin-right: 2vw; }

.content {
    padding: 5vw;
    display: flex;
    flex-direction: column;
    background-image: url(../../assets/red-orange-gradient-full.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---- Koledar in dogodki ---- */
.dogodki-info {
    margin-left: 10vw;
    width: 80vw;
    height: 50vh;
    display: flex;
    flex-direction: row; 
    gap: 10vw;
    align-items: center; 
    margin-bottom: 10vh;
    margin-top: -20vh;
}

.dogodki-info h1 {
    color: black;
    font-size: 3rem;
}

/* ---- Novice ---- */
.novice, .novice-past {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    justify-content: center;
}

.novica, .novica-past {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.novica-past {
    flex: 0 1 calc(33.33% - 20px);
    box-sizing: border-box;
}

.novica a { color: black; }
.novica a:hover { color: blue; }

.novica h2, .novica-past h2 { margin: 0; font-size: 18px; display: flex; align-items: center; }
.novica p, .novica-past p { margin: 5px 0 0; font-size: 14px; }

/* ---- Paginacija ---- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
    font-size: 20px;
}

.pagination a {
    color: black;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.pagination a:hover { color: #333; }

.page-number { font-weight: bold; padding: 0 10px; }

.pagination button {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: black;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.pagination button:hover {
    animation: moveButton 0.45s ease forwards;
}

@keyframes moveButton {
    0% { transform: translateX(0); }
    50% { transform: translateX(var(--shift)); }
    100% { transform: translateX(0); }
}

/* ---- Past Events ---- */
.past-events { width: 100%; }
.past-events .dogodek-past {
    flex: 0 1 calc(50% - 10px);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
}

.past-events .dogodek-past h2 { margin: 0; font-size: 1.2em; }
.past-events .dogodek-past p { margin: 5px 0 0; color: #333; }

.past-events-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-image: url(../../assets/red-orange-gradient-full.svg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5vw;
    margin-top: 20vh;
}

.past-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    background-color: rgba(0,0,0,0.35);
    padding: 4vh;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 4vw;
    color: #fff;
}

.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
}

/* ---- Filter ---- */
.filter-section { display:flex; align-items: center; gap: 10px; }
.filter-section div {
    display: flex;
    border-radius: 8px;
    align-self: center;
    padding: 1.5vh;
    background: linear-gradient(135deg, #d74141, #f3a848);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 1.2s;
}
.filter-section div:hover { transform: scale(1.1); }

.filter-section label {
    font-size: 1.1rem;
    font-weight: bold;
}

select {
    color: #6c2222;
    background: none;
    border: none;
    border-radius: 5px;
    padding: 2px;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
}

/* ---- Enodnevni dogodki (oranžno) ---- */
.flatpickr-day.event-day {
    background-color: #ffd45f !important; /* oranžno */
    color: black;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #00000033;
}

.flatpickr-day.event-day:hover {
    background-color: rgba(255, 166, 0, 0.5) !important;
    cursor: pointer;
}

/* ---- Večdnevni dogodki (modro) ---- */
.flatpickr-day.event-span {
    background: rgba(0, 123, 255, 0.25) !important; /* svetlo modra, transparentna */
    border-radius: 50%;
    color: #000;
    z-index: 1;
}

.flatpickr-day.event-start,
.flatpickr-day.event-end {
    background: rgba(0, 123, 255, 0.9) !important; /* močna modra */
    color: #fff !important;
    font-weight: bold;
    border-radius: 50%;
    z-index: 2;
}

/* Hover za vse večdnevne */
.flatpickr-day.event-span:hover,
.flatpickr-day.event-start:hover,
.flatpickr-day.event-end:hover {
    background: rgba(0, 123, 255, 0.5) !important;
    cursor: pointer;
}

/* Odstranitev črt na start/end */
.flatpickr-day.event-start::after,
.flatpickr-day.event-end::before {
    content: none !important;
}


/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
    .nav-dogodki, .subtitle, .subtitle-middle, .dogodki-info, .past-events-content, .filter-section, .past-events .events-grid {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dogodki-info {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5vh;
        height: auto;
        margin-left: 0;
        width: 100%;
        padding: 0 5vw;
        text-align: center;
        margin-top: 20vh;
    }

    .dogodki-info h1 { font-size: 2rem; }

    .nav-dogodki { width: 100vw; height: auto; padding: 10px 0; flex-wrap: wrap; text-align: center; }
    .nav-dogodki li { margin: 10px 15px; float: none; }

    .subtitle, .content, .past-events-content { width: 100vw; background-size: cover; background-position: center; }
    .content-section, .dogodki-info, .past-events .events-grid { overflow-x: auto; width: 100%; }
    .novica-past, .past-events .dogodek-past { flex: 0 1 90% !important; }

    .filter-section { flex-direction: column; gap: 10px; margin-top: 2vh; }
    .filter-section div { margin-right: 0; width: 90%; justify-content: center; }

    .subtitle-middle, .description, .past-description { margin: 5vh 0; width: 90%; padding: 5vw; }
    .description { width: 100%; }
    .past-description { margin-right: 0; }
    .novica-past { flex: 1 1 100%; }
}
