﻿.hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b, #ff6b35);
    color: white;
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 900;
    border-radius: 6px;
    z-index: 10;
    animation: hotFlash 1.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4), 0 2px 8px rgba(255, 75, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .hot-badge:hover {
        transform: rotate(0deg) scale(1.1);
        box-shadow: 0 6px 25px rgba(255, 65, 108, 0.6), 0 4px 15px rgba(255, 75, 43, 0.4);
    }

.hot-badge-small {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 2px 5px;
    font-size: 8px;
    font-weight: 800;
    border-radius: 4px;
    z-index: 10;
    animation: hotBlink 1.2s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(255, 65, 108, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
}

.hot-badge-mini {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4444, #ff6b35);
    color: white;
    padding: 1px 3px;
    font-size: 5px;
    font-weight: 800;
    border-radius: 3px;
    z-index: 10;
    line-height: 1;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: hotShimmer 2.5s ease-in-out infinite;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
    transform: rotate(-2deg);
}

.hot-badge-top {
    position: absolute;
    top: 3px;
    right: 3px;
    background: linear-gradient(135deg, #ff4444, #ff6b35, #ffab00);
    color: white;
    padding: 1px 4px;
    font-size: 6px;
    font-weight: 800;
    border-radius: 3px;
    z-index: 10;
    animation: hotBounce 2s ease-in-out infinite;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    transform: rotate(-4deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes hotFlash {
    0%, 60%, 100% {
        opacity: 1;
        transform: rotate(-5deg) scale(1);
        box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4), 0 2px 8px rgba(255, 75, 43, 0.3);
    }

    30% {
        opacity: 0.8;
        transform: rotate(-5deg) scale(0.95);
        box-shadow: 0 2px 8px rgba(255, 65, 108, 0.2), 0 1px 4px rgba(255, 75, 43, 0.2);
    }
}

@keyframes hotBlink {
    0%, 70%, 100% {
        opacity: 1;
        box-shadow: 0 3px 10px rgba(255, 65, 108, 0.4), 0 0 15px rgba(255, 75, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    35% {
        opacity: 0.8;
        box-shadow: 0 2px 5px rgba(255, 65, 108, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes hotShimmer {
    0%, 100% {
        opacity: 1;
        transform: rotate(-2deg) scale(1);
    }

    33% {
        opacity: 0.8;
        transform: rotate(-2deg) scale(1.1);
    }

    66% {
        opacity: 0.9;
        transform: rotate(-2deg) scale(0.95);
    }
}

@keyframes hotBounce {
    0%, 100% {
        transform: rotate(-4deg) translateY(0) scale(1);
        opacity: 1;
    }

    25% {
        transform: rotate(-4deg) translateY(-2px) scale(1.05);
        opacity: 0.9;
    }

    50% {
        transform: rotate(-4deg) translateY(1px) scale(0.98);
        opacity: 0.95;
    }

    75% {
        transform: rotate(-4deg) translateY(-1px) scale(1.02);
        opacity: 0.85;
    }
}

.image {
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hot-badge {
        top: 4px;
        right: 4px;
        padding: 2px 6px;
        font-size: 7px;
    }

    .hot-badge-small {
        padding: 1px 3px;
        font-size: 7px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .hot-badge,
    .hot-badge-small,
    .hot-badge-mini,
    .hot-badge-top {
        backdrop-filter: blur(15px);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hot-badge,
    .hot-badge-small,
    .hot-badge-mini,
    .hot-badge-top {
        animation: none;
    }

        .hot-badge:hover {
            transform: rotate(0deg) scale(1.05);
        }
}
