/* Social Share Buttons Styles */

/* Import Font Awesome for icons with fallback */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Fallback icons if Font Awesome fails to load */
.ssb-button i::before {
    content: '';
}

/* Fallback for Facebook */
.ssb-facebook i::before {
    content: 'f';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Twitter */
.ssb-twitter i::before {
    content: 't';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for LinkedIn */
.ssb-linkedin i::before {
    content: 'in';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Pinterest */
.ssb-pinterest i::before {
    content: 'p';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for WhatsApp */
.ssb-whatsapp i::before {
    content: 'w';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Telegram */
.ssb-telegram i::before {
    content: 't';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Instagram */
.ssb-instagram i::before {
    content: 'ig';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for YouTube */
.ssb-youtube i::before {
    content: 'yt';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Reddit */
.ssb-reddit i::before {
    content: 'r';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Email */
.ssb-email i::before {
    content: '@';
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Fallback for Copy Link */
.ssb-copy i::before {
    content: '🔗';
    font-family: Arial, sans-serif;
}

/* Main container - Force white background */
.social-share-buttons {
    margin: 30px 0 !important;
    padding: 25px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    border: 1px solid #f0f0f0 !important;
}

.social-share-buttons:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Title - Force dark text */
.ssb-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    z-index: 1 !important;
}

.ssb-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    border-radius: 1px !important;
}

/* Buttons container */
.ssb-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Individual button */
.ssb-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    text-decoration: none !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 130px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.ssb-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
    color: white !important;
    text-decoration: none !important;
}

.ssb-button:active {
    transform: translateY(0) !important;
}

/* Button icons */
.ssb-button i {
    margin-right: 10px !important;
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
}

.ssb-button:hover i {
    transform: scale(1.1) !important;
}

/* Button labels */
.ssb-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

/* Alignment classes */
.ssb-align-left .ssb-buttons {
    justify-content: flex-start !important;
}

.ssb-align-center .ssb-buttons {
    justify-content: center !important;
}

.ssb-align-right .ssb-buttons {
    justify-content: flex-end !important;
}

/* Style classes */
.ssb-style-rounded .ssb-button {
    border-radius: 12px !important;
}

.ssb-style-square .ssb-button {
    border-radius: 0 !important;
}

.ssb-style-circle .ssb-button {
    border-radius: 50px !important;
    min-width: 60px !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
}

.ssb-style-circle .ssb-button i {
    margin-right: 0 !important;
}

.ssb-style-circle .ssb-label {
    display: none !important;
}

/* Size classes */
.ssb-size-small .ssb-button {
    padding: 10px 14px !important;
    font-size: 12px !important;
    min-width: 110px !important;
}

.ssb-size-small .ssb-button i {
    font-size: 16px !important;
}

.ssb-size-small .ssb-label {
    font-size: 11px !important;
}

.ssb-size-medium .ssb-button {
    padding: 14px 18px !important;
    font-size: 14px !important;
    min-width: 130px !important;
}

.ssb-size-medium .ssb-button i {
    font-size: 18px !important;
}

.ssb-size-medium .ssb-label {
    font-size: 13px !important;
}

.ssb-size-large .ssb-button {
    padding: 18px 22px !important;
    font-size: 16px !important;
    min-width: 150px !important;
}

.ssb-size-large .ssb-button i {
    font-size: 20px !important;
}

.ssb-size-large .ssb-label {
    font-size: 14px !important;
}

/* Circle size adjustments */
.ssb-style-circle.ssb-size-small .ssb-button {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
}

.ssb-style-circle.ssb-size-medium .ssb-button {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
}

.ssb-style-circle.ssb-size-large .ssb-button {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
}

/* Social network specific colors and hover effects */
.ssb-facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d6efd) !important;
}

.ssb-twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0dcaf0) !important;
}

.ssb-linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #0d6efd) !important;
}

.ssb-pinterest:hover {
    background: linear-gradient(135deg, #bd081c, #dc3545) !important;
}

.ssb-whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #198754) !important;
}

.ssb-telegram:hover {
    background: linear-gradient(135deg, #0088cc, #0dcaf0) !important;
}

.ssb-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.ssb-youtube:hover {
    background: linear-gradient(135deg, #ff0000, #dc3545) !important;
}

.ssb-reddit:hover {
    background: linear-gradient(135deg, #ff4500, #fd7e14) !important;
}

.ssb-email:hover {
    background: linear-gradient(135deg, #ea4335, #dc3545) !important;
}

.ssb-copy:hover {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Copy link success and error states */
.ssb-copy.ssb-copied {
    background: linear-gradient(135deg, #198754, #20c997) !important;
}

.ssb-copy.ssb-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14) !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .social-share-buttons {
        margin: 20px 0 !important;
        padding: 20px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    .ssb-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        color: #333333 !important;
    }
    
    .ssb-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    
    .ssb-button {
        width: 100% !important;
        min-width: auto !important;
        justify-content: center !important;
        padding: 12px 8px !important;
        font-size: 12px !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .ssb-button i {
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        font-size: 16px !important;
    }
    
    .ssb-label {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    /* Circle style on mobile */
    .ssb-style-circle .ssb-buttons {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .ssb-style-circle .ssb-button {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .ssb-style-circle .ssb-button i {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Size adjustments for mobile */
    .ssb-size-small .ssb-button {
        padding: 10px 6px !important;
        font-size: 11px !important;
    }
    
    .ssb-size-large .ssb-button {
        padding: 14px 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .social-share-buttons {
        margin: 15px 0 !important;
        padding: 15px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    .ssb-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        color: #333333 !important;
    }
    
    .ssb-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .ssb-button {
        padding: 10px 6px !important;
        font-size: 11px !important;
    }
    
    .ssb-button i {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .ssb-label {
        font-size: 10px !important;
    }
    
    /* Circle style adjustments for small screens */
    .ssb-style-circle .ssb-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .ssb-style-circle .ssb-button {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
}

@media (max-width: 360px) {
    .ssb-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .ssb-button {
        padding: 8px 4px !important;
        font-size: 10px !important;
    }
    
    .ssb-button i {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    .ssb-label {
        font-size: 9px !important;
    }
    
    .ssb-style-circle .ssb-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .ssb-style-circle .ssb-button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
}

/* Dark mode support - Override to keep white background */
@media (prefers-color-scheme: dark) {
    .social-share-buttons {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-color: #f0f0f0 !important;
    }
    
    .ssb-title {
        color: #333333 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ssb-button {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ssb-button,
    .social-share-buttons {
        transition: none !important;
    }
    
    .ssb-button:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .social-share-buttons {
        display: none !important;
    }
}

/* Focus styles for accessibility */
.ssb-button:focus {
    outline: 3px solid #007cba !important;
    outline-offset: 2px !important;
}

/* Touch active state for mobile */
.ssb-button.touch-active {
    transform: scale(0.95) !important;
} 