/* ==========================================================================
   Kainoto PBA — Narodni Dom Template & Mainimage Mode Styles
   Used by: template="narodni_dom", template="nd-template", mode="mainimage-mode"
   ========================================================================== */

/* --- Specific container overrides for the narodni-dom-template --- */

#izpostavljeni-umetniki { overflow: hidden; }

.kainoto-swiper-container.narodni-dom-template {
    position: relative;
}

.kainoto-swiper-container.narodni-dom-template .swiper-button-prev,
.kainoto-swiper-container.narodni-dom-template .swiper-button-next {
    position: absolute;
    width: 44px;
    height: 44px;
    bottom: 10px;
    z-index: 10;
}

/* Narodni-dom slides: full container height, no forced min-height */
.kainoto-swiper-container.narodni-dom-template .swiper-slide.kainoto-slide {
    min-height: unset;
    height: 100%;
}

/* Narodni-dom wrapper: fill height, remove default bottom padding */
.kainoto-swiper-container.narodni-dom-template .swiper-wrapper {
    padding-bottom: 0;
    height: 100%;
}

/* --- Background layers --- */

.kainoto-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
}

.kainoto-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* --- Foreground image (sharp subject on blurred background) --- */

.kainoto-foreground-image {
    display: block;
    position: absolute;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.kainoto-foreground-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* --- Blue stripe (diagonal accent) --- */

.blue-stripe {
    position: absolute;
    bottom: 0;
    left: -175px;
    width: 200px;
    height: 300px;
    background: linear-gradient(45deg, #0056b3, transparent);
    z-index: 3;
    transform-origin: bottom left;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Festival colour variants */
.festival_lent_template .blue-stripe    { background: linear-gradient(45deg, #662482, transparent); }
.festival-lent-2026 .blue-stripe        { background: linear-gradient(45deg, #154396, transparent); }
.festival_maribor_template .blue-stripe { background: linear-gradient(45deg, #ffcf00, transparent); }

/* --- Overlay content --- */

.kainoto-overlay {
    position: absolute;
    top: 0;
    z-index: 4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.kainoto-overlay .kainoto-date {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.kainoto-overlay .kainoto-date .day {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.kainoto-overlay .kainoto-date span { text-align: left; }

.kainoto-overlay .kainoto-title {
    color: #fff;
    font-size: 3rem;
    margin: 1rem 0;
    text-align: left;
    line-height: 1.2em;
}

.kainoto-overlay .kainoto-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: 0.3rem;
    transition: background 0.3s;
    border: 1px solid #fff;
}

.kainoto-overlay .kainoto-button:hover { background: #003d80; }
.festival_lent_template .kainoto-overlay .kainoto-button:hover { background: var(--festival-lent-color); }

/* --- Tag list --- */

.kainoto-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    gap: 0.5rem;
}

.kainoto-tags ::marker { content: ""; display: none; }
.kainoto-tags li { padding: 0.5rem 1rem 0.5rem 0; }

/* Keep links inside slides white */
.kainoto-slide a span,
.kainoto-slide a li { color: #fff; }

/* --- Scroll-down "More" button (mainimage-mode) --- */

button.kainoto-more-button {
    background: none;
    color: #fff;
    box-shadow: none;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: 4em;
}

button.kainoto-more-button .et-pb-icon {
    font-size: 6em;
    display: inline-block;
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

/* --- Mainimage mode: full-viewport hero --- */

.kainoto-swiper-container.mainimage-mode {
    height: calc(100vh - 107px); /* 107px = NDMB fixed header height */
    width: 100%;
    overflow: hidden;
}

@media screen and (min-width: 980px) {
    .kainoto-swiper-container.mainimage-mode .kainoto-overlay {
        left: 50%;
        position: absolute;
        width: 45%;
    }
}

/* --- Responsive breakpoints --- */

@media screen and (max-width: 700px) {
    .blue-stripe {
        height: 250px;
        left: 0;
        transform: rotate(0deg);
        width: 100%;
    }

    .kainoto-overlay {
        bottom: 0;
        flex-direction: row;
        justify-content: center;
        align-items: end;
        top:auto;
    }

    .kainoto-overlay .kainoto-date {
        font-size: 1rem;
        margin-bottom: 50px;
        margin-right: 1em;
    }

    .kainoto-overlay .kainoto-title {
        font-size: 2rem;
        margin-bottom: 85px;
    }

    .kainoto-overlay .kainoto-button,
    .kainoto-overlay .kainoto-tags { display: none; }
}

@media screen and (max-width: 900px) and (min-width: 700px) {
    .blue-stripe {
        height: 200px;
        left: 0;
        transform: rotate(0deg);
        width: 100%;
    }

    .kainoto-overlay {
        bottom: 0;
        flex-direction: row;
        justify-content: center;
        align-items: end;
    }

    .kainoto-overlay .kainoto-date {
        font-size: 1.5rem;
        margin-bottom: 50px;
        margin-right: 1em;
    }

    .kainoto-overlay .kainoto-title {
        font-size: 3rem;
        margin-bottom: 85px;
    }

    .kainoto-overlay .kainoto-button,
    .kainoto-overlay .kainoto-tags { display: none; }
}
