/* ===================================================================
   Promo labels
   ===================================================================
   The animated "September Offer!" flame and the "No Deposit" pill.
   Rendered by includes/promo-labels.php as a small row in the text area
   of a car card (above the name) and at the top of the booking panel on
   a car page — never over the photo.

   Plain CSS, not Tailwind classes, so it looks identical whether the
   page is running on the Tailwind CDN or the built stylesheet.
   =================================================================== */

.promo-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;

    font-family: Archivo, Inter, system-ui, sans-serif;
    line-height: 1;
}

/* ---------- "September Offer!" ---------- */
.promo-fire {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 4px 9px 4px 6px;
    border-radius: 999px;

    background: linear-gradient(120deg, #ff3d00 0%, #ff7a00 45%, #ffb300 100%);
    background-size: 200% 100%;
    color: #fff;

    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(120, 30, 0, .45);

    box-shadow: 0 3px 10px rgba(255, 90, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);

    overflow: hidden;
    animation:
        promo-fire-shift 3s ease-in-out infinite,
        promo-fire-glow 1.8s ease-in-out infinite;
}

/* Heat shimmer sweeping across the pill. */
.promo-fire::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .5) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: promo-fire-shine 3.2s ease-in-out infinite;
}

.promo-fire__flame {
    position: relative;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 3px rgba(255, 220, 120, .9));
    animation: promo-flame-flicker .55s ease-in-out infinite alternate;
    transform-origin: 50% 100%;
}

.promo-fire__flame svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.promo-fire__outer {
    fill: #fff3c4;
    transform-origin: 50% 100%;
    animation: promo-flame-sway .7s ease-in-out infinite alternate;
}

.promo-fire__inner {
    fill: #ff5a00;
    transform-origin: 50% 100%;
    animation: promo-flame-sway .45s ease-in-out infinite alternate-reverse;
}

.promo-fire__text { position: relative; }

@keyframes promo-fire-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes promo-fire-glow {
    0%, 100% { box-shadow: 0 3px 10px rgba(255, 90, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
    50%      { box-shadow: 0 4px 16px rgba(255, 120, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
}

@keyframes promo-fire-shine {
    0%        { inset-inline-start: -55%; }
    40%, 100% { inset-inline-start: 125%; }
}

@keyframes promo-flame-flicker {
    0%   { transform: scale(1)    rotate(-3deg); }
    35%  { transform: scale(1.08) rotate(2deg); }
    70%  { transform: scale(.94)  rotate(-1deg); }
    100% { transform: scale(1.12) rotate(3deg); }
}

@keyframes promo-flame-sway {
    from { transform: scaleY(1)    skewX(-4deg); }
    to   { transform: scaleY(1.12) skewX(5deg); }
}

/* ---------- "No Deposit" ---------- */
.promo-nodep {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 9px 4px 6px;
    border-radius: 999px;

    background: #e8f8ee;
    color: #14532d;
    border: 1px solid #86efac;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-nodep__icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    color: #16a34a;
}

/* ---------- Large: the booking panel on a car page ---------- */
.promo-labels--lg {
    gap: 8px;
    margin-bottom: 14px;
}

.promo-labels--lg .promo-fire {
    padding: 6px 12px 6px 9px;
    font-size: 13px;
}

.promo-labels--lg .promo-fire__flame {
    width: 17px;
    height: 17px;
}

.promo-labels--lg .promo-nodep {
    padding: 6px 12px 6px 8px;
    font-size: 12px;
}

.promo-labels--lg .promo-nodep__icon {
    width: 15px;
    height: 15px;
}

/* Arabic: no letter-spacing on Arabic glyphs. */
[dir="rtl"] .promo-fire,
[dir="rtl"] .promo-nodep {
    letter-spacing: 0;
}

/* Anyone who has asked their device to cut down on motion gets still labels. */
@media (prefers-reduced-motion: reduce) {
    .promo-fire,
    .promo-fire::after,
    .promo-fire__flame,
    .promo-fire__outer,
    .promo-fire__inner {
        animation: none;
    }
    .promo-fire::after { opacity: 0; }
}
