/* Share UI + toast — safe under strict default-src 'self' (no external deps) */
:root {
    --share-card: #ffffff;
    --share-stroke: rgba(28, 25, 23, 0.12);
    --share-bg-wash: #faf8f5;
    --share-text: #1c1917;
    --share-text-soft: rgba(28, 25, 23, 0.68);
    --share-radius: 16px;
    --share-radius-sm: 12px;
    --share-mint: #0d9488;
    --share-burgundy-mid: #6e1420;
    --share-apricot: #d97757;
}

.share-btn {
    background: rgba(13, 148, 136, 0.1);
    color: var(--share-mint);
    border: 1px solid rgba(13, 148, 136, 0.35);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-btn:hover {
    background: var(--share-mint);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
    border-color: var(--share-mint);
}

.share-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    stroke: currentColor;
}

.share-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(28, 25, 23, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    animation: shareFadeIn 0.2s ease;
}

@media (min-width: 480px) {
    .share-backdrop {
        align-items: center;
    }
}

@keyframes shareFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-sheet {
    width: 100%;
    max-width: 400px;
    background: var(--share-card);
    border-radius: var(--share-radius);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--share-stroke);
    overflow: hidden;
}

.share-sheet-title {
    margin: 0;
    padding: 18px 20px 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--share-text);
}

.share-sheet-actions {
    display: flex;
    flex-direction: column;
    padding: 0 12px 12px;
    gap: 4px;
}

.share-sheet-action {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: none;
    border-radius: var(--share-radius-sm);
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--share-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

a.share-sheet-action {
    color: var(--share-text);
}

.share-sheet-action:hover {
    background: rgba(13, 148, 136, 0.1);
}

.share-sheet-action--mute {
    color: var(--share-text-soft);
    font-weight: 500;
}

.share-sheet-cancel {
    width: 100%;
    padding: 14px;
    border: none;
    border-top: 1px solid var(--share-stroke);
    background: var(--share-bg-wash);
    font: inherit;
    font-weight: 600;
    color: var(--share-text-soft);
    cursor: pointer;
}

.share-sheet-cancel:hover {
    background: #eee9e0;
}

.success-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--share-burgundy-mid) 0%, var(--share-apricot) 100%);
    color: #fff;
    padding: 16px 26px;
    border-radius: var(--share-radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    transform: translateX(400px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2100;
    box-shadow: 0 16px 40px rgba(87, 14, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: min(320px, calc(100vw - 40px));
}

.success-message.show {
    transform: translateX(0);
}
