/* Native Share Styles */

/* Single Share Button */
.native-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.native-share-button:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

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

.native-share-button i {
    font-size: 1.2rem;
}

/* Share Modal */
.native-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease;
}

.native-share-modal.native-share-closing {
    animation: modalFadeOut 0.3s ease;
}

.native-share-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.native-share-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.native-share-closing .native-share-content {
    animation: modalSlideOut 0.3s ease;
}

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

.native-share-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.native-share-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.native-share-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.native-share-body {
    padding: 1.5rem;
}

/* URL Copy Section */
.native-share-url {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.native-share-url input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    background: #f9fafb;
}

.native-share-url input:focus {
    outline: none;
    border-color: #6b7280;
}

.native-share-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.native-share-copy:hover {
    background: #374151;
}

/* Share Options Grid */
.native-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.native-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: #4b5563;
    border-radius: 12px;
    transition: all 0.2s;
    background: #f9fafb;
}

.native-share-option:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.native-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.native-share-icon svg {
    width: 24px;
    height: 24px;
}

.native-share-x {
    background: #000;
}

.native-share-linkedin {
    background: #0077b5;
}

.native-share-email {
    background: #ea4335;
}

.native-share-whatsapp {
    background: #25d366;
}

.native-share-option span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Toast Notifications */
.native-share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    z-index: 10000;
    transition: transform 0.3s ease;
}

.native-share-toast-show {
    transform: translateX(-50%) translateY(0);
}

.native-share-toast-error {
    background: #ef4444;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .native-share-content {
        margin: 1rem;
    }
    
    .native-share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .native-share-url {
        flex-direction: column;
    }
    
    .native-share-copy {
        width: 100%;
        justify-content: center;
    }
}