/**
 * Discord Preview Styles
 * Einzelnes Desktop-Preview Bild mit Scroll Tilt Effect
 */

/* Container für Discord Preview */
.discord-preview-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    perspective: 1200px;
    z-index: 0;
}

/* Das Preview Bild */
.discord-preview-image {
    margin-top: 18%;
    width: 285%;
    max-width: 2400px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.3));
    border-radius: 12px;
    position: relative;
    z-index: 0;
}

/* Shimmer Overlay - direkt über dem Bild, tiltet mit */
.discord-shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
    transform-origin: center center;
    --shimmer-top: 0%;
    --shimmer-opacity: 0;
}

/* Shimmer Effekt innerhalb des Overlays - stärker sichtbar */
.discord-shimmer-overlay::before {
    content: '';
    position: absolute;
    top: var(--shimmer-top, 0%);
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: var(--shimmer-opacity, 0);
    mix-blend-mode: overlay;
    transition: top 0.15s ease-out, opacity 0.15s ease-out;
    will-change: top, opacity;
}


/* Feature Punkte müssen über dem Bild sein */
.single-feature {
    position: relative;
    z-index: 100;
}

.media {
    position: relative;
    z-index: 100;
}

/* Discord Section - Feature Punkte mit Blur Background */
.feature.section-padding[data-scroll-index='1'] .single-feature {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.feature.section-padding[data-scroll-index='1'] .single-feature h5 {
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.feature.section-padding[data-scroll-index='1'] .single-feature .media-body {
    width: 100%;
}

.feature.section-padding[data-scroll-index='1'] .single-feature:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    box-shadow: none;
}

/* Dark Mode für Feature Punkte */
[data-theme="dark"] .feature.section-padding[data-scroll-index='1'] .single-feature {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    min-height: 180px;
}

[data-theme="dark"] .feature.section-padding[data-scroll-index='1'] .single-feature:hover {
    background: rgba(40, 40, 40, 0.7);
    box-shadow: none;
}

/* Mehr Abstand nach außen für die Feature Spalten */
.feature.section-padding[data-scroll-index='1'] .row {
    margin-left: -60px;
    margin-right: -60px;
}

.feature.section-padding[data-scroll-index='1'] .col-md-4:first-child {
    padding-right: 60px;
    padding-left: 60px;
    transform: translateX(-150px);
    position: relative;
    z-index: 100;
    transition: transform 0.3s ease-out;
}

.feature.section-padding[data-scroll-index='1'] .col-md-4:last-child {
    padding-left: 60px;
    padding-right: 60px;
    transform: translateX(150px);
    position: relative;
    z-index: 100;
    transition: transform 0.3s ease-out;
}

/* Mittlere Spalte (Bild) zentriert */
.feature.section-padding[data-scroll-index='1'] .col-md-4:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1400px) {
    .feature.section-padding[data-scroll-index='1'] .col-md-4:first-child {
        transform: translateX(-60px);
    }
    
    .feature.section-padding[data-scroll-index='1'] .col-md-4:last-child {
        transform: translateX(60px);
    }
}

@media (max-width: 1200px) {
    .feature.section-padding[data-scroll-index='1'] .row {
        margin-left: -30px;
        margin-right: -30px;
    }
    
    .feature.section-padding[data-scroll-index='1'] .col-md-4:first-child {
        padding-right: 40px;
        padding-left: 40px;
        transform: translateX(-40px);
    }
    
    .feature.section-padding[data-scroll-index='1'] .col-md-4:last-child {
        padding-left: 40px;
        padding-right: 40px;
        transform: translateX(40px);
    }
}

@media (max-width: 991px) {
    .feature.section-padding[data-scroll-index='1'] .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .feature.section-padding[data-scroll-index='1'] .col-md-4:first-child,
    .feature.section-padding[data-scroll-index='1'] .col-md-4:last-child {
        padding-left: 15px;
        padding-right: 15px;
        transform: translateX(0);
    }
    
    /* Mobile: Entferne Blur Background und Min-Height */
    .feature.section-padding[data-scroll-index='1'] .single-feature {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 15px;
        min-height: auto;
        box-shadow: none;
    }
    
    .feature.section-padding[data-scroll-index='1'] .single-feature:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }
    
    [data-theme="dark"] .feature.section-padding[data-scroll-index='1'] .single-feature {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        min-height: auto;
        box-shadow: none;
    }
    
    [data-theme="dark"] .feature.section-padding[data-scroll-index='1'] .single-feature:hover {
        background: transparent;
        box-shadow: none;
    }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .discord-preview-wrapper {
        min-height: 500px;
    }
    
    .discord-preview-image {
        width: 270%;
        max-width: 2100px;
    }
}

@media (max-width: 768px) {
    .discord-preview-wrapper {
        min-height: 400px;
    }
    
    .discord-preview-image {
        width: 255%;
        max-width: 1800px;
    }
    
    /* Mobile: Normale Feature-Box Darstellung */
    .feature.section-padding[data-scroll-index='1'] .single-feature {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .discord-preview-wrapper {
        min-height: 300px;
    }
    
    .discord-preview-image {
        width: 270%;
        max-width: 1500px;
    }
}
