/**
 * Social Sharing Styles for Step 7: Social Media Integration
 * Responsive social sharing buttons and components
 */

/* Social Sharing Container */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-sharing-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-right: 8px;
}

/* Social Share Buttons */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.social-share-btn:active {
    transform: translateY(0);
}

/* Platform-specific colors */
.social-share-btn.linkedin {
    background-color: #0077b5;
}

.social-share-btn.linkedin:hover {
    background-color: #005885;
}

.social-share-btn.twitter {
    background-color: #1da1f2;
}

.social-share-btn.twitter:hover {
    background-color: #0d8bd9;
}

.social-share-btn.facebook {
    background-color: #1877f2;
}

.social-share-btn.facebook:hover {
    background-color: #166fe5;
}

.social-share-btn.whatsapp {
    background-color: #25d366;
}

.social-share-btn.whatsapp:hover {
    background-color: #20ba5a;
}

.social-share-btn.copy {
    background-color: #6b7280;
}

.social-share-btn.copy:hover {
    background-color: #4b5563;
}

/* Extended social buttons with text */
.social-share-btn.extended {
    width: auto;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.social-share-btn.extended .icon {
    font-size: 16px;
}

/* Social sharing icons - Font Awesome only */
.social-share-btn .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    width: 18px;
    height: 18px;
    background: none !important; /* Prevent any background images */
    position: relative;
}

/* Clear any other pseudo-elements that might be interfering */
.social-share-btn .icon::after {
    content: none !important;
}

/* Font Awesome icons (only these should show) */
.social-share-btn.linkedin .icon::before {
    content: "\f08c" !important; /* fa-linkedin */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.social-share-btn.twitter .icon::before {
    content: "\f099" !important; /* fa-twitter */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.social-share-btn.facebook .icon::before {
    content: "\f09a" !important; /* fa-facebook */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.social-share-btn.whatsapp .icon::before {
    content: "\f232" !important; /* fa-whatsapp */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.social-share-btn.copy .icon::before {
    content: "\f0c5" !important; /* fa-copy */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}





/* Share count display */
.share-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

.share-count-number {
    font-weight: 600;
    color: #374151;
}

/* Copy feedback notification */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-feedback.show {
    transform: translateX(0);
}

.copy-feedback.copy-success {
    background-color: #10b981;
    color: white;
}

.copy-feedback.copy-error {
    background-color: #ef4444;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .social-sharing-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .social-share-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .social-share-btn.extended {
        padding: 10px 16px;
        font-size: 16px;
    }
    
    .copy-feedback {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .copy-feedback.show {
        transform: translateY(0);
    }
}

/* Social sharing widget for job cards */
.job-card .social-sharing {
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.job-card .social-share-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Social sharing stats */
.social-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
}

.social-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}

.social-stat-number {
    font-weight: 600;
    color: #374151;
}

.social-stat-icon {
    font-size: 16px;
    color: #9ca3af;
}

/* Loading state */
.social-share-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.social-share-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.social-share-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.social-share-btn:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-share-btn {
        border: 2px solid currentColor;
    }
    
    .copy-feedback {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-share-btn {
        transition: none;
    }
    
    .social-share-btn:hover {
        transform: none;
    }
    
    .copy-feedback {
        transition: none;
    }
    
    .social-share-btn.loading::after {
        animation: none;
    }
}