/* css/weapon.css - 武器列表页特有样式 */

.weapon-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.15) 0%, var(--bg-color, #09090b) 50%);
    box-shadow: 0 10px 30px -10px var(--card-shadow), inset 0 0 0 1px var(--card-inner-glow);
    aspect-ratio: 10 / 13;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

[data-theme="light"] .weapon-card {
    background: linear-gradient(160deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.08) 0%, #ffffff 50%);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px #dde3ee;
}

.weapon-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(var(--rarity-rgb, 148, 163, 184), 0.25), 0 0 20px rgba(var(--rarity-rgb, 148, 163, 184), 0.1), inset 0 0 0 1px rgba(var(--rarity-rgb, 148, 163, 184), 0.5);
}

[data-theme="light"] .weapon-card:hover {
    background: linear-gradient(160deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.12) 0%, #ffffff 60%);
    box-shadow: 0 20px 48px -12px rgba(var(--rarity-rgb, 148, 163, 184), 0.3), 0 0 0 1.5px rgba(var(--rarity-rgb, 148, 163, 184), 0.5);
    transform: translateY(-8px) scale(1.02);
}

.weapon-card:active {
    transform: translateY(-2px) scale(0.99);
}

.weapon-img-box {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    padding: 24px 24px 0;
}

.weapon-img-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-color, #09090b) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .weapon-img-box::after {
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
}

.weapon-img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.weapon-card:hover .weapon-img {
    transform: scale(1.12);
}

.weapon-star-overlay {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'SF Mono', ui-monospace, monospace;
    z-index: 3;
    text-shadow: 0 2px 8px var(--bg-color, #09090b);
}

[data-theme="light"] .weapon-star-overlay {
    text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}

.weapon-info {
    position: relative;
    z-index: 3;
    padding: 0 16px 16px;
}

.weapon-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.weapon-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.weapon-type-tag {
    background: rgba(var(--rarity-rgb, 148, 163, 184), 0.12);
    color: rgb(var(--rarity-rgb, 148, 163, 184));
    border: 1px solid rgba(var(--rarity-rgb, 148, 163, 184), 0.25);
}

.weapon-type-tag .dot {
    background: rgb(var(--rarity-rgb, 148, 163, 184));
    box-shadow: 0 0 6px rgb(var(--rarity-rgb, 148, 163, 184));
}

.weapon-stat-tag {
    background: var(--btn-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.weapon-stat-tag .dot {
    background: var(--text-tertiary);
    box-shadow: none;
}

.weapon-attrs {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 600;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--placeholder-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-tertiary);
    z-index: 1;
}

/* 筛选按钮激活色 */
#statFilters .f-btn.active {
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.1);
}

[data-theme="light"] #statFilters .f-btn.active {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.4);
}

/* 响应式 */
@media (max-width: 480px) {
    .weapon-name {
        font-size: 1rem;
    }
    .weapon-attrs {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weapon-card {
        transition: none;
    }
    .weapon-card:hover {
        transform: none;
    }
    .weapon-img {
        transition: none;
    }
}
