/* =========================================================
   CONFERENCE HERO VIDEO — CSS
   Razširi obstoječe .conf-hero stile z video ozadjem.
   ========================================================= */

/* Video varianta hero sekcije */
.conf-hero--video {
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 5rem;
    background: #01304f;
}

/* Prepreči da ::before / ::after pseudo-elementi iz .conf-hero prekrijejo video */
.conf-hero--video::before,
.conf-hero--video::after {
    display: none;
}

/* Ozadni video — covers celoten hero */
.conf-hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    z-index: 0;
    pointer-events: none;
}

/* Overlay — opacity nastavljena prek inline CSS variable */
.conf-hero--video .conf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgb(1, 48, 79) 0%,
        rgb(1, 48, 79) 40%,
        rgb(0, 73, 131) 100%
    );
    opacity: var(--hero-overlay-opacity, 0.55);
    z-index: 1;
}

/* Content ostane nad overlayem */
.conf-hero--video .conf-hero-content {
    position: relative;
    z-index: 2;
}

/* Text shadow za boljšo berljivost čez video */
.conf-hero--video .conf-hero-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.conf-hero--video .conf-hero-subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}


/* ─────────────────────────────────────────────
   PLAY / PAUSE TOGGLE
   ───────────────────────────────────────────── */

.conf-hero-video-toggle {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.conf-hero-video-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.conf-hero-video-toggle:focus-visible {
    outline: 2px solid var(--color-accent, #0091ea);
    outline-offset: 2px;
}

/* Stanje: video pavziran */
.conf-hero--video.is-paused .conf-hero-icon-pause { display: none; }
.conf-hero--video.is-paused .conf-hero-icon-play  { display: block !important; }


/* ─────────────────────────────────────────────
   MOBILE
   Video skrivanje in gumb upravljamo z JS,
   ne s CSS media query (izogib konfliktu).
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .conf-hero--video {
        min-height: 55vh;
        padding: 5rem 1.25rem 4rem;
    }
}

@media (max-width: 480px) {
    .conf-hero--video {
        min-height: 50vh;
        padding: 4.5rem 1rem 3.5rem;
    }
}


/* ─────────────────────────────────────────────
   ANIMACIJA OB NALAGANJU
   ───────────────────────────────────────────── */

.conf-hero--video .conf-hero-content {
    animation: heroFadeIn 1s ease-out 0.2s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .conf-hero--video .conf-hero-content {
        animation: none;
    }
}
