/* Level-Up Celebration Component - Clean Corner Toast Style */

/* Toast Container */
.level-up-celebration {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.level-up-celebration.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Remove backdrop for toast style */
.level-up-celebration__backdrop {
    display: none;
}

/* Toast Content */
.level-up-celebration__content {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 12px;
    padding: 16px;
    color: white;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.level-up-celebration__content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(79, 70, 229, 0.3);
}

/* Major level-up styling */
.level-up-celebration--major .level-up-celebration__content {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(245, 158, 11, 0.3);
}

.level-up-celebration--major .level-up-celebration__content:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Icon */
.level-up-celebration__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.level-up-celebration__icon i {
    font-size: 22px;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.celebration-icon--normal {
    animation: celebration-rotate 1.2s ease-in-out;
}

.celebration-icon--major {
    animation: celebration-major-rotate 1.5s ease-in-out;
}

/* Text Content */
.level-up-celebration__text {
    flex: 1;
    min-width: 0;
}

/* Typography */
.level-up-celebration__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
    color: white;
}

.level-up-celebration__message {
    font-size: 13px;
    opacity: 0.9;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: white;
}

/* Details */
.level-up-celebration__details {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    margin-top: 6px;
    backdrop-filter: blur(4px);
}

.level-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.level-detail:last-child {
    margin-bottom: 0;
}

.level-detail__label {
    opacity: 0.8;
    color: white;
}

.level-detail__value {
    color: white;
    font-weight: 600;
}

.level-detail__value--highlight {
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

/* Hide action buttons for auto-dismiss toast */
.level-up-celebration__actions {
    display: none;
}

/* Animations */
@keyframes celebration-rotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes celebration-major-rotate {
    0% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(144deg) scale(1.2); }
    40% { transform: rotate(288deg) scale(1.05); }
    60% { transform: rotate(432deg) scale(1.25); }
    80% { transform: rotate(576deg) scale(1.1); }
    100% { transform: rotate(720deg) scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .level-up-celebration {
        width: 300px;
        top: 15px;
        right: 15px;
    }
    
    .level-up-celebration__content {
        padding: 14px;
    }
    
    .level-up-celebration__title {
        font-size: 15px;
    }
    
    .level-up-celebration__message {
        font-size: 12px;
    }
    
    .level-up-celebration__icon {
        width: 36px;
        height: 36px;
    }
    
    .level-up-celebration__icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .level-up-celebration {
        width: calc(100vw - 30px);
        right: 15px;
        top: 15px;
    }
    
    .level-up-celebration__content {
        padding: 12px;
        gap: 10px;
    }
    
    .level-up-celebration__title {
        font-size: 14px;
    }
    
    .level-up-celebration__message {
        font-size: 11px;
    }
}
