/**
 * AI Smart Suggestions Popup Styles
 */

/* Suggestion Popup Container */
.ai-suggestion-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ai-suggestion-popup--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Popup Content */
.ai-suggestion-popup__content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(80, 44, 151, 0.1);
}

/* Close Button */
.ai-suggestion-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ai-suggestion-popup__close:hover {
    background: #502C97;
    color: #fff;
}

/* Image */
.ai-suggestion-popup__image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Title */
.ai-suggestion-popup__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    padding-right: 20px;
}

/* Description */
.ai-suggestion-popup__desc {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Actions */
.ai-suggestion-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons */
.ai-suggestion-popup__btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.ai-suggestion-popup__btn--primary {
    background: linear-gradient(135deg, #502C97 0%, #6B4BA8 100%);
    color: #fff;
}

.ai-suggestion-popup__btn--primary:hover {
    background: linear-gradient(135deg, #3d2175 0%, #502C97 100%);
    transform: translateY(-1px);
}

.ai-suggestion-popup__btn--secondary {
    background: transparent;
    color: #666;
    padding: 8px 20px;
}

.ai-suggestion-popup__btn--secondary:hover {
    background: #f5f5f5;
    color: #333;
}

/* Animation keyframes */
@keyframes ai-popup-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ai-suggestion-popup {
        bottom: 80px;
        right: 10px;
        left: 10px;
    }

    .ai-suggestion-popup__content {
        max-width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-suggestion-popup__content {
        background: #1a1a2e;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ai-suggestion-popup__title {
        color: #fff;
    }

    .ai-suggestion-popup__desc {
        color: #aaa;
    }

    .ai-suggestion-popup__close {
        background: #2a2a3e;
        color: #999;
    }

    .ai-suggestion-popup__close:hover {
        background: #502C97;
        color: #fff;
    }

    .ai-suggestion-popup__btn--secondary {
        color: #aaa;
    }

    .ai-suggestion-popup__btn--secondary:hover {
        background: #2a2a3e;
        color: #fff;
    }
}