/**
 * Social Share Buttons Styling
 * Modern, accessible und responsive
 */

.social-share-section {
    padding: 3rem 0;
    margin: 4rem auto 2rem;
    max-width: 800px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-share-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-share-btn:hover::before {
    opacity: 1;
}

.social-share-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Platform-specific colors */
.social-share-btn--twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: #ffffff;
}

.social-share-btn--linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
}

.social-share-btn--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.social-share-btn--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.social-share-btn--email:hover {
    background: #EA4335;
    border-color: #EA4335;
    color: #ffffff;
}

/* Focus States für Accessibility */
.social-share-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Animation beim Laden */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-share-section {
    animation: fadeInUp 0.6s ease-out;
}

.social-share-btn {
    animation: fadeInUp 0.6s ease-out backwards;
}

.social-share-btn:nth-child(1) { animation-delay: 0.1s; }
.social-share-btn:nth-child(2) { animation-delay: 0.15s; }
.social-share-btn:nth-child(3) { animation-delay: 0.2s; }
.social-share-btn:nth-child(4) { animation-delay: 0.25s; }
.social-share-btn:nth-child(5) { animation-delay: 0.3s; }

/* Mobile Optimierung */
@media (max-width: 768px) {
    .social-share-section {
        padding: 2rem 1rem;
        margin: 3rem auto 1rem;
    }

    .social-share-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .social-share-btn {
        width: 44px;
        height: 44px;
    }

    .social-share-btn svg {
        width: 18px;
        height: 18px;
    }

    .social-share-buttons {
        gap: 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .social-share-btn {
        width: 40px;
        height: 40px;
    }

    .social-share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Dark Mode Support (optional, falls Dark Mode kommt) */
@media (prefers-color-scheme: light) {
    .social-share-section {
        border-top-color: rgba(0, 0, 0, 0.1);
    }

    .social-share-title {
        color: var(--text-primary, #1a1a2e);
    }

    .social-share-btn {
        border-color: rgba(0, 0, 0, 0.15);
        background: rgba(0, 0, 0, 0.03);
        color: rgba(0, 0, 0, 0.8);
    }

    .social-share-btn:hover {
        border-color: rgba(0, 0, 0, 0.3);
        background: rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .social-share-btn {
        border-width: 3px;
    }

    .social-share-btn:focus-visible {
        outline-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .social-share-section,
    .social-share-btn {
        animation: none;
    }

    .social-share-btn {
        transition: none;
    }

    .social-share-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .social-share-section {
        display: none;
    }
}
