/* Improved Guess Entry Styles */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guess-entry {
    animation: slideIn 0.3s ease-out forwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.guess-entry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

/* Rank Badge Styles */
.guess-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Heat Progress Bar Background */
.guess-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--heat-percent, 0%);
    background: inherit;
    /* Inherit the gradient from the parent */
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    transition: width 1s ease-out;
}

/* Ensure content is above the background bar */
.guess-entry>* {
    position: relative;
    z-index: 1;
}

/* Specific Heat Styles Enhancements */
.guess-entry.heat-boiling .guess-rank-badge {
    background: #fecdd3;
    color: #881337;
    border-color: #fb7185;
}

.guess-entry.heat-burning .guess-rank-badge {
    background: #fecaca;
    color: #991b1b;
    border-color: #f87171;
}

.guess-entry.heat-hot .guess-rank-badge {
    background: #fed7aa;
    color: #9a3412;
    border-color: #fb923c;
}

.guess-entry.heat-warm .guess-rank-badge {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
}

.guess-entry.heat-tepid .guess-rank-badge {
    background: #ecfccb;
    color: #3f6212;
    border-color: #bef264;
}

.guess-entry.heat-lukewarm .guess-rank-badge {
    background: #fef9c3;
    color: #a16207;
    border-color: #fde047;
}

.guess-entry.heat-chilly .guess-rank-badge {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.guess-entry.heat-cold .guess-rank-badge {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

.guess-entry.heat-icecold .guess-rank-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.guess-entry.heat-secret .guess-rank-badge {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}