/* -- Character Catalog Page -- */

.char-catalog-wrap {
    padding-bottom: 80px;
}

/* -- Filters Bar -- */

/* -- Stats bar -- */

/* -- Grid -- */
.char-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

/* ── Catalog Item Wrap ── */
.char-item-wrap {
    display: flex;
    flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 6px;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.char-item-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.char-status-header:hover {
    opacity: 0.8;
}

.char-status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    min-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-item-wrap.is-free .char-status-header {
    background: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
}

.char-item-wrap.is-owned .char-status-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-2);
}

.char-status-header a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.char-status-header a:hover {
    color: var(--accent-hover);
}



/* -- Mobile -- */
@media (pointer: coarse) {

    .char-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}
