/**
 * Compact Hotness Meter for Images
 * Appears below each image in post content
 */

/* Image Hotness Meter Container */
.image-hotness-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0 var(--spacing-lg);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50px;
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

/* Hide duplicate meters if they appear */
.image-hotness-meter + .image-hotness-meter {
    display: none;
}

.image-hotness-meter:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Hotness Score Display */
.hotness-score {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-accent);
    font-weight: 700;
    min-width: 80px;
}

.hotness-icon {
    font-size: 1.5rem;
    animation: flicker 2s infinite;
}

.hotness-value {
    font-size: 1.25rem;
    color: var(--color-primary);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hotness-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

/* Vote Buttons */
.hotness-votes {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.vote-hot,
.vote-not-hot,
.amazon-shop-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.amazon-shop-button {
    color: #ff9900;
    border-color: #ff9900;
    margin-left: auto;
}

.amazon-shop-button:hover {
    background: #ff9900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* COLOR OPTIONS - Replace the colors above with any of these:
 * 
 * OPTION 1 - Pink/Magenta (Fashion/Beauty):
 * color: #e91e63;
 * border-color: #e91e63;
 * background: #e91e63; (on hover)
 * box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
 * 
 * OPTION 2 - Purple (Luxury):
 * color: #9c27b0;
 * border-color: #9c27b0;
 * background: #9c27b0; (on hover)
 * box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
 * 
 * OPTION 3 - Red (Urgent/Action):
 * color: #f44336;
 * border-color: #f44336;
 * background: #f44336; (on hover)
 * box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
 * 
 * OPTION 4 - Green (Trust/Buy):
 * color: #4caf50;
 * border-color: #4caf50;
 * background: #4caf50; (on hover)
 * box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
 * 
 * OPTION 5 - Gold (Premium):
 * color: #d4af37;
 * border-color: #d4af37;
 * background: #d4af37; (on hover)
 * box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
 * 
 * OPTION 6 - Black (Bold/Chic):
 * color: #000000;
 * border-color: #000000;
 * background: #000000; (on hover)
 * box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 */

.vote-hot {
    color: #ff6b6b;
}

.vote-hot:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.vote-hot.voted {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.vote-not-hot {
    color: #95a5a6;
}

.vote-not-hot:hover {
    background: #95a5a6;
    color: white;
    border-color: #95a5a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.vote-not-hot.voted {
    background: #95a5a6;
    color: white;
    border-color: #95a5a6;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.vote-icon {
    font-size: 1.125rem;
}

.vote-count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Flicker animation for fire icon */
@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Particle effect container */
.hotness-particle {
    position: absolute;
    pointer-events: none;
    font-size: 1.5rem;
    animation: particle-rise 1s ease-out forwards;
}

@keyframes particle-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-hotness-meter {
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    .hotness-score {
        justify-content: center;
        padding-bottom: var(--spacing-sm);
        border-bottom: 1px solid var(--color-border);
    }
    
    .hotness-votes {
        justify-content: space-between;
        padding-top: var(--spacing-sm);
    }
    
    .vote-hot,
    .vote-not-hot {
        flex: 1;
        justify-content: center;
    }
    
    .amazon-shop-button {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
}

/* Compact version for multiple images */
.entry-content figure + figure .image-hotness-meter {
    margin-top: var(--spacing-md);
}

/* Special styling for gallery images */
.wp-block-gallery .image-hotness-meter,
.gallery .image-hotness-meter {
    font-size: 0.875rem;
}

.wp-block-gallery .hotness-icon,
.gallery .hotness-icon {
    font-size: 1.25rem;
}

.wp-block-gallery .vote-hot,
.wp-block-gallery .vote-not-hot,
.gallery .vote-hot,
.gallery .vote-not-hot {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}
