/**
 * Social Share Buttons Styles
 * Responsive and accessible design
 */

.social-share-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #1565c0);
}

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

.share-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.share-btn:active {
    transform: translateY(0);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Platform-specific colors */
.share-twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-facebook:hover {
    background: #1877F2;
    color: white;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: white;
}

.share-whatsapp:hover {
    background: #25D366;
    color: white;
}

.share-email:hover {
    background: #EA4335;
    color: white;
}

.share-copy:hover {
    background: #333;
    color: white;
}

.share-count {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .social-share-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .share-icons {
        gap: 0.5rem;
    }

    .share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .share-text {
        display: none;
    }

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

    /* Show only icon on mobile */
    .share-btn {
        min-width: 40px;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-share-container {
        background: #2d2d2d;
    }

    .share-label {
        color: #e0e0e0;
    }

    .share-btn {
        background: #3d3d3d;
        color: #e0e0e0;
    }

    .share-count {
        color: #aaa;
    }
}

/* Accessibility */
.share-btn:focus {
    outline: 2px solid var(--primary-color, #1565c0);
    outline-offset: 2px;
}

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

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