/**
 * SMG Mall Hero Widget - Slides
 * Slide-Layout, Content, Typography, Buttons, Images
 * 
 * @package SMGMall
 * @version 2.0.0
 */

/* ========================================
   SLIDE WRAPPER & LAYOUT
   ======================================== */
.smg-widget.smg-hero-new .hero-slides,
.smg-hero-new .hero-slides {
    position: relative;
    height: 100%;
}

/* Hero Content Grid - Main Layout Container */
.smg-widget.smg-hero-new .hero-content-grid,
.smg-hero-new .hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: 70vh;
    position: relative;
}

/* Legacy Support für .hero-slide */
.smg-widget.smg-hero-new .hero-slide,
.smg-hero-new .hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: 70vh;
    position: relative;
}

/* Single Slide Layout (nur Content, kein Bild) */
.smg-widget.smg-hero-new .hero-slide.single-column,
.smg-hero-new .hero-slide.single-column {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* ========================================
   SLIDE CONTENT
   ======================================== */

/* Text Section Container */
.smg-widget.smg-hero-new .hero-text-section,
.smg-hero-new .hero-text-section {
    position: relative;
    min-height: 400px;
}

/* Slide Content (animiert zwischen Slides) */
.smg-widget.smg-hero-new .hero-slide-content,
.smg-hero-new .hero-slide-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.smg-widget.smg-hero-new .hero-slide-content.active,
.smg-hero-new .hero-slide-content.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

/* Subtitle */
.smg-widget.smg-hero-new .hero-subtitle,
.smg-hero-new .hero-subtitle {
    font-size: var(--text-sm);
    color: var(--smg-500);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Title */
.smg-widget.smg-hero-new .hero-title,
.smg-hero-new .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    color: var(--smg-900);
}

.smg-widget.smg-hero-new .hero-title .highlight,
.smg-hero-new .hero-title .highlight {
    color: var(--smg-500);
}

/* Description */
.smg-widget.smg-hero-new .hero-description,
.smg-hero-new .hero-description {
    font-size: var(--text-lg);
    line-height: var(--line-height-relaxed);
    color: var(--smg-700);
    margin-bottom: var(--space-10);
    max-width: 500px;
}

/* ========================================
   BUTTONS
   ======================================== */
.smg-widget.smg-hero-new .hero-buttons,
.smg-hero-new .hero-buttons {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.smg-widget.smg-hero-new .hero-btn,
.smg-hero-new .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--space-2);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: var(--text-base);
    border: none;
    cursor: pointer;
}

.smg-widget.smg-hero-new .hero-btn-primary,
.smg-hero-new .hero-btn-primary {
    background: var(--smg-500);
    color: white;
}

.smg-widget.smg-hero-new .hero-btn-primary:hover,
.smg-hero-new .hero-btn-primary:hover {
    background: var(--smg-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.3);
}

.smg-widget.smg-hero-new .hero-btn-secondary,
.smg-hero-new .hero-btn-secondary {
    background: transparent;
    color: var(--smg-900);
    border: 2px solid var(--smg-100);
}

.smg-widget.smg-hero-new .hero-btn-secondary:hover,
.smg-hero-new .hero-btn-secondary:hover {
    border-color: var(--smg-500);
    color: var(--smg-500);
    background: rgba(227, 30, 36, 0.05);
}

/* ========================================
   IMAGE SECTION
   ======================================== */
.smg-widget.smg-hero-new .hero-image-section,
.smg-hero-new .hero-image-section {
    position: relative;
    height: 550px;
}

.smg-widget.smg-hero-new .hero-slide-image,
.smg-hero-new .hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: var(--space-4);
}

.smg-widget.smg-hero-new .hero-slide-image.active,
.smg-hero-new .hero-slide-image.active {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   RESPONSIVE - SLIDES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    /* Hero Content Grid - Stack vertically on tablet */
    .smg-widget.smg-hero-new .hero-content-grid,
    .smg-hero-new .hero-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        min-height: 60vh;
    }

    /* Legacy Support */
    .smg-widget.smg-hero-new .hero-slide,
    .smg-hero-new .hero-slide {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        min-height: 60vh;
    }

    .smg-widget.smg-hero-new .hero-image-section,
    .smg-hero-new .hero-image-section {
        height: 400px;
    }

    .smg-widget.smg-hero-new .hero-title,
    .smg-hero-new .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hero Content Grid - Mobile adjustments */
    .smg-widget.smg-hero-new .hero-content-grid,
    .smg-hero-new .hero-content-grid {
        gap: var(--space-6);
        min-height: auto;
    }

    /* Legacy Support */
    .smg-widget.smg-hero-new .hero-slide,
    .smg-hero-new .hero-slide {
        gap: var(--space-6);
        min-height: auto;
    }

    .smg-widget.smg-hero-new .hero-text-section,
    .smg-hero-new .hero-text-section {
        min-height: 300px;
    }

    .smg-widget.smg-hero-new .hero-image-section,
    .smg-hero-new .hero-image-section {
        height: 300px;
    }

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

    .smg-widget.smg-hero-new .hero-buttons,
    .smg-hero-new .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .smg-widget.smg-hero-new .hero-btn,
    .smg-hero-new .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .smg-widget.smg-hero-new .hero-title,
    .smg-hero-new .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--space-4);
    }
    
    .smg-widget.smg-hero-new .hero-image-section,
    .smg-hero-new .hero-image-section {
        height: 250px;
    }
}

