/* Social Share Buttons Styles */

.social-share-container {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
}

.social-share-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share-icon svg {
    width: 100%;
    height: 100%;
    transition: color 0.2s ease-in-out;
}

/* Platform-specific colors */
.social-share-btn--facebook {
    border-color: #1877f2;
    color: #1877f2;
}

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

.social-share-btn--twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-share-btn--twitter:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-share-btn--email {
    border-color: #dc3545;
    color: #dc3545;
}

.social-share-btn--email:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.social-share-btn--copy {
    border-color: #6c757d;
    color: #6c757d;
}

.social-share-btn--copy:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.social-share-btn--reddit {
    border-color: #ff4500;
    color: #ff4500;
}

.social-share-btn--reddit:hover {
    background-color: #ff4500;
    color: white;
    border-color: #ff4500;
}

.social-share-btn--linkedin {
    border-color: #0077b5;
    color: #0077b5;
}

.social-share-btn--linkedin:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-share-btn--whatsapp {
    border-color: #25d366;
    color: #25d366;
}

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

.social-share-btn--bluesky {
    border-color: #00a8e8;
    color: #00a8e8;
}

.social-share-btn--bluesky:hover {
    background-color: #00a8e8;
    color: white;
    border-color: #00a8e8;
}

/* More section */
.social-share-more {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Toggle button */
.social-share-toggle {
    text-align: center;
    margin-top: 1rem;
}

.social-share-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    background-color: transparent;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.social-share-more-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.social-share-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-share-container {
        margin-top: 1rem;
        padding: 0.75rem;
    }

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

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

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

@media (max-width: 576px) {
    .social-share-buttons {
        gap: 0.375rem;
    }

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

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

/* Animation for copy feedback */
.social-share-btn--copy.copied {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Focus states for accessibility */
.social-share-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.social-share-more-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Compact Social Share Buttons for Sidebar */
.social-share-compact {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.social-share-compact .social-share-header h6 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #6c757d;
}

.social-share-buttons-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-share-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    margin: 0 auto;
}

.social-share-btn-compact:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-share-btn-compact svg {
    width: 16px;
    height: 16px;
    transition: color 0.2s ease-in-out;
}

/* Apply same color scheme as main buttons */
.social-share-btn-compact.social-share-btn--facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.social-share-btn-compact.social-share-btn--facebook:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-share-btn-compact.social-share-btn--twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-share-btn-compact.social-share-btn--twitter:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-share-btn-compact.social-share-btn--email {
    border-color: #dc3545;
    color: #dc3545;
}

.social-share-btn-compact.social-share-btn--email:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.social-share-btn-compact.social-share-btn--copy {
    border-color: #6c757d;
    color: #6c757d;
}

.social-share-btn-compact.social-share-btn--copy:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.social-share-btn-compact.social-share-btn--bluesky {
    border-color: #00a8e8;
    color: #00a8e8;
}

.social-share-btn-compact.social-share-btn--bluesky:hover {
    background-color: #00a8e8;
    color: white;
    border-color: #00a8e8;
}

/* Print styles */
@media print {
    .social-share-container,
    .social-share-compact {
        display: none;
    }
}
