/* Share Button в GenerationLauncher (правый верхний угол превью) */

.launcher-share-btn {
    position: absolute;
    top: 12px;
    right: -4px;  /* ✅ На границе справа */
    width: 44px;
    height: 44px;
    border-radius: 50%;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* Icon color */
    color: #fff;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Animation */
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;

    /* Shadow */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    /* Z-index */
    z-index: 10;
}

.launcher-share-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25);
}

.launcher-share-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Hover (только для desktop) */
@media (hover: hover) {
    .launcher-share-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.08);
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.3),
            0 3px 6px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Анимация появления */
.launcher-share-btn:not(.hidden) {
    animation: shareButtonFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes shareButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ripple effect при клике */
.launcher-share-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.launcher-share-btn:active::after {
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Иконка внутри кнопки */
.launcher-share-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Success state после копирования */
.launcher-share-btn.copied {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.5);
}

.launcher-share-btn.copied svg {
    animation: checkmark 0.3s ease-out;
}

@keyframes checkmark {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
