/**
 * SmarteTriks Campaign Frontend Styles
 * Styling for BOGO and campaign promotions
 */

/* BOGO Popup Modal */
.st-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.st-popup-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.st-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.st-popup-close:hover {
    color: #333;
}

.st-popup-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

.st-popup-content h2 {
    color: #2ecc71;
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.st-popup-message {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.st-popup-details {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
}

.st-popup-ok {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.st-popup-ok:hover {
    background: #27ae60;
}

/* Campaign Badge on Cart Items */
.st-campaign-badge {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

.st-campaign-badge.free-item {
    background: #e74c3c;
}

/* Campaign Savings Display */
.st-campaign-savings {
    background: #f0fdf4;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.st-campaign-savings strong {
    color: #2ecc71;
    font-size: 18px;
}

.st-campaign-savings .campaign-name {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Campaign Notice */
.st-campaign-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.st-campaign-notice p {
    margin: 0;
    color: #856404;
}

.st-campaign-notice strong {
    color: #856404;
    font-weight: 600;
}

/* Cart Item Discount Indicator */
.st-discount-applied {
    color: #2ecc71;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    font-weight: 600;
}

/* BOGO Read-only quantity */
.st-bogo-qty-readonly {
    display: inline-block;
    padding: 5px 10px;
    background: #f0fdf4;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    font-weight: 600;
    color: #2ecc71;
}

.st-bogo-qty-readonly small {
    font-size: 11px;
    text-transform: uppercase;
    margin-left: 5px;
}

/* BOGO Auto-added indicator */
.st-bogo-auto-added {
    display: inline-block;
    padding: 3px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .st-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .st-popup-content h2 {
        font-size: 24px;
    }
    
    .st-popup-message {
        font-size: 16px;
    }
    
    .st-popup-icon {
        font-size: 50px;
    }
}
