/* Level-up notification styling */

/* Modal overlay */
#level-up-notification.modal-overlay {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

#level-up-notification.hidden {
    display: none;
}

/* Modal content */
.level-up-modal {
    background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    max-width: 400px;
    padding: 20px;
    position: relative;
    text-align: center;
    width: 100%;
    animation: levelUpPulse 2s infinite;
}

/* For backward compatibility with toast notifications */
.level-up-notification {
    background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    max-width: 400px;
    padding: 20px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1000;
    animation: levelUpPulse 2s infinite;
}

@keyframes levelUpPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 50px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}

.level-up-header {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: headerGlow 1.5s infinite;
}

@keyframes headerGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
}

.level-up-level {
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
    position: relative;
}

.level-up-level::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.level-up-level::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.level-up-rewards,
.level-up-rewards-list {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding: 15px;
}

.level-up-rewards div,
.level-up-rewards-list div {
    align-items: center;
    display: flex;
    font-size: 16px;
    justify-content: center;
}

/* Reward item styling */
.reward-item {
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.reward-item:hover {
    transform: translateX(5px);
}

/* Specific reward type styling */
.reward-coins {
    color: #ffd700;
    /* Gold color for coins */
}

.reward-coins::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='10' cy='16' rx='7' ry='4' fill='%23c9a84c' opacity='0.5'/%3E%3Cellipse cx='10' cy='14' rx='7' ry='4' fill='%23c9a84c' opacity='0.7'/%3E%3Cellipse cx='10' cy='12' rx='7' ry='4' fill='%23c9a84c'/%3E%3Cellipse cx='10' cy='12' rx='4.5' ry='2.5' fill='none' stroke='%23ffd54f' stroke-width='0.7' opacity='0.6'/%3E%3Ctext x='10' y='13.5' text-anchor='middle' font-size='5' font-weight='bold' fill='%23ffd54f' font-family='serif'%3EA%3C/text%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

.reward-crystals {
    color: #9966ff;
    /* Purple color for crystals */
}

.reward-crystals::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,2 20,9 12,22 4,9' fill='%237c4dff' opacity='0.3'/%3E%3Cpolygon points='12,2 20,9 12,22 4,9' fill='none' stroke='%23b388ff' stroke-width='1.5'/%3E%3Cline x1='4' y1='9' x2='20' y2='9' stroke='%23b388ff' stroke-width='1'/%3E%3Cline x1='12' y1='2' x2='8' y2='9' stroke='%23b388ff' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='12' y1='2' x2='16' y2='9' stroke='%23b388ff' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='8' y1='9' x2='12' y2='22' stroke='%23b388ff' stroke-width='0.8' opacity='0.4'/%3E%3Cline x1='16' y1='9' x2='12' y2='22' stroke='%23b388ff' stroke-width='0.8' opacity='0.4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

.reward-packs::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='14' rx='2' fill='%23c9a84c' opacity='0.2'/%3E%3Crect x='3' y='4' width='18' height='14' rx='2' fill='none' stroke='%23c9a84c' stroke-width='1.5'/%3E%3Cline x1='3' y1='10' x2='21' y2='10' stroke='%23c9a84c' stroke-width='1'/%3E%3Crect x='10' y='7' width='4' height='6' rx='0.5' fill='%23c9a84c' opacity='0.4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

.reward-cards::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='%23c9a84c' opacity='0.15'/%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='none' stroke='%23c9a84c' stroke-width='1.5'/%3E%3Ctext x='12' y='14' text-anchor='middle' font-size='10' font-weight='bold' fill='%23c9a84c' font-family='serif'%3EA%3C/text%3E%3Ccircle cx='8' cy='6' r='1.5' fill='%23c9a84c' opacity='0.5'/%3E%3Ccircle cx='16' cy='18' r='1.5' fill='%23c9a84c' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

.reward-cosmetics::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z' fill='%23c9a84c'/%3E%3Cpath d='M12 6l1.2 3.6L17 12l-3.8 1.4L12 17l-1.2-3.6L7 12l3.8-1.4z' fill='%23ffd54f' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

/* Legacy support for non-classified rewards */
.level-up-rewards div:not([class*="reward-"])::before,
.level-up-rewards-list div:not([class*="reward-"])::before {
    content: '✦';
    color: #ffd700;
    margin-right: 8px;
}

/* Close button */
.level-up-close-button {
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    color: #1a2a3a;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.level-up-close-button:hover {
    background-color: #ffec8b;
    transform: scale(1.05);
}

.level-up-close-button:active {
    transform: scale(0.95);
}

/* Toast container modifications for level-up notifications */
#toast-container .toast-message.level-up {
    background: transparent;
    box-shadow: none;
    max-width: 400px;
    padding: 0;
}

/* Particle effects container */
.level-up-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: #ffd700;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    opacity: 0;
    animation: particleFloat 3s ease-out infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Crystal feedback popup animation */
.crystal-feedback-popup {
    position: fixed;
    color: #9966ff;
    font-weight: bold;
    font-size: 18px;
    z-index: 1000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 1s ease-out;
    text-shadow: 0 0 5px rgba(153, 102, 255, 0.7);
}

.crystal-feedback-popup::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,2 20,9 12,22 4,9' fill='%237c4dff' opacity='0.3'/%3E%3Cpolygon points='12,2 20,9 12,22 4,9' fill='none' stroke='%23b388ff' stroke-width='1.5'/%3E%3Cline x1='4' y1='9' x2='20' y2='9' stroke='%23b388ff' stroke-width='1'/%3E%3Cline x1='12' y1='2' x2='8' y2='9' stroke='%23b388ff' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='12' y1='2' x2='16' y2='9' stroke='%23b388ff' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='8' y1='9' x2='12' y2='22' stroke='%23b388ff' stroke-width='0.8' opacity='0.4'/%3E%3Cline x1='16' y1='9' x2='12' y2='22' stroke='%23b388ff' stroke-width='0.8' opacity='0.4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

/* Coin feedback popup animation */
.coin-feedback-popup {
    position: fixed;
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
    z-index: 1000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 1s ease-out;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}

.coin-feedback-popup::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='10' cy='16' rx='7' ry='4' fill='%23c9a84c' opacity='0.5'/%3E%3Cellipse cx='10' cy='14' rx='7' ry='4' fill='%23c9a84c' opacity='0.7'/%3E%3Cellipse cx='10' cy='12' rx='7' ry='4' fill='%23c9a84c'/%3E%3Cellipse cx='10' cy='12' rx='4.5' ry='2.5' fill='none' stroke='%23ffd54f' stroke-width='0.7' opacity='0.6'/%3E%3Ctext x='10' y='13.5' text-anchor='middle' font-size='5' font-weight='bold' fill='%23ffd54f' font-family='serif'%3EA%3C/text%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}