/* Share bottom-sheet overlay, platform grid, and the "link copied" toast */

.share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-overlay.show {
    opacity: 1;
    visibility: visible;
}

.share-sheet {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 24px 20px 36px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.share-overlay.show .share-sheet {
    transform: translateY(0);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.share-header span {
    color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.share-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.share-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.share-option:active {
    transform: scale(0.9);
}

.share-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.share-option span {
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
}

.share-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(52, 211, 153, 0.95);
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

@media (min-width: 601px) {
    .share-overlay {
        border-radius: 20px;
    }

    .share-sheet {
        width: 75%;
        max-width: none;
        border-radius: 20px 20px 0 0;
    }
}
