/**
 * eLfilms.cz - Styly pro reklamní bannery (splash + promo)
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/splash-reklama.css
 * @version    3.0 - HTML overlay, layout varianty, Ken Burns, kruhový countdown
 * @datum      Duben 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * STYLUJE:
 * - Splash banner (pod headerem, celá šířka)
 * - Promo blok (index.php, střídaný)
 * - Overlay varianty (classic, dramatic, vignette, gold, none)
 * - Layout varianty (left, center, right)
 * - Ken Burns efekt na fotce
 * - Kruhový SVG countdown
 * - Fade-in animace obsahu (logo → slogan → podtext → tlačítko)
 *
 * POUŽÍVÁ:
 * - includes/header.php (splash)
 * - index.php (promo)
 *
 * DESIGN:
 * - Barvy: tmavě modrá (#071a2e), zlatá (#EEB500), oranžový gradient CTA
 * - Mobile: stacked layout (foto nahoře, obsah dole s tmavým pozadím)
 *
 * NOTE:
 * - Responsive styly jsou v splash-reklama-responsive.css
 * - --oi = overlay intenzita (0.0–1.0), nastaveno inline style
 */

/* ============================================
   KEN BURNS ANIMACE
   ============================================ */

@keyframes elKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(-2%, -1.5%);
    }
}

/* ============================================
   FADE-IN ANIMACE OBSAHU
   ============================================ */

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

@keyframes elFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   SPLASH BANNER WRAP
   Začíná skrytý — JS nastaví display:block
   ============================================ */

#splash-banner-wrap {
    width: 100%;
    position: relative;
    z-index: 100;
    display: none;
}

/* ============================================
   BANNER - ZÁKLADNÍ KONTEJNER
   Sdílený pro splash i promo blok
   ============================================ */

.el-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #071a2e;
}

.el-banner-splash {
    height: 420px;
}

.el-banner-promo {
    height: 480px;
}

/* ============================================
   FOTO - <img> TAG (ne background-image!)
   object-position zachová hlavy vždy viditelné
   ============================================ */

.el-banner-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: none;
}

/* Ken Burns — třída přidaná JS nebo PHP */
.el-banner-kb .el-banner-photo {
    animation: elKenBurns 14s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* ============================================
   OVERLAY VARIANTY
   --oi je CSS custom property nastavená inline (0.0–1.0)
   ============================================ */

.el-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* Klasický — gradient zleva */
.el-overlay-classic {
    background: linear-gradient(
        to right,
        rgba(7, 26, 46, calc(var(--oi, 0.88) * 0.96)) 0%,
        rgba(7, 26, 46, calc(var(--oi, 0.88) * 0.65)) 42%,
        rgba(7, 26, 46, calc(var(--oi, 0.88) * 0.18)) 72%,
        rgba(7, 26, 46, 0) 100%
    );
}

/* Dramatický — silný překryv přes celou plochu */
.el-overlay-dramatic {
    background: rgba(7, 26, 46, calc(var(--oi, 0.75) * 0.90));
}

/* Vignette — tmavé okraje, světlý střed */
.el-overlay-vignette {
    background: radial-gradient(
        ellipse at center,
        rgba(7, 26, 46, 0) 25%,
        rgba(7, 26, 46, calc(var(--oi, 0.80) * 0.50)) 60%,
        rgba(7, 26, 46, calc(var(--oi, 0.80) * 0.92)) 100%
    );
}

/* Zlatý tón — brand overlay */
.el-overlay-gold {
    background: linear-gradient(
        135deg,
        rgba(180, 110, 0, calc(var(--oi, 0.65) * 0.75)) 0%,
        rgba(140, 80, 0, calc(var(--oi, 0.65) * 0.45)) 50%,
        rgba(7, 26, 46, calc(var(--oi, 0.65) * 0.25)) 100%
    );
}

/* Bez překryvu */
.el-overlay-none {
    background: transparent;
}

/* ============================================
   OBSAH — LAYOUT VARIANTY
   ============================================ */

/* Wrapper omezující obsah na 1200px — foto jde od okraje, text ne */
.el-content-outer {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.el-content {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 24px;
    pointer-events: auto;
    gap: 0;
}

/* VLEVO (výchozí) */
.el-layout-left .el-content {
    left: 0;
    right: auto;
    align-items: flex-start;
    text-align: left;
}

/* UPROSTŘED */
.el-layout-center .el-content {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
    padding: 36px 24px;
}

/* VPRAVO */
.el-layout-right .el-content {
    right: 0;
    left: auto;
    align-items: flex-end;
    text-align: right;
}

/* ============================================
   LOGO
   ============================================ */

.el-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    opacity: 0;
    animation: elFadeSlideIn 0.65s ease forwards;
    animation-delay: 0.15s;
}

.el-logo img {
    max-width: 320px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.el-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.1;
    font-family: Arial, sans-serif;
}

.el-logo-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    display: block;
    font-weight: 400;
}

