/* ===== Rating Overlay ===== */
.rating-overlay {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rating-overlay.active {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.rating-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 360px;
    position: relative;
    text-align: center;
    transition: background 0.3s ease;
}

.rating-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.emoji-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.emoji-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.emoji-btn:hover {
    background: #f5f5f5;
}

.emoji-btn .emoji {
    font-size: 32px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.emoji-btn .emoji-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Selected state */
.emoji-btn.selected .emoji {
    transform: scale(1.3);
}

.emoji-btn.dimmed {
    opacity: 0.35;
}

/* Rating card gradient backgrounds based on rating */
.rating-card[data-rating="1"] {
    background: linear-gradient(135deg, #fff5f5, #fff);
}

.rating-card[data-rating="2"] {
    background: linear-gradient(135deg, #fff8f0, #fff);
}

.rating-card[data-rating="3"] {
    background: linear-gradient(135deg, #fffff0, #fff);
}

.rating-card[data-rating="4"] {
    background: linear-gradient(135deg, #f0fff4, #fff);
}

.rating-card[data-rating="5"] {
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.rating-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.rating-close:hover {
    color: #333;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 30;
    white-space: nowrap;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
