/**
 * Social Share Buttons Styling
 * Sprint 10.2 Phase 3 - Digital Marketing Platform
 */

/* Social Share Container */
.social-share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Base Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

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

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

.share-btn i {
    font-size: 18px;
}

/* Size Variants */
.share-btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 36px;
    min-height: 36px;
}

.share-btn-sm i {
    font-size: 14px;
}

.share-btn-lg {
    padding: 14px 20px;
    font-size: 16px;
    min-width: 52px;
    min-height: 52px;
}

.share-btn-lg i {
    font-size: 22px;
}

/* WhatsApp Button */
.share-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Facebook Button */
.share-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.share-facebook:hover {
    background: linear-gradient(135deg, #0C63D4 0%, #0952B8 100%);
}

/* Instagram Button */
.share-instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.share-instagram:hover {
    background: linear-gradient(135deg, #C13584 0%, #833AB4 50%, #5B51D8 100%);
}

/* TikTok Button */
.share-tiktok {
    background: linear-gradient(135deg, #000000 0%, #EE1D52 50%, #69C9D0 100%);
}

.share-tiktok:hover {
    background: linear-gradient(135deg, #EE1D52 0%, #69C9D0 100%);
}

/* Twitter Button */
.share-twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
}

.share-twitter:hover {
    background: linear-gradient(135deg, #0C85D0 0%, #0A6FB8 100%);
}

/* LinkedIn Button */
.share-linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.share-linkedin:hover {
    background: linear-gradient(135deg, #004182 0%, #003366 100%);
}

/* Email Button */
.share-email {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

.share-email:hover {
    background: linear-gradient(135deg, #C5221F 0%, #A50E0E 100%);
}

/* Copy Link Button */
.share-copy {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.share-copy:hover {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
}

/* WhatsApp Order Button (Special) */
.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-order-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

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

.whatsapp-order-btn i {
    font-size: 24px;
}

/* Social Media Links (Footer) */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 18px;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.social-link.tiktok {
    background: linear-gradient(135deg, #000000 0%, #EE1D52 50%, #69C9D0 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Share Section */
.share-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 20px 0;
}

.share-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1f2937;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-share-buttons {
        justify-content: center;
    }

    .share-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .whatsapp-order-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Accessibility */
.share-btn:focus,
.social-link:focus,
.whatsapp-order-btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Loading State */
.share-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.share-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.share-btn.success {
    background: #10b981 !important;
}

/* Floating Share Button (Optional) */
.floating-share {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-share .share-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Share Modal (Optional) */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}
