/* Social Share Buttons - Shared Styles */
/* Include this CSS file on any page that uses social share buttons */

/* Main Container */
.social-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--card-border, #e0e0e0);
    border-bottom: 1px solid var(--card-border, #e0e0e0);
}

.social-share.no-border {
    border: none;
    padding: 0;
}

.social-share.centered {
    justify-content: center;
}

.social-share-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color, #333);
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Share Button Base Styles */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg, #fff);
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--card-border, #e0e0e0);
    cursor: pointer;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: #666666;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Twitter/X */
.share-btn.twitter:hover {
    background: #1DA1F2;
    color: #fff;
    border-color: #1DA1F2;
}

.share-btn.twitter:hover svg {
    fill: #fff;
}

/* Facebook */
.share-btn.facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.share-btn.facebook:hover svg {
    fill: #fff;
}

/* Pinterest */
.share-btn.pinterest:hover {
    background: #E60023;
    color: #fff;
    border-color: #E60023;
}

.share-btn.pinterest:hover svg {
    fill: #fff;
}

/* LinkedIn */
.share-btn.linkedin:hover {
    background: #0A66C2;
    color: #fff;
    border-color: #0A66C2;
}

.share-btn.linkedin:hover svg {
    fill: #fff;
}

/* WhatsApp */
.share-btn.whatsapp:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.share-btn.whatsapp:hover svg {
    fill: #fff;
}

/* Email */
.share-btn.email:hover {
    background: #EA4335;
    color: #fff;
    border-color: #EA4335;
}

.share-btn.email:hover svg {
    fill: #fff;
}

/* Copy Link */
.share-btn.copy:hover {
    background: #666666;
    color: #fff;
    border-color: #666666;
}

.share-btn.copy:hover svg {
    stroke: #fff;
}

/* Focus States */
.share-btn:focus {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

.share-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-bg, #1a1a1a);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-share.centered {
        align-items: center;
    }

    .social-share-buttons {
        gap: 8px;
    }

    .share-btn {
        width: 38px;
        height: 38px;
    }

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

/* Compact variant for inline use */
.social-share.compact {
    margin: 20px 0;
    padding: 16px 0;
    gap: 12px;
}

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

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

/* Dark theme support */
.dark-theme .social-share,
[data-theme="dark"] .social-share {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .social-share-label,
[data-theme="dark"] .social-share-label {
    color: #fff;
}

.dark-theme .share-btn,
[data-theme="dark"] .share-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .share-btn svg,
[data-theme="dark"] .share-btn svg {
    fill: #ccc;
}
