/**
 * 自动生成装备掉落系统 - 样式文件
 */

/* 掉落飘字动画 */
.drop-floating-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 10000;
    pointer-events: none;
    animation: dropFloat 2s ease-out forwards;
}

/* 掉落品质颜色 */
.drop-quality-white { color: #ffffff; }
.drop-quality-blue { color: #0066cc; }
.drop-quality-purple { color: #9933ff; }
.drop-quality-orange { color: #ff6600; }

/* 掉落动画 */
@keyframes dropFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(1);
    }
}

/* 掉落通知 */
.drop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.drop-notification .drop-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.drop-notification .drop-items {
    font-size: 12px;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 装备掉落特效 */
.drop-equipment-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 9999;
}

.drop-equipment-effect::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    animation: sparkle 1s ease-out forwards;
}

@keyframes sparkle {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* 掉落物品信息框 */
.drop-item-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10002;
    max-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.drop-item-tooltip .item-name {
    font-weight: bold;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.drop-item-tooltip .item-quality {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

.drop-item-tooltip .item-stats {
    margin-top: 5px;
}

.drop-item-tooltip .stat-line {
    margin: 2px 0;
    font-size: 11px;
}

.drop-item-tooltip .stat-name {
    color: #aaa;
}

.drop-item-tooltip .stat-value {
    color: #4CAF50;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .drop-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .drop-floating-text {
        font-size: 16px;
    }
    
    .drop-equipment-effect {
        width: 80px;
        height: 80px;
    }
    
    .drop-equipment-effect::before {
        font-size: 40px;
    }
}
