/* ============================================
   INSTALLMENTS BADGE STYLES
   Beautiful, responsive badge for installment payments
   ============================================ */

.installment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    margin: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.installment-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.installment-badge:hover::before {
    left: 100%;
}

.installment-badge i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.installment-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

/* Small variant for cards */
.installment-badge-sm {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 6px;
}

.installment-badge-sm i {
    font-size: 0.85rem;
}

/* Pulse animation for the icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .installment-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        gap: 6px;
    }

    .installment-badge i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .installment-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .installment-badge {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    }

    .installment-badge:hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
}
