/* Car Badge Styles - Discount and NEW badges */

/* Discount Badge Styles */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    z-index: 10;
    animation: pulse-badge 2s infinite;
    transform: rotate(-15deg);
}

/* NEW Badge Styles */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 10;
    animation: pulse-new-badge 2s infinite;
    transform: rotate(15deg);
}

@keyframes pulse-badge {
    0% {
        transform: rotate(-15deg) scale(1);
    }
    50% {
        transform: rotate(-15deg) scale(1.05);
    }
    100% {
        transform: rotate(-15deg) scale(1);
    }
}

@keyframes pulse-new-badge {
    0% {
        transform: rotate(15deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.05);
    }
    100% {
        transform: rotate(15deg) scale(1);
    }
}

/* Price styling for discounted cars */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.current-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

.discount-percentage {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 8px;
}

/* Card positioning for badge */
.card {
    position: relative;
    overflow: hidden;
}

.card-img-top {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discount-badge {
        font-size: 10px;
        padding: 6px 10px;
        top: 5px;
        right: 5px;
    }
    
    .price-container {
        align-items: center;
        text-align: center;
    }
}
