/* Share Buttons - Modern UI/UX Design */

.article-share {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.article-share > span {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.share-buttons-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.share-buttons-primary,
.share-buttons-secondary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.share-buttons-primary {
    /* Primary buttons: LinkedIn, XING, Twitter */
}

.share-buttons-secondary {
    /* Secondary buttons: Dev.to, Reddit, WhatsApp, Copy Link */
    opacity: 0.85 !important;
}

.article-share a,
.article-share button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.article-share a::before,
.article-share button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.article-share a:hover::before,
.article-share button:hover::before {
    opacity: 1 !important;
}

.article-share a:hover,
.article-share button:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.article-share a:active,
.article-share button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.article-share a:focus,
.article-share button:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5) !important;
    outline-offset: 2px !important;
}

.article-share a i,
.article-share button i {
    font-size: 1.125rem !important;
    position: relative !important;
    z-index: 1 !important;
    transition: transform 0.2s ease !important;
}

.article-share a:hover i,
.article-share button:hover i {
    transform: scale(1.1) !important;
}

/* Platform-specific colors on hover */
.article-share a[aria-label*="LinkedIn"]:hover {
    background: #0077b5 !important;
    border-color: #0077b5 !important;
}

.article-share a[aria-label*="XING"]:hover {
    background: #006567 !important;
    border-color: #006567 !important;
}

.article-share a[aria-label*="Twitter"]:hover,
.article-share a[aria-label*="X"]:hover {
    background: #1da1f2 !important;
    border-color: #1da1f2 !important;
}

.article-share a[aria-label*="Dev.to"]:hover {
    background: #0a0a0a !important;
    border-color: #0a0a0a !important;
}

.article-share a[aria-label*="Reddit"]:hover {
    background: #ff4500 !important;
    border-color: #ff4500 !important;
}

.article-share a[aria-label*="WhatsApp"]:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
}

.article-share button.share-copy-link:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.article-share button.share-copy-link[aria-label*="kopiert"] {
    background: rgba(34, 197, 94, 0.3) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .share-buttons-primary,
    .share-buttons-secondary {
        gap: 0.5rem !important;
    }
    
    .article-share a,
    .article-share button {
        width: 40px !important;
        height: 40px !important;
    }
    
    .article-share a i,
    .article-share button i {
        font-size: 1rem !important;
    }
}

/* Light mode support - using data-theme attribute */
[data-theme="light"] .article-share,
html:not([data-theme]) .article-share {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .article-share > span,
html:not([data-theme]) .article-share > span {
    color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .article-share a,
[data-theme="light"] .article-share button,
html:not([data-theme]) .article-share a,
html:not([data-theme]) .article-share button {
    border-color: rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
}

[data-theme="light"] .article-share a i,
[data-theme="light"] .article-share button i,
html:not([data-theme]) .article-share a i,
html:not([data-theme]) .article-share button i {
    color: #000000 !important;
}

[data-theme="light"] .article-share a::before,
[data-theme="light"] .article-share button::before,
html:not([data-theme]) .article-share a::before,
html:not([data-theme]) .article-share button::before {
    background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .article-share a:hover,
[data-theme="light"] .article-share button:hover,
html:not([data-theme]) .article-share a:hover,
html:not([data-theme]) .article-share button:hover {
    border-color: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Fallback for prefers-color-scheme (if no data-theme is set) */
@media (prefers-color-scheme: light) {
    html:not([data-theme]) .article-share {
        border-top-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    html:not([data-theme]) .article-share > span {
        color: rgba(0, 0, 0, 0.7) !important;
    }
    
    html:not([data-theme]) .article-share a,
    html:not([data-theme]) .article-share button {
        border-color: rgba(0, 0, 0, 0.2) !important;
        background: rgba(0, 0, 0, 0.05) !important;
        color: #000000 !important;
    }
    
    html:not([data-theme]) .article-share a::before,
    html:not([data-theme]) .article-share button::before {
        background: rgba(0, 0, 0, 0.1) !important;
    }
}

/* Animation for copy success */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.article-share button.share-copy-link[aria-label*="kopiert"] i {
    animation: copySuccess 0.3s ease;
}

