/* =========================================================================
 * WooCommerce Promo Dates - Frontend Styles
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * Shortcode: [promo_dates]
 * ---------------------------------------------------------------------- */

.wc-promo-dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #5d4037;
    font-weight: 500;
    margin: 4px 0;
}

.wc-promo-dates__before {
    font-weight: 600;
    color: #e65100;
}

.wc-promo-dates__text {
    font-weight: 700;
    color: #d84315;
    margin-right: 4px;
}

.wc-promo-dates__start {
    color: #2e7d32;
    font-weight: 600;
}

.wc-promo-dates__end {
    color: #c62828;
    font-weight: 600;
}

.wc-promo-dates__separator {
    color: #757575;
    padding: 0 2px;
}

.wc-promo-dates__remaining {
    color: #e65100;
    font-weight: 700;
}

/* Estados */
.wc-promo-dates--active {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.wc-promo-dates--active .wc-promo-dates__before {
    color: #2e7d32;
}

.wc-promo-dates--upcoming {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}

.wc-promo-dates--expired {
    background: #fafafa;
    border-color: #e0e0e0;
    color: #9e9e9e;
    text-decoration: line-through;
}

.wc-promo-dates--empty {
    background: transparent;
    border: none;
    color: #bdbdbd;
    font-style: italic;
    padding: 0;
}

/* -------------------------------------------------------------------------
 * Shortcode: [promo_countdown]
 * ---------------------------------------------------------------------- */

.wc-promo-countdown {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
}

.wc-promo-countdown__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-promo-countdown__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.wc-promo-countdown__date {
    font-weight: 700;
    color: #ffffff;
}

.wc-promo-countdown__date--start {
    color: #a5d6a7;
}

.wc-promo-countdown__date--end {
    color: #ef9a9a;
}

.wc-promo-countdown__timer {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.wc-promo-countdown__days,
.wc-promo-countdown__hours,
.wc-promo-countdown__minutes,
.wc-promo-countdown__seconds {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    color: #ffeb3b;
}

.wc-promo-countdown--expired {
    background: #616161;
    box-shadow: none;
}

.wc-promo-countdown__expired {
    color: #ffcdd2;
    font-style: italic;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Shortcode: [promo_badge]
 * ---------------------------------------------------------------------- */

.wc-promo-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 4px 0;
}

.wc-promo-badge--expired {
    opacity: 0.5;
    text-decoration: line-through;
}

/* -------------------------------------------------------------------------
 * Variante compacta para product loops / grid
 * ---------------------------------------------------------------------- */

.wc-promo-dates--compact {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.wc-promo-countdown--compact {
    padding: 8px 12px;
    font-size: 12px;
    gap: 10px;
}

.wc-promo-countdown--compact .wc-promo-countdown__timer {
    font-size: 13px;
    padding: 4px 10px;
}

/* -------------------------------------------------------------------------
 * Responsivo
 * ---------------------------------------------------------------------- */

@media (max-width: 480px) {
    .wc-promo-countdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wc-promo-countdown__timer {
        width: 100%;
        justify-content: center;
    }

    .wc-promo-dates {
        flex-wrap: wrap;
        font-size: 13px;
    }
}
