/* ============================================
   🎮 티어 업 애니메이션 효과
   ============================================ */

/* 티어 업 메시지 컨테이너 */
.tier-up-message {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, 
        rgba(243, 112, 33, 0.9), 
        rgba(243, 112, 33, 0.7),
        rgba(255, 140, 66, 0.8)
    );
    border-radius: var(--radius-md);
    border: 2px solid #FFD700;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(243, 112, 33, 0.4);
    animation: tierGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* 반짝이는 배경 효과 */
.tier-up-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s ease-in-out infinite;
}

/* 트로피 아이콘 */
.tier-icon {
    font-size: 1.4rem !important;
    color: #FFD700 !important;
    animation: trophyBounce 1.5s ease-in-out infinite !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    z-index: 1;
}

/* 티어 텍스트 */
.tier-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

/* 티어 하이라이트 텍스트 */
.tier-highlight {
    color: white !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    animation: textPulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

/* 화살표 아이콘 */
.tier-arrow {
    font-size: 1.2rem;
    animation: arrowUp 1s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

/* ============================================
   애니메이션 키프레임
   ============================================ */

/* 티어 글로우 효과 */
@keyframes tierGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(243, 112, 33, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3);
        border-color: #FFD700;
    }
    50% {
        box-shadow: 
            0 6px 30px rgba(243, 112, 33, 0.6),
            0 0 30px rgba(255, 215, 0, 0.5);
        border-color: #FFA500;
    }
}

/* 반짝이는 효과 */
@keyframes shine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}

/* 트로피 바운스 */
@keyframes trophyBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-4px) scale(1.1);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* 텍스트 펄스 */
@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

/* 화살표 업 */
@keyframes arrowUp {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.7;
    }
}

/* ============================================
   모바일 최적화
   ============================================ */
@media (max-width: 768px) {
    .tier-up-message {
        padding: 0.85rem;
        font-size: 0.8rem;
        gap: 0.6rem;
    }
    
    .tier-icon {
        font-size: 1.2rem !important;
    }
    
    .tier-highlight {
        font-size: 0.85rem !important;
    }
    
    .tier-arrow {
        font-size: 1rem;
    }
}
