/**
 * SMG Mall Hero Widget - Mood Video
 * Full-screen Video Background, Ticker/Laufband, Overlay
 * 
 * @package SMGMall
 * @version 2.0.0
 */

/* ========================================
   MOOD SLIDE - VIDEO + PROMO-BOX IM FLOW
   Promo-Box liegt UNTER dem Video (nicht darüber)
   ======================================== */
.smg-widget.smg-hero-new .mood-slide,
.smg-hero-new .mood-slide {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;

    /* Flexbox für vertikale Anordnung: Video oben, Promo-Box unten */
    display: flex;
    flex-direction: column;
}

.smg-widget.smg-hero-new .mood-slide.active,
.smg-hero-new .mood-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ========================================
   MOOD VIDEO CONTAINER - FLEXBOX LAYOUT
   Video oben, Promo-Box unten im Flow
   ======================================== */
.smg-widget.smg-hero-new .mood-hero-container,
.smg-hero-new .mood-hero-container {
    position: relative;
    width: 100%;
    height: auto;

    /* Flexbox für vertikale Anordnung */
    display: flex;
    flex-direction: column;
}

.smg-widget.smg-hero-new .mood-media-background,
.smg-hero-new .mood-media-background,
.smg-widget.smg-hero-new .mood-video-background,
.smg-hero-new .mood-video-background {
    position: relative;
    width: 100%;
    height: auto;
    flex-shrink: 0; /* Media behält seine Größe */
    overflow: hidden;
}

/* ========================================
   VIDEO ELEMENT - 100% BREITE, HÖHE AUTOMATISCH
   Video bestimmt die Container-Höhe
   ======================================== */

