/* css/artifact.css - 圣遗物列表页特有样式 */

.artifact-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.artifact-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.12) 0%, var(--bg-color, #09090b) 50%);
    box-shadow: 0 10px 30px -10px var(--card-shadow), inset 0 0 0 1px var(--card-inner-glow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    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"] .artifact-card {
    background: linear-gradient(160deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.06) 0%, #ffffff 50%);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px #dde3ee;
}

.artifact-card:hover {
    transform: translateY(-6px) scale(1.01);
    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"] .artifact-card:hover {
    background: linear-gradient(160deg, rgba(var(--rarity-rgb, 148, 163, 184), 0.1) 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(-6px) scale(1.01);
}

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

.artifact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.artifact-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.artifact-star {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'SF Mono', ui-monospace, monospace;
    flex-shrink: 0;
}

.artifact-effects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artifact-effect-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.effect-label {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgb(var(--rarity-rgb, 148, 163, 184));
    background: rgba(var(--rarity-rgb, 148, 163, 184), 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.effect-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.artifact-slots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.artifact-slot {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.artifact-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--rarity-rgb, 148, 163, 184), 0.4);
}

.artifact-slot img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.slot-placeholder {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
}

[data-theme="light"] .artifact-slot {
    background: #f8fafc;
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .effect-label {
    background: rgba(var(--rarity-rgb, 148, 163, 184), 0.08);
}

/* 响应式 */
@media (max-width: 480px) {
    .artifact-grid {
        grid-template-columns: 1fr;
    }
    .artifact-name {
        font-size: 1.05rem;
    }
}

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