/* === GIGI NOTIFICATION POPUP STYLES === */

.gigi-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gigi-notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Блокирующий режим - визуальный индикатор */
.gigi-notification-overlay.no-outside-close {
    background: rgba(0, 0, 0, 0.75);
    cursor: not-allowed;
}

.gigi-notification-overlay.no-outside-close .gigi-notification-popup {
    cursor: default;
}

.gigi-notification-popup {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: notificationSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gigi-notification-overlay.active .gigi-notification-popup {
    transform: scale(1) translateY(0);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Закрытие анимация */
.gigi-notification-overlay.closing {
    opacity: 0;
}

.gigi-notification-overlay.closing .gigi-notification-popup {
    transform: scale(0.9) translateY(-20px);
}

/* Крестик закрытия */
.gigi-notification-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 1;
}

.gigi-notification-close:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

.gigi-notification-close:active {
    transform: scale(0.95);
}

.gigi-notification-close svg {
    width: 20px;
    height: 20px;
}

/* Контент */
.gigi-notification-content {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 8px;
}

.gigi-notification-title {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-align: center;
}

.gigi-notification-text {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.gigi-notification-text p {
    margin: 0 0 12px 0;
}

.gigi-notification-text p:last-child {
    margin-bottom: 0;
}

.gigi-notification-text a {
    color: #ff6b35;
    text-decoration: underline;
}

.gigi-notification-text a:hover {
    color: #e55a2b;
}

/* Кнопка */
.gigi-notification-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #f5543d 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.gigi-notification-button:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e04432 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.gigi-notification-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Блокирующий режим - специальные стили */
.gigi-notification-overlay.no-outside-close .gigi-notification-popup {
    border: 3px solid #ff6b35;
}

.gigi-notification-overlay.no-outside-close .gigi-notification-title::before {
    content: '⚠️ ';
}

/* ПОЛНАЯ БЛОКИРОВКА - поп-ап нельзя закрыть */
.gigi-notification-overlay.fully-blocking {
    background: rgba(0, 0, 0, 0.85);
    cursor: not-allowed;
}

.gigi-notification-overlay.fully-blocking .gigi-notification-popup {
    border: 4px solid #dc3545;
    cursor: default;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 0 0 8px rgba(220, 53, 69, 0.2);
}

.gigi-notification-overlay.fully-blocking .gigi-notification-title::before {
    content: '';
}

.gigi-notification-overlay.fully-blocking .gigi-notification-content {
    margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 600px) {
    .gigi-notification-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .gigi-notification-popup {
        padding: 24px;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        margin-bottom: 0;
    }

    .gigi-notification-title {
        font-size: 20px;
        text-align: center;
    }

    .gigi-notification-text {
        font-size: 15px;
    }

    .gigi-notification-button {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .gigi-notification-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .gigi-notification-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .gigi-notification-popup {
        padding: 20px;
    }

    .gigi-notification-title {
        font-size: 18px;
        text-align: center;
    }

    .gigi-notification-text {
        font-size: 14px;
    }
}

/* Предотвращение скролла body когда поп-ап открыт */
body.gigi-notification-open {
    overflow: hidden;
}
