
/* REIMAGINED SHARE MODAL (ELEVATED) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-end; /* Mobile: bottom sheet */
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center; /* Desktop: center */
    }
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.share-sheet {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 24px 24px 0 0;
    padding: 32px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .share-sheet {
        border-radius: 24px;
        transform: translateY(20px);
    }
}

.modal-overlay.active .share-sheet {
    transform: translateY(0);
}

.share-sheet-header {
    text-align: center;
    margin-bottom: 28px;
}

.share-sheet-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.share-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.share-item:hover {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    
}

.share-item svg {
    width: 22px;
    height: 22px;
}

/* Ikon färger */
.si-fb svg { fill: #1877F2; }
.si-x svg { fill: #000000; }
.si-pin svg { fill: #E60023; }
.si-mail svg { stroke: #64748b; stroke-width: 2; fill: none; }



.copy-widget {
    margin-top: 12px;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
}

.copy-widget input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    color: #64748b;
    outline: none;
    font-weight: 500;
}

.copy-btn-action {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn-action.success {
    background: #22c55e;
}

.copy-btn-action:hover {
    opacity: 0.9;
}
