/**
 * Promotion Display Frontend CSS
 */

/* Promotion Box on Product Page */
.tpwc-promotion-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tpwc-promotion-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.tpwc-promotion-icon {
    font-size: 24px;
    margin-right: 10px;
}

.tpwc-promotion-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
}

.tpwc-promotion-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.tpwc-promotion-description {
    font-size: 14px;
    margin: 8px 0;
    opacity: 0.95;
}

.tpwc-promotion-limit {
    font-size: 12px;
    font-style: italic;
    margin: 10px 0 0 0;
    opacity: 0.85;
}

.tpwc-free-products-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.tpwc-free-products-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.tpwc-free-products-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tpwc-free-products-list .qty {
    opacity: 0.8;
    font-size: 13px;
}

/* Promotion Badge on Product Listings */
.tpwc-promotion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Alternative Color Schemes */
.tpwc-promotion-box.promo-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.tpwc-promotion-box.promo-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tpwc-promotion-box.promo-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tpwc-promotion-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .tpwc-promotion-header {
        font-size: 16px;
    }
    
    .tpwc-promotion-title {
        font-size: 14px;
    }
    
    .tpwc-promotion-description {
        font-size: 13px;
    }
    
    .tpwc-promotion-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Print Styles */
@media print {
    .tpwc-promotion-box {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000;
    }
    
    .tpwc-promotion-badge {
        display: none;
    }
}
