/**
 * Social Share Buttons Styles
 */

.share-buttons-container {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.share-label {
    display: inline-block;
    margin-right: 1rem;
    font-weight: 600;
    color: #333;
    vertical-align: middle;
}

.share-buttons {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Platform-specific colors */
.share-facebook {
    background-color: #1877f2;
    color: white;
}

.share-facebook:hover {
    background-color: #166fe5;
}

.share-twitter {
    background-color: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background-color: #1a91da;
}

.share-linkedin {
    background-color: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background-color: #006097;
}

.share-whatsapp {
    background-color: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background-color: #22c35e;
}

.share-reddit {
    background-color: #ff4500;
    color: white;
}

.share-reddit:hover {
    background-color: #e63e00;
}

.share-email {
    background-color: #7f7f7f;
    color: white;
}

.share-email:hover {
    background-color: #666666;
}

/* Mobile styles */
@media (max-width: 768px) {
    .share-buttons-container {
        text-align: center;
    }
    
    .share-label {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-button {
        width: 36px;
        height: 36px;
    }
    
    .share-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-buttons-container {
        border-color: #444;
    }
    
    .share-label {
        color: #e0e0e0;
    }
    
    .share-button {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    /* Keep platform colors in dark mode */
    .share-facebook,
    .share-twitter,
    .share-linkedin,
    .share-whatsapp,
    .share-reddit {
        color: white;
    }
}

/* Inline/compact version */
.share-buttons-inline {
    display: inline-flex;
    gap: 0.3rem;
    margin-left: 1rem;
}

.share-buttons-inline .share-button {
    width: 32px;
    height: 32px;
}

.share-buttons-inline .share-button svg {
    width: 16px;
    height: 16px;
}

/* Article-specific styles */
.article-content .share-buttons-container {
    margin: 2.5rem 0;
    text-align: center;
}

.article-header .share-buttons-container {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border: none;
}

/* Floating share bar for articles */
.floating-share-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

@media (max-width: 1200px) {
    .floating-share-bar {
        display: none;
    }
}
