/* ENWP Notificações Inteligentes - Frontend CSS */

#enwp-notifications-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

.enwp-notification {
    position: fixed;
    width: 300px;
    min-height: 80px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #4CAF50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.enwp-notification.enwp-show {
    opacity: 1;
    transform: translateY(0);
}

.enwp-notification.enwp-hide {
    opacity: 0;
    transform: translateY(-20px);
}

.enwp-notification.enwp-coupon {
    border-left-color: #FF5722;
}

.enwp-header {
    position: relative;
    margin-bottom: 10px;
}

.enwp-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #666;
    transition: background-color 0.2s ease;
}

.enwp-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

.enwp-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enwp-image {
    flex-shrink: 0;
}

.enwp-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.enwp-text {
    flex: 1;
}

.enwp-message {
    font-weight: 500;
    margin-bottom: 5px;
    color: inherit;
}

.enwp-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.enwp-stock {
    font-size: 12px;
    color: #FF5722;
    font-weight: 600;
}

/* Notificações de cupom */
.enwp-coupon-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.enwp-coupon-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.enwp-coupon-code {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 2px dashed #ccc;
    margin-top: 8px;
    display: inline-block;
}

.enwp-coupon-code:hover {
    background-color: #e0e0e0;
}

.enwp-coupon-code.enwp-copied {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Feedback de cópia */
.enwp-copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    pointer-events: none;
}

.enwp-copy-feedback.enwp-show {
    opacity: 1;
}

/* Animações de entrada */
@keyframes enwpSlideInRight {
    from {
        opacity: 0;
        transform: translateX(300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes enwpSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes enwpSlideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Posicionamento das notificações */
.enwp-notification[style*="top: 20px"][style*="right: 20px"] {
    animation: enwpSlideInRight 0.3s ease;
}

.enwp-notification[style*="top: 20px"][style*="left: 20px"] {
    animation: enwpSlideInLeft 0.3s ease;
}

.enwp-notification[style*="bottom: 20px"] {
    animation: enwpSlideInUp 0.3s ease;
}

/* Responsividade */
@media (max-width: 480px) {
    .enwp-notification {
        width: calc(100vw - 40px);
        max-width: 300px;
        left: 20px !important;
        right: 20px !important;
        margin: 5px 0;
    }
    
    .enwp-content {
        gap: 8px;
    }
    
    .enwp-image img {
        width: 40px;
        height: 40px;
    }
    
    .enwp-notification {
        font-size: 13px;
        padding: 12px;
    }
}

/* Estado pausado */
.enwp-notification.enwp-paused {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* Efeitos hover */
.enwp-notification:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .enwp-notification {
        background-color: #2d2d2d;
        color: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .enwp-time {
        color: #aaa;
    }
    
    .enwp-close {
        color: #ccc;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .enwp-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    .enwp-coupon-code {
        background-color: #404040;
        border-color: #666;
        color: #fff;
    }
    
    .enwp-coupon-code:hover {
        background-color: #505050;
    }
    
    .enwp-image img {
        border-color: #555;
    }
}