/**
 * Global Achievement Toast Notification Styles
 * Location: public/assets/css/components/achievement-notification.css
 */

.emu-achievement-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}

.emu-achievement-toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.emu-achievement-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.emu-achievement-toast.hide {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.emu-toast-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    animation: iconBounce 0.6s ease infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.emu-toast-content {
    flex-grow: 1;
    min-width: 0;
}

.emu-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.emu-toast-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dc3545;
}

.emu-toast-close {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.emu-toast-close:hover {
    color: #343a40;
}

.emu-toast-badge-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emu-toast-badge-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.emu-toast-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #dc3545;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.emu-toast-link:hover {
    text-decoration: underline;
}