/**
 * Enhanced Share Modal Styles
 */

.share-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.share-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e8ed;
    background: linear-gradient(135deg, #1da1f2, #00d4ff);
    color: white;
}

.share-modal-content .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.share-modal-content .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.share-modal-content .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.share-modal-content .modal-body {
    padding: 24px;
}

.share-options {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.share-option:hover {
    border-color: #1da1f2;
    background: #f7f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.1);
}

.share-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fa;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.share-option:hover .share-icon {
    transform: scale(1.1);
}

.share-text {
    flex: 1;
}

.share-text strong {
    display: block;
    font-size: 16px;
    color: #14171a;
    margin-bottom: 4px;
}

.share-text small {
    color: #657786;
    font-size: 14px;
}

.link-preview {
    background: #f7f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e8ed;
}

.link-preview label {
    display: block;
    font-weight: 600;
    color: #14171a;
    margin-bottom: 12px;
    font-size: 14px;
}

.link-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #14171a;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.link-input:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.copy-link-btn {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-link-btn:hover {
    background: #1991db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.copy-link-btn:active {
    transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .share-modal-content .modal-body {
        padding: 20px;
    }
    
    .share-option {
        padding: 14px 16px;
    }
    
    .share-icon {
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    .link-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .copy-link-btn {
        width: 100%;
        padding: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-modal-content {
        background: #192734;
        color: white;
    }
    
    .share-modal-content .modal-header {
        border-bottom-color: #38444d;
    }
    
    .share-option {
        border-color: #38444d;
        background: #192734;
    }
    
    .share-option:hover {
        background: #22303c;
        border-color: #1da1f2;
    }
    
    .share-icon {
        background: #22303c;
    }
    
    .share-text strong {
        color: white;
    }
    
    .share-text small {
        color: #8899a6;
    }
    
    .link-preview {
        background: #22303c;
        border-color: #38444d;
    }
    
    .link-preview label {
        color: white;
    }
    
    .link-input {
        background: #192734;
        border-color: #38444d;
        color: white;
    }
    
    .link-input:focus {
        border-color: #1da1f2;
    }
}

/* Animation keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.share-modal-content {
    animation: modalFadeIn 0.2s ease-out;
}