/* ============================================
   SLOGAN
   ============================================ */

.el-slogan {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    font-family: Arial, sans-serif;
    opacity: 0;
    animation: elFadeSlideIn 0.65s ease forwards;
    animation-delay: 0.35s;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: normal;
}

/* ============================================
   PODTEXT
   ============================================ */

.el-podtext {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.35);
    font-family: Arial, sans-serif;
    opacity: 0;
    animation: elFadeSlideIn 0.65s ease forwards;
    animation-delay: 0.55s;
    word-break: break-word;
}

/* ============================================
   TLAČÍTKA
   ============================================ */

.el-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    text-decoration: none;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: elFadeSlideIn 0.65s ease forwards;
    animation-delay: 0.75s;
}

.el-btn:hover {
    transform: translateY(-3px);
}

/* Zlaté (výchozí, CTA) */
.el-btn-gold {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(243, 156, 18, 0.35);
}

.el-btn-gold:hover {
    box-shadow: 0 14px 36px rgba(243, 156, 18, 0.5);
}

/* Bílé */
.el-btn-white {
    background: #ffffff;
    color: #071e30;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.el-btn-white:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

/* Průhledné s okrajem */
.el-btn-transparent {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.75);
    box-shadow: none;
}

.el-btn-transparent:hover {
    background: rgba(255,255,255,0.12);
    border-color: #ffffff;
}

/* Duhové */
.el-btn-rainbow {
    background: linear-gradient(135deg, #ff6b9d, #c44aff, #6b8cff);
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(196, 74, 255, 0.35);
}

.el-btn-rainbow:hover {
    box-shadow: 0 14px 36px rgba(196, 74, 255, 0.5);
}

/* ============================================
   ZAVÍRACÍ TLAČÍTKO S KRUHOVÝM COUNTDOWNEM
   ============================================ */

.el-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.30);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    opacity: 0;
    animation: elFadeIn 0.5s ease 1.4s forwards;
}

.el-close:hover {
    background: rgba(238,181,0,0.55);
}

.el-close-icon {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    position: absolute;
    z-index: 2;
    line-height: 1;
    transition: color 0.2s;
}

.el-close:hover .el-close-icon {
    color: #071e30;
}

/* SVG kruhový countdown */
.el-countdown-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.el-countdown-bg {
    stroke: rgba(255,255,255,0.15);
}

.el-countdown-prog {
    stroke: rgba(255,255,255,0.7);
    transition: stroke-dashoffset 1s linear;
    stroke-linecap: round;
}

.el-close:hover .el-countdown-prog {
    stroke: rgba(7,30,48,0.7);
}

/* Číslo odpočtu (skryté, countdown je vizuální) */
.el-countdown-num {
    display: none;
}

/* ============================================
   PROMO BANNER (index.php)
   ============================================ */

.el-promo-wrap {
    position: relative;
    width: 100%;
}

.el-banner-promo .el-close {
    display: none;
}

/* ============================================
   PŘECHOD PŘI ZOBRAZENÍ
   ============================================ */

#splash-banner {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ============================================
   ZPĚTNÁ KOMPATIBILITA
   Staré třídy pro případ cache
   ============================================ */

.splash-close {
    display: none;
}

.splash-countdown {
    display: none;
}

/* ============================================
   PROMO FADE SLIDER
   Více promo reklam střídaných fade efektem
   ============================================ */

.el-promo-slider {
    display: grid;
    width: 100%;
    position: relative;
}

/* Všechny slidy ve stejné buňce gridu — překrývají se */
.el-promo-slide {
    grid-area: 1/1;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.el-promo-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Tečky navigace */
.el-promo-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    grid-area: 1/1;
    align-self: end;
    justify-self: center;
}

.el-promo-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.4) !important;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: block !important;
    flex-shrink: 0;
    outline: none;
}

.el-promo-dot.active {
    background: #EEB500 !important;
    transform: scale(1.3);
}