/**
 * Email Copy Notification Styles
 * Стили для уведомления о копировании email адреса
 *
 * @package radeka
 * @version 1.0.0
 */

/* Контейнер уведомления */
.email-copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #794A2D 0%, #5d3821 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Состояние показа */
.email-copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Иконка галочки */
.email-copy-notification__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

/* Текст уведомления */
.email-copy-notification__text {
    line-height: 1.4;
    white-space: nowrap;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .email-copy-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 14px 20px;
        font-size: 14px;
        justify-content: center;
    }

    .email-copy-notification__text {
        white-space: normal;
        text-align: center;
    }
}

/* Анимация появления */
@keyframes emailCopySlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .email-copy-notification {
        background: linear-gradient(135deg, #794A2D 0%, #5d3821 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

/* Стиль для email ссылок с индикатором копирования */
a[data-copy-email="true"] {
    position: relative;
    cursor: pointer;
}

a[data-copy-email="true"]:hover {
    opacity: 0.8;
}

/* Малая подсказка при наведении */
a[data-copy-email="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

a[data-copy-email="true"]:hover::after {
    transform: scaleX(1);
}
