// CSS Styles for sharing feature

.share-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-section__content {
    text-align: center;
}

.share-section__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.share-section__description {
    margin: 0 0 1.25rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.share-section__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn span {
    white-space: nowrap; /* Prevents text wrapping */
}

/* Base button state */
.share-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon styling */
.share-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

/* X (Twitter) */
.share-btn[data-platform="twitter"] .share-icon {
    filter: brightness(0); /* Black X logo */
}

.share-btn[data-platform="twitter"]:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.share-btn[data-platform="twitter"]:hover .share-icon {
    filter: brightness(0) invert(1); /* White X on black */
}

/* Facebook */
.share-btn[data-platform="facebook"] .share-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(1798%) hue-rotate(203deg);
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn[data-platform="facebook"]:hover .share-icon {
    filter: brightness(0) invert(1);
}

/* LinkedIn */
.share-btn[data-platform="linkedin"] .share-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(2288%) hue-rotate(182deg);
}

.share-btn[data-platform="linkedin"]:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-btn[data-platform="linkedin"]:hover .share-icon {
    filter: brightness(0) invert(1);
}

/* Email */
.share-btn[data-platform="email"] .share-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(95%) saturate(1500%) hue-rotate(340deg);
}

.share-btn[data-platform="email"]:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.share-btn[data-platform="email"]:hover .share-icon {
    filter: brightness(0) invert(1);
}

/* Copy Link */
.share-btn[data-platform="copy"] .share-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(95%) saturate(1500%) hue-rotate(200deg);
}

.share-btn[data-platform="copy"]:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.share-btn[data-platform="copy"]:hover .share-icon {
    filter: brightness(0) invert(1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-section__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}