/* Share Button Base Styles */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #235585 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.btn-share::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-share:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}
.btn-share:hover::before {
    width: 100%;
    height: 100%;
}
.btn-share:active {
    transform: translateY(0) scale(0.98);
}
/* Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.share-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}
.share-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.share-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #235585 0%, #764ba2 100%);
    color: white;
}
.share-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.btn-close-share {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}
.btn-close-share:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.share-modal-body {
    padding: .5rem 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}
/* Share Options Grid */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}
/* Share Preview Section */
.share-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.share-preview-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.share-preview-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
}
.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
}
.share-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--share-color, #235585) 0%, var(--share-color-dark, #764ba2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.share-option:hover::before {
    opacity: 0.08;
}
.share-option:hover {
    border-color: var(--share-color, #235585);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.share-option:active {
    transform: translateY(-2px);
}
.share-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--share-color, #235585);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.share-option:hover i {
    transform: scale(1.1);
}
.share-option span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
}
/* Special styling for copy button */
.share-option[data-action="copy"] {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #235585 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
    padding: 0.75rem;
}
.share-option[data-action="copy"]::before {
    display: none;
}
.share-option[data-action="copy"] i {
    color: white;
    margin-bottom: 0;
}
.share-option[data-action="copy"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Scrollbar styling for modal body */
.share-modal-body::-webkit-scrollbar {
    width: 8px;
}
.share-modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}
.share-modal-body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}
.share-modal-body::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .share-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .share-options {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .share-option {
        padding: 1rem 0.75rem;
    }

    .share-option i {
        font-size: 1.5rem;
    }

    .share-option span {
        font-size: 0.75rem;
    }
}
.ask-ai-icon{
    width: 32px; height: auto;
}
.ask-w-icon{
    font-size: 1.4rem;
}
