/* =============================================
   HERO CAROUSEL WIDGET v1.7 – Swaggos Gems
   - Tmave pozadie iba na karuseli
   - Prechod (fade) obrazka do tmaveho pozadia
   - Dynamicke tahanie farieb z obrazkov
   ============================================= */

/* Cely widget wrapper je transparentny – ziadne tmave kraje okolo hlavnej fotky */
.hc-widget-wrapper {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0px !important;
    font-family: inherit;
    background: transparent;
    padding: 0;
}

/* ══════════════════════════════════════════
   TOP HERO SECTION – plna sirka
══════════════════════════════════════════ */
.hc-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 520px;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.hc-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.hc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 70%);
    pointer-events: none;
}

.hc-hero-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 3;
}

.hc-hero-subtitle {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 10px 0;
}

.hc-hero-title {
    font-size: 34px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ══════════════════════════════════════════
   BOTTOM CAROUSEL SECTION – tmave zaoblene pozadie
══════════════════════════════════════════ */
.hc-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color, #121315);
    border-radius: 0 0 20px 20px !important;
    padding: 56px 0 48px 0;
    box-sizing: border-box;
    transition: background-color 0.6s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.hc-carousel-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hc-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
}

/* Obrazok s prechodom (fade) na spodku */
.hc-slide-image-wrap {
    position: relative;
    width: 100%;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background-color: #0b0c0d;
    aspect-ratio: 16 / 9;
}

.hc-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Linearny gradient overlay, ktory splyva do pozadia */
.hc-slide-image-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px; /* vyska prechodu */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color, #121315) 100%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.6s ease;
}

/* Slide Content */
.hc-slide-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px;
}

.hc-slide-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: -0.01em;
}

.hc-slide-desc-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hc-slide-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72) !important;
    margin: 0;
}

/* Slide Tlačidlo */
.hc-slide-btn-wrap {
    margin-top: 14px;
    display: flex;
}

.hc-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* Plné tlačidlo (Solid) */
.hc-slide-btn.btn-solid {
    background-color: #ffffff;
    color: #121315 !important;
    border: 1.5px solid transparent;
}
.hc-slide-btn.btn-solid:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* Obrysové tlačidlo (Outline) */
.hc-slide-btn.btn-outline {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
}
.hc-slide-btn.btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Bodky */
.hc-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.hc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.hc-dot.is-active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ── RESPONZIVITA ── */
@media (max-width: 900px) {
    .elementor-widget-hero_carousel .hc-hero-container,
    .hc-hero-container { 
        height: 400px !important; 
    }
    .hc-hero-title { font-size: 28px; }
    .hc-slide-title { font-size: 18px; }
    .hc-slide-desc { font-size: 13px; }
    .hc-slide { padding: 0 16px; }
    .hc-carousel-container { padding: 40px 0 32px 0; }
}

@media (max-width: 640px) {
    .elementor-widget-hero_carousel .hc-hero-container,
    .hc-hero-container { 
        height: 320px !important; 
    }
    body .elementor-widget-hero_carousel .hc-hero-container .hc-hero-title,
    .elementor-widget-hero_carousel .hc-hero-title,
    .hc-hero-title { 
        font-size: 20px !important; 
        line-height: 1.25 !important;
    }
    body .elementor-widget-hero_carousel .hc-hero-container .hc-hero-subtitle,
    .elementor-widget-hero_carousel .hc-hero-subtitle,
    .hc-hero-subtitle {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    .elementor-widget-hero_carousel .hc-hero-content,
    .hc-hero-content {
        bottom: 20px !important;
        width: 95% !important;
        z-index: 3 !important;
    }
    .hc-slide { padding: 0 12px; }
}
