/* levelup.css */

/* --- General Popup Container --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Popup Content Box --- */
.popup-content {
    background: #1a1a2e; /* Dark blue-purple */
    color: #e0e0e0;
    padding: 30px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    border: 2px solid #9d4edd; /* Vibrant purple border */
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

/* --- Close Button --- */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.popup-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

/* --- Header & Icon --- */
.popup-header {
    margin-bottom: 20px;
}

.popup-icon {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #fca311; /* Bright orange */
    margin: 0;
}

/* --- Body / Message --- */
.popup-body {
    font-size: 16px;
    line-height: 1.7;
}

.popup-body strong {
    color: #5eff5e; /* Bright green for XP */
}

.popup-body ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: right; /* RTL support */
}

.popup-body li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* --- Footer & Action Button --- */
.popup-footer {
    margin-top: 25px;
}

.popup-button {
    background: linear-gradient(45deg, #fca311, #e74c3c); /* Orange to red gradient */
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
}

/* --- Specific for Level Up Popup --- */
#levelUpPopup .popup-content {
    border-color: #5eff5e; /* Green border for level up */
    box-shadow: 0 0 30px rgba(94, 255, 94, 0.5);
}

#levelUpPopup .popup-title {
    color: #5eff5e; /* Green title */
}

#levelUpPopup .popup-button {
    background: linear-gradient(45deg, #5eff5e, #38b000); /* Green gradient button */
}

#levelUpPopup .popup-button:hover {
    box-shadow: 0 10px 20px rgba(94, 255, 94, 0.3);
}

.reward-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px dashed #fca311;
}

.reward-section p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
} 