/**
 * TutorPrestige - Badge Styles
 *
 * @package TutorPrestige
 * @since 2.0.0
 */

/* Container */
.tutorprestige-badges {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.tutorprestige-badges-top_left {
    top: 8px;
    left: 8px;
}

.tutorprestige-badges-top_right {
    top: 8px;
    right: 8px;
}

.tutorprestige-badges-bottom_left {
    bottom: 8px;
    left: 8px;
}

.tutorprestige-badges-bottom_right {
    bottom: 8px;
    right: 8px;
}

/* Single course page */
.tutorprestige-badges-single {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tutorprestige-badges-single .tutorprestige-badge {
    font-size: 14px;
    padding: 6px 14px;
}

/* Individual badge */
.tutorprestige-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    pointer-events: auto;
    animation: tutorprestigeBadgeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes tutorprestigeBadgeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Badge color variants */
.tutorprestige-badge-recommended {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.tutorprestige-badge-bestseller {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #5c3d00;
    box-shadow: 0 2px 8px rgba(247, 151, 30, 0.4);
}

.tutorprestige-badge-popular {
    background: linear-gradient(135deg, #f857a6, #ff5858);
    color: #fff;
    box-shadow: 0 2px 8px rgba(248, 87, 166, 0.4);
}

.tutorprestige-badge-trending {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 176, 155, 0.4);
}

/* Hover effect */
.tutorprestige-badge:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorprestige-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .tutorprestige-badges-single .tutorprestige-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
}
