/**
 * DRAPP Promotions Styles
 * /static/css/promotions.css
 */

/* Промо-банери */
.promo-banner-slide {
    position: relative;
    width: 100%;
}

.promo-banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-timer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

/* Акційна ціна на картці товару */
.product-promo-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-promo-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.product-promo-price .promo-price {
    color: #dc2626;
    font-weight: 600;
    font-size: 18px;
}

.product-promo-price .promo-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Бейдж акції на картці */
.promo-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-flag-item {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-flag-item.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.promo-flag-item.week {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.promo-flag-item.sale {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

/* Інфо-банер 1+1=3 */
.promo-info-banner {
    margin: 15px 0;
}

/* Знижка в checkout */
.checkout-promo-discount {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0;
}

.checkout-promo-discount .promo-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.checkout-promo-discount .promo-amount {
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
}

/* Таймер акції */
.promo-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.promo-countdown-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

/* Стилі на сторінці товару */
.product-page .promo-discount-info {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.product-page .promo-discount-info .promo-name {
    font-weight: 600;
    color: #991b1b;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-page .promo-discount-info .promo-name::before {
    content: '🔥';
}

.product-page .promo-discount-info .promo-savings {
    color: #dc2626;
    font-weight: 700;
}

/* Анімація для бейджів */
@keyframes pulse-promo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.promo-flag-item.hot {
    animation: pulse-promo 2s ease-in-out infinite;
}

/* Адаптив */
@media (max-width: 768px) {
    .promo-timer {
        bottom: 5px;
        right: 5px;
    }
    
    .promo-countdown {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .promo-flag-item {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .product-promo-price .promo-price {
        font-size: 16px;
    }
}

/* Банер безкоштовної доставки */
.free-delivery-banner {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.free-delivery-banner .icon {
    font-size: 24px;
}

.free-delivery-banner .text {
    font-weight: 500;
}

/* 1+1=3 спеціальні стилі */
.buy2get1-applied {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
}

.buy2get1-applied .title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.buy2get1-applied .discount {
    font-size: 18px;
    font-weight: 700;
}
