/* Achievement Notification Modal Styles */

/* Modal backdrop with celebration effect */
.achievement-modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Modal container */
#achievementModal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(105, 108, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

/* Glow effect container */
.achievement-glow-container {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Animated glow effect */
.achievement-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.3;
    animation: achievementGlow 2s ease-in-out infinite;
    pointer-events: none;
}

.achievement-glow.common {
    background: radial-gradient(circle, rgba(108, 117, 125, 0.6) 0%, transparent 70%);
}

.achievement-glow.rare {
    background: radial-gradient(circle, rgba(0, 123, 255, 0.6) 0%, transparent 70%);
}

.achievement-glow.epic {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6) 0%, transparent 70%);
}

.achievement-glow.legendary {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.6) 0%, transparent 70%);
}

@keyframes achievementGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

/* Achievement icon container */
.achievement-icon-container {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.achievement-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 48px;
    animation: achievementBounce 0.6s ease-out;
}

.achievement-icon.common {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 0 30px rgba(108, 117, 125, 0.5);
}

.achievement-icon.rare {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
}

.achievement-icon.epic {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.achievement-icon.legendary {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.achievement-icon i {
    color: white;
}

@keyframes achievementBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Title "New Achievement!" */
.achievement-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* Achievement name */
.achievement-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Achievement description */
.achievement-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* Points badge */
.achievement-points {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    color: #ffc107;
    font-weight: 600;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.achievement-points i {
    font-size: 1.1rem;
}

/* Rarity badge */
.achievement-rarity {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.achievement-rarity.common {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
}

.achievement-rarity.rare {
    background: rgba(0, 123, 255, 0.2);
    color: #6ea8fe;
}

.achievement-rarity.epic {
    background: rgba(138, 43, 226, 0.2);
    color: #b388ff;
}

.achievement-rarity.legendary {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
#achievementModal .btn-achievement-close {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#achievementModal .btn-achievement-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.4);
}

/* Queue indicator */
.achievement-queue-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Confetti animation (optional CSS-only confetti) */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti.active {
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100%) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}
