/**
 * XP Notification Popup Styles
 * Simple, smooth +1 XP notification
 */

/* Notification container - fixed at top right */
.xp-notification-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Individual notification popup - simple pill style */
.xp-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    border-radius: 50px;
    padding: 14px 28px;
    box-shadow: 
        0 8px 32px rgba(34, 197, 94, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.xp-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.xp-notification.hide {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 2s ease-out;
}

/* +1 number */
.xp-notification .xp-plus {
    font-size: 26px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* XP label */
.xp-notification .xp-label {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Level up notification - purple gradient */
.xp-notification.level-up {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    box-shadow: 
        0 8px 32px rgba(168, 85, 247, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Level Up Modal Overlay */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.level-up-overlay.show {
    opacity: 1;
}

.level-up-overlay.hide {
    opacity: 0;
}

/* Level Up Modal */
.level-up-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.4);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-up-overlay.show .level-up-modal {
    transform: scale(1) translateY(0);
}

.level-up-overlay.hide .level-up-modal {
    transform: scale(0.9) translateY(-20px);
}

/* Close button */
.level-up-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: all 0.3s ease;
}

.level-up-close:hover {
    color: white;
    transform: scale(1.1);
}

/* Icon */
.level-up-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: levelUpBounce 0.8s ease-out;
}

@keyframes levelUpBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Title */
.level-up-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message */
.level-up-message {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

.level-up-message strong {
    color: #a855f7;
}

/* Submessage */
.level-up-submessage {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Coin reward display */
.level-up-coins {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    padding: 12px 24px;
    margin: 15px 0;
    animation: coinGlow 1.5s ease-in-out infinite alternate;
}

@keyframes coinGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

.level-up-coins .coin-icon {
    font-size: 28px;
    animation: coinSpin 1s ease-out;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.level-up-coins span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Sealed notification - red gradient */
.xp-notification.sealed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    box-shadow: 
        0 8px 32px rgba(239, 68, 68, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.xp-notification.sealed a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .xp-notification-container {
        top: 15px;
        right: 15px;
    }

    .xp-notification {
        padding: 12px 22px;
    }
    
    .xp-notification .xp-plus {
        font-size: 22px;
    }
    
    .xp-notification .xp-label {
        font-size: 16px;
    }
}
