/* Inline styles from views/partials/offer-popup.blade.php */

/* Offer Popup Styles */
.offer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.offer-popup-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

/* Position variants */
.offer-popup-overlay.position-top {
    align-items: flex-start;
    padding-top: 5vh;
}

.offer-popup-overlay.position-bottom {
    align-items: flex-end;
    padding-bottom: 5vh;
}

.offer-popup-overlay.position-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.offer-popup-overlay.position-bottom-right .offer-popup-modal {
    max-width: 400px;
    width: 350px;
}

.offer-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popup-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.popup-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-close-btn i {
    font-size: 18px;
}

.offer-popup-body {
    padding: 25px;
}

.popup-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.popup-discount-info {
    text-align: center;
    margin-bottom: 20px;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.offer-popup-footer {
    padding: 0 25px 25px;
    text-align: center;
}

.popup-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 250px;
}

.popup-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.offer-popup-overlay.closing {
    animation: fadeOut 0.3s ease-out;
}

.offer-popup-overlay.closing .offer-popup-modal {
    animation: slideOut 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .offer-popup-modal {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .offer-popup-overlay.position-bottom-right {
        padding: 10px;
    }

    .offer-popup-overlay.position-bottom-right .offer-popup-modal {
        width: calc(100% - 20px);
        max-width: none;
    }

    .popup-title {
        font-size: 1.2rem;
    }

    .offer-popup-header {
        padding: 15px 20px 10px;
    }

    .offer-popup-body {
        padding: 20px;
    }

    .offer-popup-footer {
        padding: 0 20px 20px;
    }
}
