/* ===================================
   SMG MALL - Social Media Widget
   Streifen-Layout inspiriert vom Screenshot
   ================================== */

/* ✅ NUTZT WIDGET BASE FRAMEWORK - ALLE CONTAINER-STYLES ENTFERNT */
.smg-social-media-widget {
    /* Erbt ALLES von .smg-widget-base - keine eigenen Container-Styles */
    position: relative;
    /* Nur widget-spezifische Styles hier */
}

.smg-social-media-widget::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background:
        radial-gradient(circle at 20% 80%, rgba(227, 30, 36, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(227, 30, 36, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Nahtloser Social Media Streifen - Volle Breite */
.social-media-seamless-strip {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Social Cards - Flexible Breite */
/* 2025 SOCIAL CARDS - GLASSMORPHISM */
.social-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(227, 30, 36, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1; /* Gleichmäßige Verteilung */
    transform-style: preserve-3d;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.social-card:hover {
    transform: translateY(-4px) rotateX(1deg);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(227, 30, 36, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(227, 30, 36, 0.2);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:last-child {
    border-right: none;
}

.social-card:hover {
    transform: translateY(-2px);
    z-index: 10;
}

/* CTA Card - Flexible Breite (wird automatisch breiter) */
.social-cta-card {
    /* ✅ ENTFERNT: Hardcoded background/color - Elementor Controls überschreiben */
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 1.5; /* 50% breiter als andere Karten */

    /* ✅ FALLBACK für wenn keine Elementor-Controls gesetzt sind */
    background: linear-gradient(135deg, var(--smg-900), var(--smg-950));
    color: white;
}

/* Post Cards - Cover Images */
.social-post-card {
    background: white;
    position: relative;
}

/* CTA Card Content */
.social-cta-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.social-icon .lucide {
    width: 1.25rem;
    height: 1.25rem;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #ff0050, #00f2ea);
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    /* ✅ ENTFERNT: Hardcoded color - Elementor Controls überschreiben */
    /* Fallback: color: white; */
}

.cta-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    /* ✅ ENTFERNT: Hardcoded color - Elementor Controls überschreiben */
    /* Fallback: inherit from parent */
}

/* ✅ NUTZT ZENTRALES BUTTON-SYSTEM - Erweitert .smg-btn */
.social-cta-btn {
    /* Erbt von .smg-btn - nur spezifische Anpassungen hier */
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 50px; /* Runder als Standard .smg-btn */
    text-transform: uppercase;
    letter-spacing: 0.3px;

    /* ✅ FALLBACK für wenn keine Elementor-Controls gesetzt sind */
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.social-cta-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.social-cta-btn:hover {
    /* ✅ ENTFERNT: Hardcoded hover colors - Elementor Controls überschreiben */
    border-color: white !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;

    /* ✅ FALLBACK für wenn keine Elementor-Controls gesetzt sind */
    background: white;
    color: var(--smg-900);
}

.social-cta-btn:hover::before {
    left: 100% !important;
}

.social-cta-btn .lucide {
    width: 1rem;
    height: 1rem;
}

/* Post Cards - Bilder füllen komplette Karte */
.social-post-card {
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Bild als Hintergrund der gesamten Karte */
.social-post-card .post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.social-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-card:hover .post-image img {
    transform: scale(1.05);
}

/* Overlay Metadaten - Komplett ohne Farbüberlagerung */
.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: white;
    z-index: 2;
    /* Kein Background - nur die Badges haben Hintergrund */
}

/* Platform Header - Oben */
.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-info .lucide {
    width: 1rem;
    height: 1rem;
    color: white;
}

.platform-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
}

/* Latest Badge - ENTFERNT: Stern-Icon nicht mehr benötigt */

/* Post Content - Unten */
.post-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-date {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-text {
    font-size: 1rem;
    color: white;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-link:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.post-link .lucide {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
}

.post-link:hover .lucide {
    transform: translate(2px, -2px);
}

/* Konfigurierbares Overlay System */
.post-overlay.has-custom-overlay {
    /* Wird via inline-style gesetzt */
}

/* Default Overlay (falls kein Custom Overlay gesetzt) */
.post-overlay:not(.has-custom-overlay) {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%);
}

/* ========================================
   VIDEO SUPPORT
   ======================================== */
.post-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 2;
}

.video-indicator svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

/* ========================================
   FOLLOW CTA CARD
   ======================================== */
/* 2025 FOLLOW CTA CARD - GLASSMORPHISM */
.follow-cta-card {
    background: linear-gradient(135deg,
        var(--smg-600, #e31e24) 0%,
        var(--smg-700, #c41e3a) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.follow-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%);
    animation: modernPulseBg 4s ease-in-out infinite;
}

/* 2025 MODERNE PULSE ANIMATION */
@keyframes modernPulseBg {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.6;
    }
    66% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.4;
    }
}

.follow-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.platform-icon-large {
    width: clamp(2.5rem, 6vw, 3.5rem);
    height: clamp(2.5rem, 6vw, 3.5rem);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.375rem, 2vw, 0.5rem);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.follow-cta-card:hover .platform-icon-large {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.platform-icon-large svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.follow-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.follow-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
    max-width: 200px;
}

/* ✅ NUTZT ZENTRALES BUTTON-SYSTEM - Erweitert .smg-btn */
.follow-button {
    /* Erbt von .smg-btn - nur spezifische Anpassungen hier */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: clamp(0.375rem, 2vw, 0.5rem);
}

.follow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.follow-button svg {
    width: clamp(0.875rem, 2vw, 1rem);
    height: clamp(0.875rem, 2vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.follow-cta-card:hover .follow-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--smg-600);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.follow-cta-card:hover .follow-button::before {
    left: 100%;
}

.follow-cta-card:hover .follow-button svg {
    transform: translateX(4px) rotate(5deg);
}

/* Platform-specific Follow CTA colors */
.follow-cta-card.platform-instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.follow-cta-card.platform-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
}

.follow-cta-card.platform-tiktok {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* ✅ RESPONSIVE DESIGN - Nutzt Widget Base Framework + spezifische Anpassungen */
@media (max-width: 1200px) {
    .social-media-seamless-strip {
        height: 350px;
    }

    .post-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .social-media-seamless-strip {
        height: 300px;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background: #f8f9fa;
    }

    .social-card {
        height: auto;
        min-height: 200px;
        border-radius: 1rem !important;
        border-right: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .social-cta-card {
        padding: 1.5rem;
        flex: none;
        order: -1; /* CTA zuerst auf Mobile */
    }

    .post-overlay {
        padding: 1rem;
    }

    .social-icons {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .social-icon {
        width: 2rem;
        height: 2rem;
    }

    .social-icon .lucide {
        width: 1rem;
        height: 1rem;
    }

    .cta-title {
        font-size: 1.1rem;
    }

    .cta-subtitle {
        font-size: 0.85rem;
    }

    .platform-info {
        padding: 0.375rem 0.625rem;
    }

    .platform-name {
        font-size: 0.8rem;
    }

    /* Latest Badge - ENTFERNT */

    .post-text {
        font-size: 0.9rem;
    }

    .post-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* ✅ ENTFERNT: Widget-Padding - Widget Base Framework übernimmt */

    .social-media-seamless-strip {
        height: auto;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .social-card {
        min-height: 180px;
    }

    .social-cta-card {
        padding: 1rem;
    }

    .post-overlay {
        padding: 0.75rem;
    }

    .social-icons {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }

    .social-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .social-icon .lucide {
        width: 0.875rem;
        height: 0.875rem;
    }

    .cta-title {
        font-size: 1rem;
    }

    .cta-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .platform-info {
        padding: 0.25rem 0.5rem;
    }

    .platform-name {
        font-size: 0.75rem;
    }

    /* Latest Badge - ENTFERNT */

    .post-date {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .post-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .post-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
}

/* Animation on Scroll */
.social-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .social-card,
    .social-icon,
    .post-image img,
    .post-link {
        transition: none;
        animation: none;
    }
    
    .social-card:hover {
        transform: none;
    }
}
