/**
 * APR PERFORMANCE · Notification Styles
 *
 * Стили для красивых уведомлений о статусе отправки форм
 */

/* ════════════════════════════════════════════════════════════
   УВЕДОМЛЕНИЯ
════════════════════════════════════════════════════════════ */

.apr-notification {
    position: fixed;
    top: 20px;
    right: 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 24px;
    min-width: 320px;
    max-width: 480px;

    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    z-index: 10000;

    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
}

.apr-notification--show {
    opacity: 1;
    transform: translateX(0);
}

/* Типы уведомлений */
.apr-notification--success {
    border-left: 3px solid #00ff88;
}

.apr-notification--success .apr-notification__icon {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.apr-notification--error {
    border-left: 3px solid #ff4757;
}

.apr-notification--error .apr-notification__icon {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Иконка */
.apr-notification__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    transition: all 0.3s ease;
}

/* Сообщение */
.apr-notification__message {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Кнопка закрытия */
.apr-notification__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;

    transition: all 0.2s ease;
}

.apr-notification__close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ════════════════════════════════════════════════════════════
   СОСТОЯНИЕ ЗАГРУЗКИ КНОПКИ
════════════════════════════════════════════════════════════ */

.btn--loading {
    position: relative;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;

    width: 16px;
    height: 16px;

    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;

    transform: translateY(-50%);
    animation: apr-spin 0.6s linear infinite;
}

@keyframes apr-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .apr-notification {
        top: 10px;
        right: 10px;
        left: 10px;

        min-width: auto;
        max-width: none;

        padding: 16px 20px;
    }

    .apr-notification__icon {
        width: 36px;
        height: 36px;
    }

    .apr-notification__message {
        font-size: 14px;
    }

    .apr-notification__close {
        width: 28px;
        height: 28px;
    }
}

/* Анимация появления при множественных уведомлениях */
.apr-notification:nth-child(2) {
    top: 100px;
}

.apr-notification:nth-child(3) {
    top: 180px;
}