/* Share Button Component Styles */

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

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

.share-button svg {
    width: 20px;
    height: 20px;
}

/* Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.share-modal-overlay.active {
    opacity: 1;
}

/* Share Modal */
.share-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

/* Modal Header */
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.share-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Modal Content */
.share-modal-content {
    padding: 1.5rem;
}

/* Share Options Grid */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.share-option:hover {
    background: #f0f9ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

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

.share-option svg {
    width: 32px;
    height: 32px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.share-option:hover svg {
    color: #2563eb;
}

.share-option span {
    text-align: center;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.share-toast.success {
    background: #059669;
}

.share-toast.error {
    background: #dc2626;
}

/* Responsive Design */
@media (max-width: 640px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .share-modal-header,
    .share-modal-content {
        padding: 1rem;
    }
    
    .share-option {
        padding: 1rem 0.75rem;
    }
    
    .share-option svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .share-options {
        gap: 0.75rem;
    }
    
    .share-option {
        padding: 0.875rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .share-option svg {
        width: 24px;
        height: 24px;
    }
}

/* Print styles - hide share button when printing */
@media print {
    .share-button,
    .share-modal-overlay {
        display: none !important;
    }
}
