/**
 * Share Dialog CSS
 * Styles for article sharing functionality
 */

/* Share dialog */
.share-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-dialog.is-visible {
    opacity: 1;
    visibility: visible;
}

.share-dialog-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: dialogFadeIn 0.3s ease forwards;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.share-dialog-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-share-dialog {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-share-dialog:hover {
    background-color: #f5f5f5;
}

.share-dialog-body {
    padding: 1.5rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.share-option:hover {
    opacity: 0.9;
}

.share-option svg {
    flex-shrink: 0;
}

/* Share options colors */
.share-option.twitter {
    background-color: #000000;
}

.share-option.facebook {
    background-color: #1877F2;
}

.share-option.linkedin {
    background-color: #0A66C2;
}

.share-option.email {
    background-color: #5A5A5A;
}

.share-option.whatsapp {
    background-color: #25D366;
}

.share-option.discord {
    background-color: #5865F2;
}

.share-option.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-option.threads {
    background-color: #000000;
}

.share-option.substack {
    background-color: #FF6719;
}

.copy-link-section {
    margin-top: 1.5rem;
}

.copy-link-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.copy-link-container {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#share-url {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 0.9rem;
    background-color: #f8f8f8;
}

.copy-link-btn {
    border: none;
    background-color: #0066cc;
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.copy-link-btn:hover {
    background-color: #0052a3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }
} 