.smg-widget.smg-hero-new .mood-video,
.smg-hero-new .mood-video {
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* ========================================
   VIDEO OVERLAY
   ======================================== */
.smg-widget.smg-hero-new .mood-media-overlay,
.smg-hero-new .mood-media-overlay,
.smg-widget.smg-hero-new .mood-video-overlay,
.smg-hero-new .mood-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Custom overlay opacity */
.smg-widget.smg-hero-new .mood-video-overlay.opacity-light,
.smg-hero-new .mood-video-overlay.opacity-light {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.smg-widget.smg-hero-new .mood-video-overlay.opacity-dark,
.smg-hero-new .mood-video-overlay.opacity-dark {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* ========================================
   TICKER / LAUFBAND
   Liegt ÜBER dem Video (absolute positioning)
   ======================================== */
.smg-widget.smg-hero-new .mood-ticker-container,
.smg-hero-new .mood-ticker-container {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none; /* Erlaubt Klicks durch den Container */
}

/* Ticker Container Position */
.smg-widget.smg-hero-new .mood-ticker-container.ticker-position-top,
.smg-hero-new .mood-ticker-container.ticker-position-top {
    top: 0;
}

.smg-widget.smg-hero-new .mood-ticker-container.ticker-position-bottom,
.smg-hero-new .mood-ticker-container.ticker-position-bottom {
    bottom: 0;
}

.smg-widget.smg-hero-new .mood-ticker-container.ticker-position-center,
.smg-hero-new .mood-ticker-container.ticker-position-center {
    top: 50%;
    transform: translateY(-50%);
}

/* Ticker Element */
.smg-widget.smg-hero-new .mood-ticker,
.smg-hero-new .mood-ticker {
    position: relative;
    width: 100%;
    background: rgba(227, 30, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-3) 0;
    overflow: hidden;
    pointer-events: auto; /* Ticker selbst ist klickbar */
}

/* Ticker Content */
.smg-widget.smg-hero-new .ticker-content,
.smg-hero-new .ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-speed, 30s) linear infinite;
}

.smg-widget.smg-hero-new .ticker-item,
.smg-hero-new .ticker-item {
    color: white;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-right: var(--space-10);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.smg-widget.smg-hero-new .ticker-item::before,
.smg-hero-new .ticker-item::before {
    content: '•';
    font-size: var(--text-2xl);
    opacity: 0.7;
}

/* ========================================
   TICKER ANIMATION
   ======================================== */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on Hover */
.smg-widget.smg-hero-new .mood-ticker:hover .ticker-content,
.smg-hero-new .mood-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* ========================================
   MOOD CONTENT OVERLAY
   ======================================== */
.smg-widget.smg-hero-new .mood-content,
.smg-hero-new .mood-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    color: white;
    max-width: 800px;
    padding: var(--space-6);
}

.smg-widget.smg-hero-new .mood-title,
.smg-hero-new .mood-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.smg-widget.smg-hero-new .mood-subtitle,
.smg-hero-new .mood-subtitle {
    font-size: var(--text-xl);
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE - MOOD
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .smg-widget.smg-hero-new .ticker-item,
    .smg-hero-new .ticker-item {
        font-size: var(--text-base);
        margin-right: var(--space-8);
    }
    
    .smg-widget.smg-hero-new .mood-title,
    .smg-hero-new .mood-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .smg-widget.smg-hero-new .mood-subtitle,
    .smg-hero-new .mood-subtitle {
        font-size: var(--text-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .smg-widget.smg-hero-new .mood-ticker,
    .smg-hero-new .mood-ticker {
        padding: var(--space-2) 0;
    }
    
    .smg-widget.smg-hero-new .ticker-item,
    .smg-hero-new .ticker-item {
        font-size: var(--text-sm);
        margin-right: var(--space-6);
    }
    
    .smg-widget.smg-hero-new .mood-title,
    .smg-hero-new .mood-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .smg-widget.smg-hero-new .mood-subtitle,
    .smg-hero-new .mood-subtitle {
        font-size: var(--text-base);
    }
    
    .smg-widget.smg-hero-new .mood-content,
    .smg-hero-new .mood-content {
        padding: var(--space-4);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .smg-widget.smg-hero-new .ticker-item,
    .smg-hero-new .ticker-item {
        font-size: var(--text-xs);
        margin-right: var(--space-4);
    }
}

/* ========================================
   PROMO BOX (3 Sections) - PREMIUM DESIGN MIT PRIMARY COLOR
   Liegt UNTER dem Video im normalen Flow (nicht absolute)
   ======================================== */
.smg-widget.smg-hero-new .mood-promo-box,
.smg-hero-new .mood-promo-box {
    position: relative; /* ✅ GEÄNDERT: relative statt absolute */
    width: 100%;
    z-index: 10;
    flex-shrink: 0; /* Behält seine Größe */

    /* Premium Gradient mit Primary Color - Heller */
    background: linear-gradient(
        135deg,
        var(--smg-500) 0%,
        var(--smg-500) 100%
    );

    /* Glassmorphism Effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Subtile Top Border mit Glow */
    border-top: 2px solid rgba(255, 255, 255, 0.3);

    /* Dramatischer Schatten - wirft Schatten nach oben */
    box-shadow:
        0 -20px 60px rgba(0, 0, 0, 0.4),
        0 -10px 30px rgba(0, 0, 0, 0.3),
        0 -4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Eingangs-Animation mit Bounce */
    animation: promoBoxSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes promoBoxSlideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smg-widget.smg-hero-new .promo-box-container,
.smg-hero-new .promo-box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--widget-max-width, 1400px); /* ✅ Nutzt globale Variable */
    margin: 0 auto;
    gap: 0;
}

/* Promo Section - Premium Design auf Primary Background */
.smg-widget.smg-hero-new .promo-section,
.smg-hero-new .promo-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-7) var(--space-6);

    /* Subtile Divider mit Glow */
    border-right: 1px solid rgba(255, 255, 255, 0.2);

    /* Smooth Transitions */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Subtiler Inner Glow */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Staggered Fade-In Animations */
.smg-widget.smg-hero-new .promo-section:nth-child(1) {
    animation: promoSectionFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.smg-widget.smg-hero-new .promo-section:nth-child(2) {
    animation: promoSectionFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

.smg-widget.smg-hero-new .promo-section:nth-child(3) {
    animation: promoSectionFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

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

.smg-widget.smg-hero-new .promo-section:last-child,
.smg-hero-new .promo-section:last-child {
    border-right: none;
}

/* Premium Hover Effect - Lift & Glow */
.smg-widget.smg-hero-new .promo-section:hover,
.smg-hero-new .promo-section:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Promo Icon - Premium Glassmorphism */
.smg-widget.smg-hero-new .promo-icon,
.smg-hero-new .promo-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Glassmorphism mit Weiß */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Premium Border mit Glow */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;

    /* Icon Color - Weiß */
    color: rgba(255, 255, 255, 0.95);
    font-size: 36px;

    /* Multi-Layer Shadow */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* Smooth Transitions */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon Element (i, svg) innerhalb des Containers */
.smg-widget.smg-hero-new .promo-icon i,
.smg-hero-new .promo-icon i,
.smg-widget.smg-hero-new .promo-icon svg,
.smg-hero-new .promo-icon svg {
    color: rgba(255, 255, 255, 0.95);
    fill: rgba(255, 255, 255, 0.95);
    font-size: 36px;
    width: 36px;
    height: 36px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-widget.smg-hero-new .promo-section:hover .promo-icon,
.smg-hero-new .promo-section:hover .promo-icon {
    /* Hover: Intensiveres Weiß mit Glow */
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;

    /* Dramatic Lift Effect */
    transform: translateY(-6px) scale(1.08) rotate(5deg);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hover: Icon Element */
.smg-widget.smg-hero-new .promo-section:hover .promo-icon i,
.smg-hero-new .promo-section:hover .promo-icon i,
.smg-widget.smg-hero-new .promo-section:hover .promo-icon svg,
.smg-hero-new .promo-section:hover .promo-icon svg {
    color: #ffffff;
    fill: #ffffff;
}

/* Promo Content */
.smg-widget.smg-hero-new .promo-content,
.smg-hero-new .promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.smg-widget.smg-hero-new .promo-title,
.smg-hero-new .promo-title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);

    /* Weiß auf Primary Background */
    color: #ffffff;

    line-height: 1.3;
    transition: all 0.3s ease;
}

.smg-widget.smg-hero-new .promo-section:hover .promo-title,
.smg-hero-new .promo-section:hover .promo-title {
    /* Hover: Leichter Glow-Effekt */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.smg-widget.smg-hero-new .promo-text,
.smg-hero-new .promo-text {
    margin: 0;
    font-size: var(--text-sm);

    /* Helleres Weiß mit Transparenz */
    color: rgba(255, 255, 255, 0.85);

    line-height: 1.6;
    transition: color 0.3s ease;
}

.smg-widget.smg-hero-new .promo-section:hover .promo-text,
.smg-hero-new .promo-section:hover .promo-text {
    /* Hover: Vollständig Weiß */
    color: rgba(255, 255, 255, 0.95);
}

/* Promo Link (Overlay) */
.smg-widget.smg-hero-new .promo-link,
.smg-hero-new .promo-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========================================
   PROMO BOX - RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .smg-widget.smg-hero-new .promo-box-container,
    .smg-hero-new .promo-box-container {
        grid-template-columns: 1fr;
    }

    .smg-widget.smg-hero-new .promo-section,
    .smg-hero-new .promo-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: var(--space-5) var(--space-4);
    }

    .smg-widget.smg-hero-new .promo-section:last-child,
    .smg-hero-new .promo-section:last-child {
        border-bottom: none;
    }

    .smg-widget.smg-hero-new .promo-icon,
    .smg-hero-new .promo-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 16px;
    }

    .smg-widget.smg-hero-new .promo-title,
    .smg-hero-new .promo-title {
        font-size: var(--text-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .smg-widget.smg-hero-new .promo-section,
    .smg-hero-new .promo-section {
        padding: var(--space-4) var(--space-3);
        gap: var(--space-3);
    }

    .smg-widget.smg-hero-new .promo-icon,
    .smg-hero-new .promo-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 14px;
    }

    .smg-widget.smg-hero-new .promo-title,
    .smg-hero-new .promo-title {
        font-size: var(--text-base);
    }

    .smg-widget.smg-hero-new .promo-text,
    .smg-hero-new .promo-text {
        font-size: var(--text-xs);
    }

    /* Bild-Slideshow Mobile */
    .smg-widget.smg-hero-new .mood-images-slideshow,
    .smg-hero-new .mood-images-slideshow {
        padding-bottom: 100%; /* 1:1 Aspect Ratio für Mobile */
    }
}

/* ========================================
   BILD-SLIDESHOW STYLES
   ======================================== */
.smg-widget.smg-hero-new .mood-images-slideshow,
.smg-hero-new .mood-images-slideshow {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.smg-widget.smg-hero-new .mood-image-slide,
.smg-hero-new .mood-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.smg-widget.smg-hero-new .mood-image-slide.active,
.smg-hero-new .mood-image-slide.active {
    opacity: 1;
    z-index: 2;
}

.smg-widget.smg-hero-new .mood-image-slide img,
.smg-hero-new .mood-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide Transition */
.smg-widget.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide,
.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide {
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    transform: translateX(100%);
}

.smg-widget.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide.active,
.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide.active {
    transform: translateX(0);
}

.smg-widget.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide.prev,
.smg-hero-new .mood-images-slideshow[data-transition="slide"] .mood-image-slide.prev {
    transform: translateX(-100%);
}

