/* ============================================================
   Genshin – Artifacts Page
   Only page‑unique styles. All shared styles come from base.css.
   ============================================================ */

/* ---- Artifact grid ---- */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.artifact-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 20px 15px 18px 15px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s;
}

.artifact-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 12px 40px var(--card-shadow, var(--shadow-color));
}

.artifact-card .image-wrapper {
    width: 80px;
    height: 80px;
    background: var(--image-bg, var(--bg-secondary));
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--image-border, var(--border-light));
    transition: border-color 0.3s ease, background 0.3s ease;
}

.artifact-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artifact-card .image-wrapper .no-image {
    font-size: 38px;
    color: var(--no-image-color, var(--text-muted));
    opacity: 0.7;
}

.artifact-card .rarity {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffd700;
}

.artifact-card h4 {
    color: var(--text-heading);
    font-size: 18px;
    margin: 8px 0 6px 0;
    transition: color 0.3s ease;
}

.artifact-card .bonus {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    background: var(--bonus-bg, var(--detail-bg));
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.6;
    transition: color 0.3s ease, background 0.3s ease;
}

.artifact-card .bonus strong {
    color: var(--bonus-strong, var(--text-heading-span));
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* ---- Mobile games toggle (kept from original) ---- */
.mobile-games-toggle {
    display: none; /* hidden on desktop, shown on mobile via media query */
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: bold;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

.mobile-games-toggle .mobile-games-arrow {
    float: right;
    transition: transform 0.3s;
}

.mobile-games-toggle.active .mobile-games-arrow {
    transform: rotate(180deg);
}

/* ---- Footer sub text ---- */
.footer-sub {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE TWEAKS (page‑specific only)
   ============================================================ */
@media (max-width: 768px) {
    .artifact-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    .artifact-card .image-wrapper {
        width: 60px;
        height: 60px;
    }
    /* Show the mobile games toggle on small screens */
    .mobile-games-toggle {
        display: block;
    }
    /* Hide the default menu items on mobile? Actually the shared menu handles this,
       but we keep the toggle for compatibility with original design. */
}

@media (max-width: 480px) {
    .artifact-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}